Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint,fileNamePrefix="ModelicaTest_3_2_3_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.001212/0.001212, allocations: 104.7 kB / 16.4 MB, free: 6.453 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.00119/0.00119, allocations: 192.2 kB / 17.34 MB, free: 5.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.358/1.358, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2117/0.2117, allocations: 43.52 MB / 314.1 MB, free: 448 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 75.89 kB / 441.3 MB, free: 6.113 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1162, allocations: 57.78 MB / 499.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint): time 0.01718/0.1334, allocations: 16.99 MB / 0.504 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01265/0.1461, allocations: 5.437 MB / 0.5093 GB, free: 5.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003467/0.1496, allocations: 131.6 kB / 0.5094 GB, free: 5.621 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008499/0.1582, allocations: 4.665 MB / 0.514 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008022/0.1663, allocations: 2.556 MB / 0.5165 GB, free: 14.38 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002991/0.1693, allocations: 1.31 MB / 0.5178 GB, free: 13.06 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01063/0.1799, allocations: 7.751 MB / 0.5253 GB, free: 5.293 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2734/0.4533, allocations: 5.53 MB / 0.5307 GB, free: 8.363 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00541/0.4588, allocations: 2.609 MB / 0.5333 GB, free: 8.297 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00636/0.4652, allocations: 3.217 MB / 0.5364 GB, free: 8.004 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002452/0.4676, allocations: 0.4944 MB / 0.5369 GB, free: 8.004 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003861/0.4715, allocations: 1.279 MB / 0.5382 GB, free: 8.004 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005456/0.477, allocations: 2.903 MB / 0.541 GB, free: 7.75 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009706/0.4867, allocations: 3.195 MB / 0.5441 GB, free: 6.734 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01968/0.5064, allocations: 9.547 MB / 0.5534 GB, free: 5.359 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.098e-05/0.5065, allocations: 2 kB / 0.5534 GB, free: 5.359 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.5065, allocations: 3.281 kB / 0.5534 GB, free: 5.359 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003445/0.5069, allocations: 0.5 kB / 0.5534 GB, free: 5.359 MB / 414.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.02748/0.5343, allocations: 7.751 MB / 0.561 GB, free: 1.285 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.5344, allocations: 13.95 kB / 0.561 GB, free: 1.281 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001371/0.5358, allocations: 0.7485 MB / 0.5618 GB, free: 0.7773 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06346/0.5992, allocations: 8.943 MB / 0.5705 GB, free: 12.5 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01706/0.6163, allocations: 7.45 MB / 0.5778 GB, free: 8.375 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002982/0.6167, allocations: 325 kB / 0.5781 GB, free: 8.156 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001614/0.6183, allocations: 418.3 kB / 0.5785 GB, free: 7.773 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02432/0.6426, allocations: 10.74 MB / 0.589 GB, free: 12.61 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002423/0.6429, allocations: 64.62 kB / 0.589 GB, free: 12.57 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005696/0.6435, allocations: 181.1 kB / 0.5892 GB, free: 12.42 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003267/0.6468, allocations: 1.726 MB / 0.5909 GB, free: 10.7 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02352/0.6703, allocations: 9.028 MB / 0.5997 GB, free: 1.805 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0728/0.7431, allocations: 44.3 MB / 0.643 GB, free: 4.961 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02266/0.7658, allocations: 7.624 MB / 0.6504 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006388/0.7723, allocations: 5.127 MB / 0.6554 GB, free: 8.207 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02265/0.7949, allocations: 12.75 MB / 0.6679 GB, free: 11.3 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.706e-05/0.795, allocations: 66.58 kB / 0.6679 GB, free: 11.22 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=283): time 5.681e-06/0.7951, allocations: 0 / 0.6679 GB, free: 11.22 MB / 0.5137 GB Notification: Performance of matching and sorting (n=406): time 0.2507/1.046, allocations: 74.86 MB / 0.741 GB, free: 0.543 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01755/1.063, allocations: 11.1 MB / 0.7519 GB, free: 5.277 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009747/1.073, allocations: 4.399 MB / 0.7562 GB, free: 0.8789 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.001392/1.075, allocations: 85.7 kB / 0.7563 GB, free: 0.7891 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.2432/1.318, allocations: 3.062 MB / 0.7592 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.002317/1.32, allocations: 1.472 MB / 0.7607 GB, free: 208.4 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002542/1.323, allocations: 1.139 MB / 0.7618 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.714e-05/1.323, allocations: 307.8 kB / 0.7621 GB, free: 208 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007182/1.33, allocations: 4.651 MB / 0.7666 GB, free: 208 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008551/1.339, allocations: 6.683 MB / 0.7732 GB, free: 204.7 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01662/1.355, allocations: 12.08 MB / 0.785 GB, free: 197.9 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-05/1.355, allocations: 19.66 kB / 0.785 GB, free: 197.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=725) (initialization): time 0.03502/1.39, allocations: 19.06 MB / 0.8036 GB, free: 190 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.432e-05/1.39, allocations: 36.22 kB / 0.8036 GB, free: 190 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.443e-05/1.39, allocations: 64 kB / 0.8037 GB, free: 189.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02203/1.412, allocations: 8.816 MB / 0.8123 GB, free: 183.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004041/1.417, allocations: 1.015 MB / 0.8133 GB, free: 182.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06042/1.477, allocations: 54.01 MB / 0.866 GB, free: 128.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006277/1.483, allocations: 0.4922 MB / 0.8665 GB, free: 127.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008409/1.484, allocations: 284.8 kB / 0.8668 GB, free: 127.6 MB / 0.5919 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.00424/1.488, allocations: 2.274 MB / 0.869 GB, free: 125.4 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00107/1.489, allocations: 0.4967 MB / 0.8695 GB, free: 124.9 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03079/1.52, allocations: 17.96 MB / 0.887 GB, free: 106.8 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03037/1.551, allocations: 16.48 MB / 0.9031 GB, free: 90.31 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.26e-05/1.551, allocations: 28.88 kB / 0.9031 GB, free: 90.29 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-05/1.551, allocations: 19.92 kB / 0.9032 GB, free: 90.27 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06838/1.619, allocations: 35.12 MB / 0.9375 GB, free: 54.78 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.113e-05/1.619, allocations: 8.453 kB / 0.9375 GB, free: 54.77 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002373/1.622, allocations: 455.3 kB / 0.9379 GB, free: 54.32 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02288/1.645, allocations: 8.646 MB / 0.9463 GB, free: 45.66 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001222/1.646, allocations: 71.98 kB / 0.9464 GB, free: 45.59 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3041/1.95, allocations: 52.57 MB / 0.9978 GB, free: 192.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01254/1.963, allocations: 9.818 MB / 1.007 GB, free: 187.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04163/2.004, allocations: 24.13 MB / 1.031 GB, free: 179 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004532/2.009, allocations: 1.463 MB / 1.032 GB, free: 178 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001506/2.01, allocations: 79.94 kB / 1.032 GB, free: 177.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004013/2.014, allocations: 381.8 kB / 1.033 GB, free: 177.7 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001634/2.016, allocations: 319.8 kB / 1.033 GB, free: 177.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003487/2.016, allocations: 99.94 kB / 1.033 GB, free: 177.4 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.004784/2.021, allocations: 2.891 MB / 1.036 GB, free: 175 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.7e-07/2.021, allocations: 0 / 1.036 GB, free: 175 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008332/2.03, allocations: 1.991 MB / 1.038 GB, free: 173 MB / 0.5919 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.03971/2.069, allocations: 24.78 MB / 1.062 GB, free: 150.6 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01997/2.089, allocations: 12.74 MB / 1.075 GB, free: 137.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/2.089, allocations: 0 / 1.075 GB, free: 137.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.01257/2.102, allocations: 7.238 MB / 1.082 GB, free: 130.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007231/2.109, allocations: 0.8567 MB / 1.082 GB, free: 129.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1406/2.25, allocations: 81.01 MB / 1.162 GB, free: 45.43 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007202/2.257, allocations: 4.17 MB / 1.166 GB, free: 41.23 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.004202/2.261, allocations: 1.614 MB / 1.167 GB, free: 39.61 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004452/2.266, allocations: 2.635 MB / 1.17 GB, free: 36.98 MB / 0.5919 GB Notification: Performance of SimCode: time 1.963e-06/2.266, allocations: 4 kB / 1.17 GB, free: 36.97 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4831/2.749, allocations: 171.6 MB / 1.337 GB, free: 86.89 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.25/32, allocations: 19.61 kB / 1.337 GB, free: 86.87 MB / 0.5919 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe 2>&1)