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.001289/0.001289, allocations: 103.9 kB / 17.63 MB, free: 5.344 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.00131/0.00131, allocations: 192 kB / 18.56 MB, free: 4.434 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.32/1.32, allocations: 222.9 MB / 242.3 MB, free: 15.16 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.2098/0.2098, allocations: 44.18 MB / 336.6 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001632/0.001632, allocations: 67.72 kB / 408.5 MB, free: 27.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1155, allocations: 60.81 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint): time 0.01738/0.133, allocations: 16.86 MB / 486.2 MB, free: 13.33 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01169/0.1447, allocations: 5.467 MB / 491.7 MB, free: 7.844 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002894/0.1476, allocations: 135.5 kB / 491.8 MB, free: 7.711 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008696/0.1563, allocations: 4.646 MB / 496.5 MB, free: 3.051 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008237/0.1647, allocations: 2.461 MB / 498.9 MB, free: 0.582 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003647/0.1683, allocations: 1.307 MB / 0.4885 GB, free: 15.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01254/0.1809, allocations: 8.407 MB / 0.4967 GB, free: 6.852 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007617/0.1885, allocations: 5.533 MB / 0.5021 GB, free: 1.254 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2654/0.454, allocations: 2.562 MB / 0.5046 GB, free: 19.16 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006835/0.4608, allocations: 3.191 MB / 0.5077 GB, free: 19.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002766/0.4636, allocations: 0.492 MB / 0.5082 GB, free: 19.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004651/0.4683, allocations: 1.276 MB / 0.5095 GB, free: 19.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005054/0.4734, allocations: 2.844 MB / 0.5122 GB, free: 18.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007277/0.4807, allocations: 3.172 MB / 0.5153 GB, free: 17.92 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01239/0.4931, allocations: 9.285 MB / 0.5244 GB, free: 15.8 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.328e-06/0.4932, allocations: 0.75 kB / 0.5244 GB, free: 15.8 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4932, allocations: 0 / 0.5244 GB, free: 15.8 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003717/0.4936, allocations: 0.5 kB / 0.5244 GB, free: 15.8 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: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.0238/0.5174, allocations: 7.52 MB / 0.5317 GB, free: 11.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/0.5174, allocations: 11.19 kB / 0.5318 GB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002361/0.5198, allocations: 0.7297 MB / 0.5325 GB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07521/0.595, allocations: 8.915 MB / 0.5412 GB, free: 6.434 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01509/0.6102, allocations: 6.617 MB / 0.5476 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002733/0.6105, allocations: 327.2 kB / 0.5479 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001646/0.6121, allocations: 418.3 kB / 0.5483 GB, free: 140 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02731/0.6395, allocations: 10.75 MB / 0.5588 GB, free: 4.973 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004178/0.6399, allocations: 64.11 kB / 0.5589 GB, free: 4.926 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001727/0.6417, allocations: 173.3 kB / 0.5591 GB, free: 4.781 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003866/0.6456, allocations: 1.732 MB / 0.5608 GB, free: 3.066 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02397/0.6696, allocations: 9.031 MB / 0.5696 GB, free: 10.16 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07208/0.7417, allocations: 44.4 MB / 0.6129 GB, free: 13.17 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02369/0.7654, allocations: 7.623 MB / 0.6204 GB, free: 5.535 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007103/0.7726, allocations: 5.122 MB / 0.6254 GB, free: 420 kB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02357/0.7962, allocations: 12.72 MB / 0.6378 GB, free: 3.516 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.597e-05/0.7963, allocations: 64.8 kB / 0.6379 GB, free: 3.441 MB / 478.1 MB Notification: Performance of pre-optimization done (n=283): time 6.322e-06/0.7963, allocations: 1.781 kB / 0.6379 GB, free: 3.441 MB / 478.1 MB Notification: Performance of matching and sorting (n=406): time 0.4914/1.288, allocations: 74.58 MB / 0.7107 GB, free: 187.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01631/1.304, allocations: 11.1 MB / 0.7215 GB, free: 182.4 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006042/1.31, allocations: 4.324 MB / 0.7258 GB, free: 181 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009841/1.311, allocations: 84.95 kB / 0.7259 GB, free: 180.9 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001484/1.313, allocations: 2.979 MB / 0.7288 GB, free: 179.4 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001432/1.314, allocations: 1.402 MB / 0.7301 GB, free: 178.4 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001795/1.316, allocations: 1.13 MB / 0.7312 GB, free: 177.9 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 3.982e-05/1.316, allocations: 301.1 kB / 0.7315 GB, free: 177.6 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005672/1.322, allocations: 4.655 MB / 0.7361 GB, free: 175.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00659/1.328, allocations: 6.683 MB / 0.7426 GB, free: 171.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01373/1.342, allocations: 12.08 MB / 0.7544 GB, free: 162 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.829e-05/1.342, allocations: 16 kB / 0.7544 GB, free: 161.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=725) (initialization): time 0.03789/1.38, allocations: 19.03 MB / 0.773 GB, free: 142.9 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 5.818e-05/1.38, allocations: 36.22 kB / 0.773 GB, free: 142.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.046e-05/1.38, allocations: 66.08 kB / 0.7731 GB, free: 142.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02341/1.404, allocations: 8.838 MB / 0.7817 GB, free: 133.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004176/1.408, allocations: 1.018 MB / 0.7827 GB, free: 132.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06421/1.472, allocations: 54.02 MB / 0.8355 GB, free: 78.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007272/1.479, allocations: 495.3 kB / 0.8359 GB, free: 78.02 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001279/1.481, allocations: 279.9 kB / 0.8362 GB, free: 77.74 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(13,102,46.2%), (3,23,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,48)} Notification: Performance of prepare postOptimizeDAE: time 0.004995/1.486, allocations: 2.267 MB / 0.8384 GB, free: 75.47 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001724/1.487, allocations: 485.8 kB / 0.8389 GB, free: 74.99 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03279/1.52, allocations: 17.96 MB / 0.8564 GB, free: 56.96 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02991/1.55, allocations: 16.47 MB / 0.8725 GB, free: 40.45 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.906e-05/1.55, allocations: 28 kB / 0.8725 GB, free: 40.42 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.524e-05/1.55, allocations: 19.92 kB / 0.8726 GB, free: 40.4 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3123/1.863, allocations: 35.28 MB / 0.907 GB, free: 172.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.738e-05/1.863, allocations: 4.156 kB / 0.907 GB, free: 172.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002796/1.866, allocations: 463.2 kB / 0.9075 GB, free: 172.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02627/1.892, allocations: 8.674 MB / 0.9159 GB, free: 172.2 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001251/1.893, allocations: 70.31 kB / 0.916 GB, free: 172.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06229/1.955, allocations: 52.53 MB / 0.9673 GB, free: 140.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01219/1.968, allocations: 9.825 MB / 0.9769 GB, free: 131 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04054/2.008, allocations: 24.08 MB / 1 GB, free: 107.1 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001571/2.01, allocations: 0.5078 MB / 1.001 GB, free: 106.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001666/2.012, allocations: 79.94 kB / 1.001 GB, free: 106.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004307/2.016, allocations: 379.4 kB / 1.001 GB, free: 106.3 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0016/2.017, allocations: 328.1 kB / 1.002 GB, free: 106 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003402/2.018, allocations: 98.42 kB / 1.002 GB, free: 105.9 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00426/2.022, allocations: 2.84 MB / 1.005 GB, free: 103 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.51e-07/2.022, allocations: 4 kB / 1.005 GB, free: 103 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007402/2.03, allocations: 1.986 MB / 1.006 GB, free: 101 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(11,97,54.5%), (4,37,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,49)} Notification: Performance of Backend phase and start with SimCode phase: time 0.06525/2.095, allocations: 24.74 MB / 1.031 GB, free: 76.18 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.03289/2.128, allocations: 19.07 MB / 1.049 GB, free: 57.09 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/2.128, allocations: 4.25 kB / 1.049 GB, free: 57.09 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.01277/2.141, allocations: 7.215 MB / 1.056 GB, free: 49.82 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008484/2.149, allocations: 0.8446 MB / 1.057 GB, free: 49 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.388/2.537, allocations: 91.75 MB / 1.147 GB, free: 151.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00507/2.542, allocations: 4.154 MB / 1.151 GB, free: 150.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004452/2.547, allocations: 1.606 MB / 1.152 GB, free: 150.3 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003806/2.551, allocations: 2.623 MB / 1.155 GB, free: 148.1 MB / 0.5294 GB Notification: Performance of SimCode: time 1.192e-06/2.551, allocations: 3.188 kB / 1.155 GB, free: 148.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4765/3.027, allocations: 173.2 MB / 1.324 GB, free: 170.6 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.22/18.25, allocations: 0.7031 kB / 1.324 GB, free: 170.6 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe 2>&1)