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.001836/0.001836, allocations: 105.3 kB / 16.4 MB, free: 6.457 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.001369/0.001369, allocations: 189.5 kB / 17.34 MB, free: 5.715 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.512/1.512, 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.2181/0.2181, allocations: 43.53 MB / 314.1 MB, free: 444 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.00206/0.00206, allocations: 65.47 kB / 441.3 MB, free: 6.152 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.1431, allocations: 57.8 MB / 499.1 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint): time 0.02798/0.1711, allocations: 16.97 MB / 0.504 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01764/0.1888, allocations: 5.448 MB / 0.5093 GB, free: 5.766 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004893/0.1938, allocations: 131.6 kB / 0.5094 GB, free: 5.637 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01321/0.207, allocations: 4.649 MB / 0.514 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008798/0.2159, allocations: 2.482 MB / 0.5164 GB, free: 14.48 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003279/0.2192, allocations: 1.311 MB / 0.5177 GB, free: 13.17 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01254/0.2318, allocations: 7.755 MB / 0.5253 GB, free: 5.395 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3265/0.5584, allocations: 5.527 MB / 0.5307 GB, free: 8.344 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005497/0.5639, allocations: 2.593 MB / 0.5332 GB, free: 8.277 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006699/0.5706, allocations: 3.207 MB / 0.5363 GB, free: 7.984 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002478/0.5732, allocations: 0.4978 MB / 0.5368 GB, free: 7.984 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004654/0.5778, allocations: 1.27 MB / 0.538 GB, free: 7.984 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005457/0.5833, allocations: 2.864 MB / 0.5408 GB, free: 7.73 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01249/0.5958, allocations: 3.203 MB / 0.544 GB, free: 6.715 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02045/0.6164, allocations: 9.539 MB / 0.5533 GB, free: 5.34 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.917e-06/0.6164, allocations: 0 / 0.5533 GB, free: 5.34 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.6164, allocations: 0 / 0.5533 GB, free: 5.34 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004648/0.6169, allocations: 0 / 0.5533 GB, free: 5.34 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.03085/0.6478, allocations: 7.758 MB / 0.5609 GB, free: 1.359 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.6478, allocations: 13.23 kB / 0.5609 GB, free: 1.355 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002638/0.6505, allocations: 0.7328 MB / 0.5616 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06788/0.7184, allocations: 8.95 MB / 0.5703 GB, free: 12.57 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01875/0.7372, allocations: 7.453 MB / 0.5776 GB, free: 8.453 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003137/0.7375, allocations: 321.5 kB / 0.5779 GB, free: 8.262 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001815/0.7393, allocations: 419 kB / 0.5783 GB, free: 7.879 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03068/0.77, allocations: 10.75 MB / 0.5888 GB, free: 12.71 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003198/0.7704, allocations: 63.97 kB / 0.5889 GB, free: 12.67 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000998/0.7714, allocations: 179 kB / 0.589 GB, free: 12.52 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003743/0.7752, allocations: 1.722 MB / 0.5907 GB, free: 10.81 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02734/0.8025, allocations: 9.032 MB / 0.5996 GB, free: 1.91 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08391/0.8865, allocations: 44.3 MB / 0.6428 GB, free: 5.07 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.024/0.9105, allocations: 7.621 MB / 0.6503 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007841/0.9184, allocations: 5.128 MB / 0.6553 GB, free: 8.324 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02396/0.9424, allocations: 12.76 MB / 0.6677 GB, free: 11.41 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001489/0.9426, allocations: 60.8 kB / 0.6678 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=283): time 5.11e-06/0.9427, allocations: 2.719 kB / 0.6678 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of matching and sorting (n=406): time 0.2652/1.208, allocations: 74.85 MB / 0.7409 GB, free: 0.6641 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02325/1.231, allocations: 11.1 MB / 0.7517 GB, free: 5.395 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01333/1.245, allocations: 4.392 MB / 0.756 GB, free: 1 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.001794/1.246, allocations: 89.7 kB / 0.7561 GB, free: 0.9062 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.2996/1.546, allocations: 3.048 MB / 0.7591 GB, free: 209.3 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.002743/1.549, allocations: 1.48 MB / 0.7605 GB, free: 208.3 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002589/1.551, allocations: 1.138 MB / 0.7616 GB, free: 208.2 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.515e-05/1.551, allocations: 308.1 kB / 0.7619 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00747/1.559, allocations: 4.656 MB / 0.7665 GB, free: 207.9 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008997/1.568, allocations: 6.681 MB / 0.773 GB, free: 204.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01633/1.584, allocations: 12.08 MB / 0.7848 GB, free: 198.1 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.754e-05/1.584, allocations: 15.28 kB / 0.7848 GB, free: 198.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=725) (initialization): time 0.03662/1.621, allocations: 19.07 MB / 0.8034 GB, free: 190.2 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.261e-05/1.621, allocations: 32 kB / 0.8035 GB, free: 190.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.327e-05/1.621, allocations: 64 kB / 0.8035 GB, free: 190.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02325/1.645, allocations: 8.807 MB / 0.8121 GB, free: 183.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004081/1.649, allocations: 1.018 MB / 0.8131 GB, free: 182.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06198/1.711, allocations: 54.02 MB / 0.8659 GB, free: 128.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007845/1.719, allocations: 499.3 kB / 0.8663 GB, free: 128 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001536/1.72, allocations: 281.2 kB / 0.8666 GB, free: 127.7 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.005077/1.725, allocations: 2.281 MB / 0.8688 GB, free: 125.4 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001284/1.727, allocations: 0.4967 MB / 0.8693 GB, free: 124.9 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03274/1.759, allocations: 17.96 MB / 0.8869 GB, free: 106.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03041/1.79, allocations: 16.48 MB / 0.903 GB, free: 90.35 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.937e-05/1.79, allocations: 28 kB / 0.903 GB, free: 90.32 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001336/1.79, allocations: 19.92 kB / 0.903 GB, free: 90.3 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05964/1.85, allocations: 35.13 MB / 0.9373 GB, free: 54.81 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.096e-05/1.85, allocations: 4.844 kB / 0.9373 GB, free: 54.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002417/1.852, allocations: 463.2 kB / 0.9378 GB, free: 54.35 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0229/1.875, allocations: 8.631 MB / 0.9462 GB, free: 45.7 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001184/1.876, allocations: 75.98 kB / 0.9463 GB, free: 45.63 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3419/2.218, allocations: 52.57 MB / 0.9976 GB, free: 192.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0135/2.232, allocations: 9.821 MB / 1.007 GB, free: 187.8 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04172/2.274, allocations: 24.12 MB / 1.031 GB, free: 178.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004021/2.278, allocations: 1.47 MB / 1.032 GB, free: 177.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001865/2.279, allocations: 79.77 kB / 1.032 GB, free: 177.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004539/2.284, allocations: 381.9 kB / 1.033 GB, free: 177.6 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002018/2.286, allocations: 319.2 kB / 1.033 GB, free: 177.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004509/2.287, allocations: 103.8 kB / 1.033 GB, free: 177.3 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.005558/2.292, allocations: 2.888 MB / 1.036 GB, free: 174.9 MB / 0.5919 GB Notification: Performance of sort global known variables: time 4.31e-07/2.292, allocations: 4 kB / 1.036 GB, free: 174.9 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008215/2.3, allocations: 1.989 MB / 1.038 GB, free: 172.9 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.04041/2.341, allocations: 24.78 MB / 1.062 GB, free: 150.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0206/2.361, allocations: 12.72 MB / 1.074 GB, free: 137.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.013e-05/2.361, allocations: 4 kB / 1.074 GB, free: 137.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.013/2.374, allocations: 7.248 MB / 1.081 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.007056/2.382, allocations: 0.8541 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.1407/2.522, allocations: 81 MB / 1.161 GB, free: 45.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005989/2.528, allocations: 4.171 MB / 1.166 GB, free: 41.2 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.004028/2.532, allocations: 1.61 MB / 1.167 GB, free: 39.59 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003608/2.536, allocations: 2.644 MB / 1.17 GB, free: 36.94 MB / 0.5919 GB Notification: Performance of SimCode: time 1.432e-06/2.536, allocations: 0 / 1.17 GB, free: 36.94 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4779/3.014, allocations: 171.6 MB / 1.337 GB, free: 86.97 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 31.44/34.46, allocations: 11.67 kB / 1.337 GB, free: 86.96 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)