Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001831/0.001831, allocations: 104.5 kB / 17.64 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002078/0.002078, allocations: 202.4 kB / 18.58 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2629/0.2629, allocations: 46.09 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001411/0.001411, allocations: 76.53 kB / 417.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1295, allocations: 62.45 MB / 480.1 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion2): time 0.01715/0.1467, allocations: 14.65 MB / 494.8 MB, free: 6.445 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01287/0.1596, allocations: 5 MB / 499.8 MB, free: 1.43 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003535/0.1632, allocations: 99.69 kB / 499.9 MB, free: 1.332 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008317/0.1716, allocations: 4.139 MB / 0.4922 GB, free: 13.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006991/0.1787, allocations: 2.318 MB / 0.4945 GB, free: 10.85 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003032/0.1817, allocations: 1.08 MB / 0.4955 GB, free: 9.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01022/0.1919, allocations: 7.157 MB / 0.5025 GB, free: 2.598 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.281/0.473, allocations: 5.128 MB / 0.5075 GB, free: 14.47 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00605/0.4791, allocations: 2.214 MB / 0.5097 GB, free: 14.35 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006485/0.4856, allocations: 3.054 MB / 0.5127 GB, free: 14.02 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002162/0.4878, allocations: 496.2 kB / 0.5131 GB, free: 14.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004146/0.492, allocations: 1.361 MB / 0.5145 GB, free: 14.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004517/0.4965, allocations: 2.725 MB / 0.5171 GB, free: 13.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00836/0.5049, allocations: 3.259 MB / 0.5203 GB, free: 12.67 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01487/0.5198, allocations: 9.85 MB / 0.5299 GB, free: 8.965 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.017e-06/0.5198, allocations: 0 / 0.5299 GB, free: 8.965 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.5199, allocations: 5.375 kB / 0.5299 GB, free: 8.961 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004385/0.5203, allocations: 0 / 0.5299 GB, free: 8.961 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1953 * Number of variables: 1953 Notification: Performance of Generate backend data structure: time 0.02489/0.5452, allocations: 7.117 MB / 0.5369 GB, free: 4.234 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.639e-05/0.5453, allocations: 9.719 kB / 0.5369 GB, free: 4.234 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003101/0.5484, allocations: 0.9301 MB / 0.5378 GB, free: 3.629 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1702/0.7186, allocations: 12.51 MB / 0.55 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01558/0.7342, allocations: 4.968 MB / 0.5549 GB, free: 6.406 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004106/0.7347, allocations: 327.2 kB / 0.5552 GB, free: 6.125 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00238/0.7371, allocations: 451.4 kB / 0.5556 GB, free: 5.727 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03211/0.7692, allocations: 12.96 MB / 0.5683 GB, free: 8.133 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003788/0.7696, allocations: 70.98 kB / 0.5683 GB, free: 8.09 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001863/0.7715, allocations: 203.7 kB / 0.5685 GB, free: 7.934 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004979/0.7765, allocations: 2.525 MB / 0.571 GB, free: 5.441 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02403/0.8005, allocations: 11.14 MB / 0.5819 GB, free: 10.53 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0731/0.8737, allocations: 52.36 MB / 0.633 GB, free: 5.352 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01397/0.8877, allocations: 5.541 MB / 0.6384 GB, free: 15.67 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004195/0.8919, allocations: 3.382 MB / 0.6417 GB, free: 12.29 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006771/0.8926, allocations: 0.6846 MB / 0.6424 GB, free: 11.51 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.775e-05/0.8927, allocations: 59.19 kB / 0.6424 GB, free: 11.45 MB / 494.1 MB Notification: Performance of pre-optimization done (n=245): time 5.791e-06/0.8927, allocations: 0 / 0.6424 GB, free: 11.45 MB / 494.1 MB Notification: Performance of matching and sorting (n=315): time 0.1311/1.024, allocations: 34.99 MB / 0.6766 GB, free: 8.391 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001822/1.024, allocations: 273.3 kB / 0.6769 GB, free: 8.066 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01048/1.035, allocations: 5.185 MB / 0.6819 GB, free: 2.891 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0009657/1.036, allocations: 69.7 kB / 0.682 GB, free: 2.816 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003869/1.039, allocations: 3.922 MB / 0.6858 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001936/1.041, allocations: 1.173 MB / 0.687 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00434/1.046, allocations: 1.514 MB / 0.6885 GB, free: 12.21 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001104/1.046, allocations: 301.1 kB / 0.6887 GB, free: 11.91 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005881/1.052, allocations: 3.407 MB / 0.6921 GB, free: 8.504 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01079/1.063, allocations: 7.561 MB / 0.6995 GB, free: 14.99 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01527/1.078, allocations: 11.85 MB / 0.711 GB, free: 1.68 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001205/1.078, allocations: 48 kB / 0.7111 GB, free: 1.633 MB / 0.545 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.326/1.404, allocations: 12.72 MB / 0.7235 GB, free: 185.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004874/1.405, allocations: 67.69 kB / 0.7236 GB, free: 185.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006486/1.405, allocations: 144.8 kB / 0.7237 GB, free: 185.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01006/1.415, allocations: 2.252 MB / 0.7259 GB, free: 185 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01048/1.426, allocations: 1.716 MB / 0.7276 GB, free: 184.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01994/1.446, allocations: 16.41 MB / 0.7436 GB, free: 176.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008651/1.455, allocations: 447.5 kB / 0.744 GB, free: 176.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001551/1.456, allocations: 446.2 kB / 0.7445 GB, free: 176.2 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 656 * Number of states: 0 () * Number of discrete variables: 44 (freeMotion.arrow.twoHeadedArrow,freeMotion.arrow.headAtOrigin,universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (906): * Single equations (assignments): 901 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,24,100.0%), (3,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005584/1.462, allocations: 2.732 MB / 0.7471 GB, free: 175 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001186/1.463, allocations: 492.3 kB / 0.7476 GB, free: 175 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01216/1.475, allocations: 7.305 MB / 0.7547 GB, free: 170.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.05e-05/1.475, allocations: 36.73 kB / 0.7548 GB, free: 170.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.268e-05/1.475, allocations: 12 kB / 0.7548 GB, free: 170.7 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.745e-05/1.475, allocations: 14.81 kB / 0.7548 GB, free: 170.7 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.028/1.503, allocations: 16.34 MB / 0.7708 GB, free: 156.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.927e-05/1.503, allocations: 4 kB / 0.7708 GB, free: 156.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002248/1.506, allocations: 0.4994 MB / 0.7712 GB, free: 156 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004531/1.51, allocations: 2.011 MB / 0.7732 GB, free: 154 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003331/1.511, allocations: 56 kB / 0.7733 GB, free: 154 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01632/1.527, allocations: 14.81 MB / 0.7877 GB, free: 139 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.182e-06/1.527, allocations: 8 kB / 0.7877 GB, free: 139 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0206/1.548, allocations: 11.65 MB / 0.7991 GB, free: 127.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002057/1.55, allocations: 0.5293 MB / 0.7996 GB, free: 126.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001491/1.551, allocations: 56 kB / 0.7997 GB, free: 126.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004191/1.555, allocations: 219.5 kB / 0.7999 GB, free: 126.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001036/1.557, allocations: 201.6 kB / 0.8001 GB, free: 126.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003561/1.557, allocations: 87.94 kB / 0.8002 GB, free: 126.1 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005132/1.562, allocations: 3.29 MB / 0.8034 GB, free: 122.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.2e-07/1.562, allocations: 4 kB / 0.8034 GB, free: 122.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008211/1.57, allocations: 1.464 MB / 0.8048 GB, free: 121.4 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * 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 (253): * Single equations (assignments): 248 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(7,17,46.9%), (7,17,46.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01592/1.586, allocations: 12.35 MB / 0.8169 GB, free: 108.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01803/1.604, allocations: 11.93 MB / 0.8285 GB, free: 96.89 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.343e-05/1.604, allocations: 8.125 kB / 0.8285 GB, free: 96.89 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006913/1.611, allocations: 4.086 MB / 0.8325 GB, free: 92.77 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004638/1.616, allocations: 0.6975 MB / 0.8332 GB, free: 92.09 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09763/1.714, allocations: 79.71 MB / 0.911 GB, free: 2.535 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2482/1.962, allocations: 4.276 MB / 0.9152 GB, free: 186.6 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.01033/1.972, allocations: 2.459 MB / 0.9176 GB, free: 186.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005695/1.978, allocations: 2.708 MB / 0.9203 GB, free: 186.5 MB / 0.545 GB Notification: Performance of SimCode: time 2.114e-06/1.978, allocations: 0 / 0.9203 GB, free: 186.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2062/2.184, allocations: 116.2 MB / 1.034 GB, free: 92.21 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.45/14.64, allocations: 17.3 kB / 1.034 GB, free: 92.2 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_FreeMotion2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1)