Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo): time 0.02128/0.02129, allocations: 104.4 kB / 15.05 MB, free: 6.031 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo): time 0.001886/0.001886, allocations: 171.2 kB / 15.93 MB, free: 5.965 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo): time 1.738/1.738, allocations: 170.9 MB / 187.5 MB, free: 1.012 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo): time 0.2612/0.2612, allocations: 38.1 MB / 265.1 MB, free: 3.969 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007247/0.000725, allocations: 8 kB / 323.6 MB, free: 29.65 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1036, allocations: 48.7 MB / 372.3 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4): time 0.05398/0.1577, allocations: 34.83 MB / 407.1 MB, free: 9.93 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02377/0.1815, allocations: 8.691 MB / 415.8 MB, free: 1.211 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008979/0.1905, allocations: 163.6 kB / 416 MB, free: 1.051 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008814/0.1994, allocations: 1.793 MB / 417.8 MB, free: 15.25 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01977/0.2192, allocations: 5.135 MB / 422.9 MB, free: 10.1 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004102/0.2234, allocations: 0.5108 MB / 423.4 MB, free: 9.59 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00667/0.2302, allocations: 2.34 MB / 425.8 MB, free: 7.246 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008837/0.2391, allocations: 4.294 MB / 430 MB, free: 2.902 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002124/0.2412, allocations: 1.047 MB / 431.1 MB, free: 1.852 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002686/0.244, allocations: 1.425 MB / 432.5 MB, free: 432 kB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007187/0.2447, allocations: 164 kB / 432.7 MB, free: 268 kB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3805/0.6252, allocations: 0.8858 MB / 433.6 MB, free: 13.78 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004326/0.6296, allocations: 1.686 MB / 435.3 MB, free: 13.78 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003514/0.6332, allocations: 0.9443 MB / 436.2 MB, free: 13.75 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0151/0.6483, allocations: 6.314 MB / 442.5 MB, free: 13.34 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.6484, allocations: 0 / 442.5 MB, free: 13.34 MB / 330.7 MB Notification: Performance of FrontEnd: time 5.109e-06/0.6484, allocations: 0 / 442.5 MB, free: 13.34 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003764/0.6488, allocations: 2.672 kB / 442.5 MB, free: 13.34 MB / 330.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.02471/0.6735, allocations: 4.54 MB / 447.1 MB, free: 11.31 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.101e-05/0.6736, allocations: 11.66 kB / 447.1 MB, free: 11.31 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00478/0.6784, allocations: 0.8783 MB / 447.9 MB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0321/0.7105, allocations: 3.856 MB / 451.8 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01127/0.7218, allocations: 2.528 MB / 454.3 MB, free: 9.383 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005697/0.7225, allocations: 270.3 kB / 454.6 MB, free: 9.375 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003226/0.7257, allocations: 350.5 kB / 454.9 MB, free: 9.375 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04873/0.7745, allocations: 12.65 MB / 467.6 MB, free: 6.176 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000361/0.7749, allocations: 33.02 kB / 467.6 MB, free: 6.172 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003192/0.7781, allocations: 165.6 kB / 467.8 MB, free: 6.172 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01069/0.7889, allocations: 2.744 MB / 470.5 MB, free: 5.574 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05079/0.8397, allocations: 11.59 MB / 482.1 MB, free: 14.08 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1329/0.9727, allocations: 40.22 MB / 0.5101 GB, free: 10.84 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01794/0.9907, allocations: 4.885 MB / 0.5149 GB, free: 5.73 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0183/1.009, allocations: 6.564 MB / 0.5213 GB, free: 14.91 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.194e-05/1.009, allocations: 52.56 kB / 0.5213 GB, free: 14.85 MB / 394.7 MB Notification: Performance of pre-optimization done (n=231): time 6.382e-06/1.009, allocations: 1.969 kB / 0.5213 GB, free: 14.85 MB / 394.7 MB Notification: Performance of matching and sorting (n=252): time 0.09514/1.104, allocations: 19.58 MB / 0.5404 GB, free: 11.09 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.024e-05/1.104, allocations: 73.41 kB / 0.5405 GB, free: 11.01 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008632/1.113, allocations: 3.276 MB / 0.5437 GB, free: 7.723 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006783/1.114, allocations: 59.17 kB / 0.5438 GB, free: 7.664 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003727/1.118, allocations: 3.295 MB / 0.547 GB, free: 4.375 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001985/1.12, allocations: 0.9348 MB / 0.5479 GB, free: 3.449 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007431/1.12, allocations: 120 kB / 0.548 GB, free: 3.332 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005871/1.121, allocations: 0.5783 MB / 0.5486 GB, free: 2.746 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007634/1.129, allocations: 2.46 MB / 0.551 GB, free: 288 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01105/1.14, allocations: 5.825 MB / 0.5567 GB, free: 8.852 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01028/1.15, allocations: 3.78 MB / 0.5604 GB, free: 5.176 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001106/1.15, allocations: 36 kB / 0.5604 GB, free: 5.141 MB / 426.7 MB Notification: Performance of matching and sorting (n=818) (initialization): time 0.03701/1.187, allocations: 10.12 MB / 0.5703 GB, free: 11.75 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001209/1.187, allocations: 56 kB / 0.5703 GB, free: 11.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000204/1.188, allocations: 116 kB / 0.5704 GB, free: 11.58 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01748/1.205, allocations: 2.404 MB / 0.5728 GB, free: 9.176 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00877/1.214, allocations: 1.357 MB / 0.5741 GB, free: 7.934 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03384/1.248, allocations: 11.19 MB / 0.585 GB, free: 12.68 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006553/1.254, allocations: 323.8 kB / 0.5853 GB, free: 12.36 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001598/1.256, allocations: 358.5 kB / 0.5857 GB, free: 12.01 MB / 458.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.007728/1.264, allocations: 2.434 MB / 0.5881 GB, free: 9.629 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008469/1.265, allocations: 308 kB / 0.5884 GB, free: 9.324 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01521/1.28, allocations: 4.649 MB / 0.5929 GB, free: 4.613 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001352/1.28, allocations: 43.98 kB / 0.5929 GB, free: 4.57 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.244e-05/1.28, allocations: 0 / 0.5929 GB, free: 4.57 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.856e-05/1.28, allocations: 11.95 kB / 0.5929 GB, free: 4.559 MB / 458.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.3383/1.619, allocations: 10.99 MB / 0.6037 GB, free: 166.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.674e-05/1.619, allocations: 3.75 kB / 0.6037 GB, free: 166.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003947/1.623, allocations: 414.3 kB / 0.6041 GB, free: 166.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003677/1.626, allocations: 0.6989 MB / 0.6048 GB, free: 166.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005626/1.627, allocations: 59.12 kB / 0.6048 GB, free: 166.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003916/1.631, allocations: 2.441 MB / 0.6072 GB, free: 165.6 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/1.631, allocations: 7.688 kB / 0.6072 GB, free: 165.6 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01689/1.648, allocations: 7.47 MB / 0.6145 GB, free: 162.6 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001114/1.649, allocations: 353.9 kB / 0.6148 GB, free: 162.5 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009885/1.65, allocations: 54.31 kB / 0.6149 GB, free: 162.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002504/1.652, allocations: 141.7 kB / 0.615 GB, free: 162.4 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005455/1.653, allocations: 137.6 kB / 0.6152 GB, free: 162.4 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002589/1.653, allocations: 70.48 kB / 0.6152 GB, free: 162.4 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004166/1.657, allocations: 2.012 MB / 0.6172 GB, free: 161.7 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.92e-07/1.657, allocations: 0 / 0.6172 GB, free: 161.7 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007217/1.665, allocations: 1.138 MB / 0.6183 GB, free: 161.6 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.01835/1.683, allocations: 9.111 MB / 0.6272 GB, free: 155.7 MB / 458.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1984:5-1986: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.1/Mechanics/MultiBody/Joints.mo:1990:5-1992: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.1/Mechanics/MultiBody/Joints.mo:1987:5-1989: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.02006/1.703, allocations: 6.138 MB / 0.6332 GB, free: 150.4 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.183e-05/1.703, allocations: 0 / 0.6332 GB, free: 150.4 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007215/1.711, allocations: 2.533 MB / 0.6357 GB, free: 148.1 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003439/1.714, allocations: 414.8 kB / 0.6361 GB, free: 147.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.108/1.822, allocations: 116.9 MB / 0.7502 GB, free: 29.02 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007914/1.83, allocations: 3.865 MB / 0.754 GB, free: 25.12 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.008653/1.839, allocations: 2.064 MB / 0.756 GB, free: 23.05 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005098/1.844, allocations: 2.132 MB / 0.7581 GB, free: 20.91 MB / 458.7 MB Notification: Performance of SimCode: time 1.473e-06/1.844, allocations: 0 / 0.7581 GB, free: 20.91 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5366/2.38, allocations: 82.04 MB / 0.8382 GB, free: 123.9 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002197/2.381, allocations: 224.7 kB / 0.8384 GB, free: 123.6 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.774/8.155, allocations: 0 / 0.8384 GB, free: 123.6 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat does not exist to compare? outputFormat=mat