Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.059/2.059, allocations: 234.9 MB / 250.5 MB, free: 9.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003874/0.0003874, allocations: 8 kB / 314.4 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3168/0.3172, allocations: 54.86 MB / 369.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4): time 0.05003/0.3673, allocations: 34.84 MB / 404.1 MB, free: 7.785 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02177/0.3891, allocations: 8.699 MB / 412.8 MB, free: 15.05 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005877/0.395, allocations: 167.6 kB / 413 MB, free: 14.89 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005588/0.4007, allocations: 1.797 MB / 414.8 MB, free: 13.09 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01779/0.4185, allocations: 5.147 MB / 419.9 MB, free: 7.926 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002812/0.4214, allocations: 0.4913 MB / 420.4 MB, free: 7.434 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.00517/0.4266, allocations: 2.379 MB / 422.8 MB, free: 5.055 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007756/0.4343, allocations: 4.306 MB / 427.1 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001742/0.4361, allocations: 1.047 MB / 428.1 MB, free: 15.65 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002316/0.4385, allocations: 1.433 MB / 429.6 MB, free: 14.21 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000564/0.439, allocations: 164 kB / 429.7 MB, free: 14.05 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002276/0.4413, allocations: 0.8934 MB / 430.6 MB, free: 13.16 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002004/0.4433, allocations: 1.699 MB / 432.3 MB, free: 11.46 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001102/0.4445, allocations: 0.9362 MB / 433.3 MB, free: 10.51 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009016/0.4535, allocations: 6.321 MB / 439.6 MB, free: 4.176 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.4536, allocations: 4 kB / 439.6 MB, free: 4.172 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.4536, allocations: 0 / 439.6 MB, free: 4.172 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001562/0.4537, allocations: 0 / 439.6 MB, free: 4.172 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1878 * Number of variables: 1878 Notification: Performance of Generate backend data structure: time 0.0135/0.4672, allocations: 4.528 MB / 444.1 MB, free: 15.57 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.4673, allocations: 12.03 kB / 444.1 MB, free: 15.56 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001947/0.4693, allocations: 0.8771 MB / 445 MB, free: 14.67 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02176/0.4911, allocations: 3.854 MB / 448.9 MB, free: 10.8 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006992/0.4981, allocations: 2.539 MB / 451.4 MB, free: 8.219 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002595/0.4984, allocations: 270.8 kB / 451.7 MB, free: 7.953 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001043/0.4994, allocations: 351.7 kB / 452 MB, free: 7.609 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02862/0.5281, allocations: 12.66 MB / 464.7 MB, free: 10.47 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001459/0.5283, allocations: 35.72 kB / 464.7 MB, free: 10.44 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007189/0.529, allocations: 159.8 kB / 464.9 MB, free: 10.28 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00709/0.5361, allocations: 2.743 MB / 467.6 MB, free: 7.531 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3247/0.8609, allocations: 11.59 MB / 479.2 MB, free: 84.49 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07622/0.9371, allocations: 40.23 MB / 0.5072 GB, free: 54.15 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01468/0.9519, allocations: 4.891 MB / 0.512 GB, free: 49.02 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01305/0.965, allocations: 6.544 MB / 0.5184 GB, free: 42.21 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.791e-05/0.965, allocations: 60.48 kB / 0.5185 GB, free: 42.14 MB / 394.7 MB Notification: Performance of pre-optimization done (n=231): time 6.091e-06/0.9651, allocations: 0 / 0.5185 GB, free: 42.14 MB / 394.7 MB Notification: Performance of matching and sorting (n=252): time 0.07613/1.041, allocations: 19.59 MB / 0.5376 GB, free: 22.35 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.187e-05/1.041, allocations: 73.41 kB / 0.5377 GB, free: 22.27 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004988/1.046, allocations: 3.284 MB / 0.5409 GB, free: 18.97 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005125/1.047, allocations: 57.7 kB / 0.5409 GB, free: 18.91 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001984/1.049, allocations: 3.269 MB / 0.5441 GB, free: 15.64 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0011/1.05, allocations: 0.9551 MB / 0.5451 GB, free: 14.69 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004348/1.05, allocations: 116 kB / 0.5452 GB, free: 14.58 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003306/1.051, allocations: 0.5752 MB / 0.5457 GB, free: 13.99 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005036/1.056, allocations: 2.464 MB / 0.5481 GB, free: 11.52 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006874/1.063, allocations: 5.844 MB / 0.5538 GB, free: 4.012 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007944/1.071, allocations: 3.791 MB / 0.5575 GB, free: 228 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.721e-05/1.071, allocations: 32 kB / 0.5576 GB, free: 196 kB / 394.7 MB Notification: Performance of matching and sorting (n=818) (initialization): time 0.03554/1.106, allocations: 10.04 MB / 0.5674 GB, free: 6.156 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001012/1.106, allocations: 56 kB / 0.5674 GB, free: 6.102 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001746/1.107, allocations: 120 kB / 0.5675 GB, free: 5.984 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01704/1.124, allocations: 2.412 MB / 0.5699 GB, free: 3.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008042/1.132, allocations: 1.357 MB / 0.5712 GB, free: 2.211 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03249/1.164, allocations: 11.17 MB / 0.5821 GB, free: 6.887 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005732/1.17, allocations: 335.8 kB / 0.5825 GB, free: 6.559 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008549/1.171, allocations: 359.9 kB / 0.5828 GB, free: 6.203 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 537 * Number of states: 0 () * Number of discrete variables: 27 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (734): * Single equations (assignments): 726 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {3 5,3 27} Notification: Performance of prepare postOptimizeDAE: time 0.00605/1.177, allocations: 2.43 MB / 0.5852 GB, free: 3.758 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007316/1.178, allocations: 312 kB / 0.5855 GB, free: 3.449 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0132/1.191, allocations: 4.65 MB / 0.59 GB, free: 14.74 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.269e-05/1.191, allocations: 47.92 kB / 0.5901 GB, free: 14.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/1.191, allocations: 0 / 0.5901 GB, free: 14.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-05/1.191, allocations: 7.969 kB / 0.5901 GB, free: 14.69 MB / 442.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02976/1.221, allocations: 11 MB / 0.6008 GB, free: 3.582 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.707e-05/1.221, allocations: 4.5 kB / 0.6008 GB, free: 3.578 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003636/1.225, allocations: 411.4 kB / 0.6012 GB, free: 3.176 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003746/1.228, allocations: 0.7008 MB / 0.6019 GB, free: 2.465 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002699/1.229, allocations: 59.92 kB / 0.6019 GB, free: 2.406 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004498/1.233, allocations: 2.437 MB / 0.6043 GB, free: 15.83 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.304e-05/1.233, allocations: 7.938 kB / 0.6043 GB, free: 15.82 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01765/1.251, allocations: 7.121 MB / 0.6113 GB, free: 8.586 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009459/1.252, allocations: 357 kB / 0.6116 GB, free: 8.215 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007455/1.253, allocations: 47.95 kB / 0.6117 GB, free: 8.168 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002399/1.255, allocations: 139.9 kB / 0.6118 GB, free: 8.031 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004325/1.256, allocations: 149.4 kB / 0.6119 GB, free: 7.887 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002645/1.256, allocations: 71.97 kB / 0.612 GB, free: 7.816 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004252/1.26, allocations: 2.002 MB / 0.614 GB, free: 5.816 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.61e-07/1.26, allocations: 0 / 0.614 GB, free: 5.816 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006167/1.266, allocations: 1.153 MB / 0.6151 GB, free: 4.668 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,freeMotionScalarInit.derdd[1].u,freeMotionScalarInit.derdd[2].u,freeMotionScalarInit.derdd[3].u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (206): * Single equations (assignments): 197 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01841/1.285, allocations: 7.802 MB / 0.6227 GB, free: 12.75 MB / 474.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1952:5-1954:161:writable] Warning: Variable freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1958:5-1960:161:writable] Warning: Variable freeMotionScalarInit.angle_3 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1955:5-1957:161:writable] Warning: Variable freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.0154/1.3, allocations: 6.141 MB / 0.6287 GB, free: 6.617 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.213e-06/1.3, allocations: 8.062 kB / 0.6287 GB, free: 6.609 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007327/1.308, allocations: 2.525 MB / 0.6312 GB, free: 4.035 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002898/1.31, allocations: 424.7 kB / 0.6316 GB, free: 3.625 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.38/1.69, allocations: 37.49 MB / 0.6682 GB, free: 159.2 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005275/1.696, allocations: 3.879 MB / 0.672 GB, free: 157.8 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004158/1.7, allocations: 2.183 MB / 0.6741 GB, free: 156 MB / 490.7 MB Notification: Performance of SimCode: time 1.042e-06/1.7, allocations: 0 / 0.6741 GB, free: 156 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.994/5.694, allocations: 141.9 MB / 0.8127 GB, free: 15.37 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat does not exist to compare? outputFormat=mat