Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 96.53 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001362/0.001362, allocations: 189 kB / 17.88 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 223.2 MB / 241.8 MB, free: 14.67 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.218/0.218, allocations: 44.22 MB / 337.1 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003757/0.0003758, allocations: 8 kB / 409.6 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1481/0.1485, allocations: 61.92 MB / 471.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint): time 0.3726/0.5211, allocations: 71.27 MB / 0.5301 GB, free: 9.535 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04662/0.5678, allocations: 16.5 MB / 0.5462 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02298/0.5908, allocations: 380.1 kB / 0.5466 GB, free: 2.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01401/0.6049, allocations: 3.574 MB / 0.55 GB, free: 15.57 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04292/0.6479, allocations: 10.36 MB / 0.5602 GB, free: 8.527 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007227/0.6551, allocations: 1.128 MB / 0.5613 GB, free: 7.809 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.1371/0.7923, allocations: 94.97 MB / 0.654 GB, free: 8.742 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01054/0.8029, allocations: 7.013 MB / 0.6609 GB, free: 1.66 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003516/0.8064, allocations: 1.713 MB / 0.6625 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004113/0.8106, allocations: 2.041 MB / 0.6645 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.000868/0.8115, allocations: 184 kB / 0.6647 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002463/0.814, allocations: 0.8233 MB / 0.6655 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.002471/0.8164, allocations: 2.287 MB / 0.6677 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001825/0.8183, allocations: 1.076 MB / 0.6688 GB, free: 9.512 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01022/0.8285, allocations: 7.341 MB / 0.676 GB, free: 2.152 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.8285, allocations: 0 / 0.676 GB, free: 2.152 MB / 0.4981 GB Notification: Performance of FrontEnd: time 6.582e-06/0.8286, allocations: 4 kB / 0.676 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0003533/0.8289, allocations: 7.938 kB / 0.676 GB, free: 2.141 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.02044/0.8494, allocations: 6.714 MB / 0.6825 GB, free: 11.35 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.41e-05/0.8495, allocations: 8.031 kB / 0.6825 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003225/0.8527, allocations: 0.7308 MB / 0.6833 GB, free: 10.6 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07233/0.925, allocations: 12.14 MB / 0.6951 GB, free: 14.43 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01374/0.9388, allocations: 5.684 MB / 0.7007 GB, free: 8.684 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003672/0.9392, allocations: 321.3 kB / 0.701 GB, free: 8.363 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001947/0.9412, allocations: 415.6 kB / 0.7014 GB, free: 7.957 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.287/1.228, allocations: 11.01 MB / 0.7121 GB, free: 195.7 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004604/1.229, allocations: 58.83 kB / 0.7122 GB, free: 195.7 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001108/1.23, allocations: 179 kB / 0.7123 GB, free: 195.7 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004076/1.234, allocations: 1.729 MB / 0.714 GB, free: 195.7 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02435/1.258, allocations: 9.317 MB / 0.7231 GB, free: 193 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06537/1.324, allocations: 44.71 MB / 0.7668 GB, free: 154.8 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02017/1.344, allocations: 7.95 MB / 0.7746 GB, free: 146.9 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01897/1.363, allocations: 12.84 MB / 0.7871 GB, free: 133.9 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.668e-05/1.363, allocations: 60.78 kB / 0.7872 GB, free: 133.8 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=283): time 5.681e-06/1.363, allocations: 0 / 0.7872 GB, free: 133.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=406): time 0.22/1.583, allocations: 76.93 MB / 0.8623 GB, free: 56.94 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01403/1.597, allocations: 11.37 MB / 0.8734 GB, free: 45.39 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006737/1.604, allocations: 4.783 MB / 0.8781 GB, free: 40.6 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001722/1.606, allocations: 90.64 kB / 0.8781 GB, free: 40.5 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001765/1.608, allocations: 2.97 MB / 0.881 GB, free: 37.53 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002075/1.61, allocations: 1.402 MB / 0.8824 GB, free: 36.14 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003993/1.61, allocations: 119.7 kB / 0.8825 GB, free: 36.02 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002305/1.61, allocations: 0.5337 MB / 0.883 GB, free: 35.48 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005174/1.615, allocations: 4.633 MB / 0.8876 GB, free: 30.84 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006057/1.622, allocations: 6.637 MB / 0.894 GB, free: 23.27 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006957/1.628, allocations: 5.594 MB / 0.8995 GB, free: 17.67 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.558e-05/1.629, allocations: 20 kB / 0.8995 GB, free: 17.65 MB / 0.5294 GB Notification: Performance of matching and sorting (n=725) (initialization): time 0.3506/1.979, allocations: 18.98 MB / 0.9181 GB, free: 174.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.12e-05/1.979, allocations: 33.28 kB / 0.9181 GB, free: 174.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.22e-05/1.979, allocations: 67.16 kB / 0.9182 GB, free: 174.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02684/2.006, allocations: 8.797 MB / 0.9267 GB, free: 174 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004758/2.011, allocations: 1.019 MB / 0.9277 GB, free: 174 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06631/2.077, allocations: 52.23 MB / 0.9787 GB, free: 144.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007013/2.084, allocations: 0.4919 MB / 0.9792 GB, free: 143.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001488/2.086, allocations: 279.9 kB / 0.9795 GB, free: 143.5 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 294 * Number of states: 0 () * Number of discrete variables: 57 (fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute4.cylinderColor[3],revolute4.cylinderColor[2],revolute4.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[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 (515): * Single equations (assignments): 506 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(12,52.1%) 103,(2,100.0%) 24} * Non-linear torn systems: 1 {2 48} Notification: Performance of prepare postOptimizeDAE: time 0.005092/2.091, allocations: 2.266 MB / 0.9817 GB, free: 141.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001326/2.092, allocations: 484.5 kB / 0.9822 GB, free: 141.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03065/2.123, allocations: 17.95 MB / 0.9997 GB, free: 123.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02857/2.152, allocations: 16.44 MB / 1.016 GB, free: 106.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.4e-05/2.152, allocations: 35.77 kB / 1.016 GB, free: 106.7 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.933e-05/2.152, allocations: 21.23 kB / 1.016 GB, free: 106.6 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05886/2.211, allocations: 35.33 MB / 1.05 GB, free: 71.12 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.389e-05/2.211, allocations: 7.938 kB / 1.05 GB, free: 71.12 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002466/2.213, allocations: 451.3 kB / 1.051 GB, free: 70.68 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02189/2.235, allocations: 8.792 MB / 1.059 GB, free: 61.93 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001102/2.236, allocations: 79.92 kB / 1.059 GB, free: 61.86 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05818/2.295, allocations: 50.8 MB / 1.109 GB, free: 10.84 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.3367/2.631, allocations: 10.18 MB / 1.119 GB, free: 168.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04739/2.679, allocations: 24.49 MB / 1.143 GB, free: 162.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002284/2.681, allocations: 0.537 MB / 1.143 GB, free: 162.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002277/2.683, allocations: 75.47 kB / 1.143 GB, free: 162.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00427/2.688, allocations: 386.2 kB / 1.144 GB, free: 162.5 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001587/2.689, allocations: 324.3 kB / 1.144 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003972/2.69, allocations: 97.52 kB / 1.144 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00468/2.694, allocations: 3.207 MB / 1.147 GB, free: 161.3 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.91e-07/2.694, allocations: 0 / 1.147 GB, free: 161.3 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008895/2.703, allocations: 2.015 MB / 1.149 GB, free: 161.1 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 ($STATESET1.x[2],$STATESET1.x[1],revolute3.phi,revolute2.phi) * 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 (217): * Single equations (assignments): 214 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(11,54.5%) 97,(4,100.0%) 37} * Non-linear torn systems: 1 {2 49} Notification: Performance of Backend phase and start with SimCode phase: time 0.04071/2.744, allocations: 25.94 MB / 1.175 GB, free: 141 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01987/2.764, allocations: 12.6 MB / 1.187 GB, free: 128.4 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.636e-06/2.764, allocations: 0 / 1.187 GB, free: 128.4 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.01328/2.777, allocations: 7.195 MB / 1.194 GB, free: 121.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005248/2.783, allocations: 0.7395 MB / 1.195 GB, free: 120.4 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04538/2.828, allocations: 68.31 MB / 1.261 GB, free: 50.08 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005384/2.833, allocations: 4.266 MB / 1.266 GB, free: 45.79 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004878/2.838, allocations: 1.621 MB / 1.267 GB, free: 44.16 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003701/2.842, allocations: 2.635 MB / 1.27 GB, free: 41.53 MB / 0.5294 GB Notification: Performance of SimCode: time 1.533e-06/2.842, allocations: 0 / 1.27 GB, free: 41.53 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.505/3.347, allocations: 164.3 MB / 1.43 GB, free: 71.51 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001834/3.347, allocations: 232.8 kB / 1.43 GB, free: 71.26 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.709/9.057, allocations: 7.172 kB / 1.43 GB, free: 71.26 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint_res.mat does not exist to compare? outputFormat=mat