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.001451/0.001451, allocations: 117.2 kB / 17.78 MB, free: 5.258 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.001589/0.001589, allocations: 184.2 kB / 18.71 MB, free: 4.332 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.396/1.396, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.2059/0.2059, allocations: 44.19 MB / 336.7 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 63.91 kB / 470.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3695/0.371, allocations: 60.82 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint): time 0.01912/0.3901, allocations: 16.84 MB / 0.5349 GB, free: 7.086 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01652/0.4067, allocations: 5.47 MB / 0.5402 GB, free: 2.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005018/0.4118, allocations: 134.9 kB / 0.5404 GB, free: 2.719 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01003/0.4219, allocations: 4.668 MB / 0.5449 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00787/0.4298, allocations: 2.526 MB / 0.5474 GB, free: 13.74 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003474/0.4333, allocations: 1.309 MB / 0.5487 GB, free: 12.85 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01381/0.4471, allocations: 8.404 MB / 0.5569 GB, free: 4.695 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00877/0.456, allocations: 5.53 MB / 0.5623 GB, free: 15.1 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005331/0.4613, allocations: 2.582 MB / 0.5648 GB, free: 12.51 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005914/0.4673, allocations: 3.202 MB / 0.5679 GB, free: 9.297 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001943/0.4693, allocations: 0.4961 MB / 0.5684 GB, free: 8.801 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004162/0.4735, allocations: 1.272 MB / 0.5696 GB, free: 7.527 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004651/0.4782, allocations: 2.895 MB / 0.5725 GB, free: 4.625 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006967/0.4852, allocations: 3.167 MB / 0.5756 GB, free: 1.441 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01552/0.5007, allocations: 9.48 MB / 0.5848 GB, free: 7.926 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.075e-05/0.5008, allocations: 0 / 0.5848 GB, free: 7.926 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.5008, allocations: 0 / 0.5848 GB, free: 7.926 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003907/0.5012, allocations: 4 kB / 0.5848 GB, free: 7.922 MB / 446.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.02579/0.527, allocations: 7.703 MB / 0.5923 GB, free: 132 kB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/0.5271, allocations: 8.031 kB / 0.5923 GB, free: 124 kB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002428/0.5296, allocations: 0.7349 MB / 0.5931 GB, free: 15.37 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06675/0.5963, allocations: 8.946 MB / 0.6018 GB, free: 6.41 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01694/0.6133, allocations: 6.805 MB / 0.6084 GB, free: 15.54 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004106/0.6138, allocations: 333.4 kB / 0.6088 GB, free: 15.21 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001881/0.6157, allocations: 411.7 kB / 0.6092 GB, free: 14.8 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02381/0.6395, allocations: 10.76 MB / 0.6197 GB, free: 3.48 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002496/0.6398, allocations: 67.53 kB / 0.6197 GB, free: 3.414 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008867/0.6407, allocations: 175.9 kB / 0.6199 GB, free: 3.242 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003474/0.6442, allocations: 1.718 MB / 0.6216 GB, free: 1.52 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02196/0.6662, allocations: 9.036 MB / 0.6304 GB, free: 8.461 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06948/0.7358, allocations: 44.23 MB / 0.6736 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02245/0.7583, allocations: 7.627 MB / 0.681 GB, free: 3.371 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006665/0.765, allocations: 5.13 MB / 0.686 GB, free: 14.23 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02141/0.7864, allocations: 12.73 MB / 0.6985 GB, free: 1.227 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.091e-05/0.7865, allocations: 64.73 kB / 0.6985 GB, free: 1.152 MB / 0.545 GB Notification: Performance of pre-optimization done (n=283): time 4.98e-06/0.7865, allocations: 0 / 0.6985 GB, free: 1.152 MB / 0.545 GB Notification: Performance of matching and sorting (n=406): time 0.5042/1.291, allocations: 74.66 MB / 0.7714 GB, free: 135.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01332/1.304, allocations: 11.08 MB / 0.7823 GB, free: 123.9 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005694/1.31, allocations: 4.321 MB / 0.7865 GB, free: 119.6 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001079/1.311, allocations: 93.64 kB / 0.7866 GB, free: 119.6 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001772/1.313, allocations: 3.052 MB / 0.7896 GB, free: 116.8 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001986/1.315, allocations: 1.47 MB / 0.791 GB, free: 115.6 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002076/1.317, allocations: 1.142 MB / 0.7921 GB, free: 114.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.18e-05/1.317, allocations: 309 kB / 0.7924 GB, free: 114.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00523/1.322, allocations: 4.653 MB / 0.7969 GB, free: 109.4 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006471/1.329, allocations: 6.688 MB / 0.8035 GB, free: 101.8 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01305/1.342, allocations: 12.07 MB / 0.8153 GB, free: 88.84 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.953e-05/1.342, allocations: 24 kB / 0.8153 GB, free: 88.81 MB / 0.5606 GB Notification: Performance of matching and sorting (n=725) (initialization): time 0.03507/1.377, allocations: 19.06 MB / 0.8339 GB, free: 69.71 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 5.693e-05/1.377, allocations: 36 kB / 0.8339 GB, free: 69.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.418e-05/1.377, allocations: 64 kB / 0.834 GB, free: 69.62 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02252/1.4, allocations: 8.807 MB / 0.8426 GB, free: 60.79 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003834/1.403, allocations: 1.014 MB / 0.8436 GB, free: 59.78 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06276/1.466, allocations: 54.04 MB / 0.8964 GB, free: 5.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00624/1.473, allocations: 499.2 kB / 0.8968 GB, free: 4.855 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001158/1.474, allocations: 275.9 kB / 0.8971 GB, free: 4.586 MB / 0.5606 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.004187/1.478, allocations: 2.267 MB / 0.8993 GB, free: 2.328 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001544/1.479, allocations: 0.4967 MB / 0.8998 GB, free: 1.828 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03869/1.518, allocations: 17.96 MB / 0.9173 GB, free: 15.81 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03766/1.556, allocations: 16.47 MB / 0.9334 GB, free: 15.29 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-05/1.556, allocations: 31.94 kB / 0.9335 GB, free: 15.26 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.812e-05/1.556, allocations: 19.92 kB / 0.9335 GB, free: 15.24 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3386/1.895, allocations: 35.09 MB / 0.9677 GB, free: 193.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.331e-05/1.895, allocations: 3.688 kB / 0.9677 GB, free: 193.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002361/1.897, allocations: 465.6 kB / 0.9682 GB, free: 193.6 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02214/1.919, allocations: 8.639 MB / 0.9766 GB, free: 192 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009348/1.92, allocations: 74.5 kB / 0.9767 GB, free: 192 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05709/1.977, allocations: 52.59 MB / 1.028 GB, free: 143.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01135/1.989, allocations: 9.819 MB / 1.038 GB, free: 133.7 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03734/2.026, allocations: 24.12 MB / 1.061 GB, free: 109.8 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001513/2.028, allocations: 0.536 MB / 1.062 GB, free: 109.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001467/2.029, allocations: 72 kB / 1.062 GB, free: 109.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003917/2.033, allocations: 383.4 kB / 1.062 GB, free: 109.1 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001284/2.034, allocations: 320.1 kB / 1.062 GB, free: 108.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003351/2.035, allocations: 102.2 kB / 1.063 GB, free: 108.7 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.003925/2.039, allocations: 2.836 MB / 1.065 GB, free: 105.9 MB / 0.6075 GB Notification: Performance of sort global known variables: time 3e-07/2.039, allocations: 0 / 1.065 GB, free: 105.9 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.007534/2.046, allocations: 1.984 MB / 1.067 GB, free: 103.9 MB / 0.6075 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.03905/2.085, allocations: 24.79 MB / 1.091 GB, free: 79.01 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.01808/2.104, allocations: 12.73 MB / 1.104 GB, free: 66.24 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.036e-05/2.104, allocations: 4.25 kB / 1.104 GB, free: 66.24 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.01255/2.116, allocations: 7.242 MB / 1.111 GB, free: 58.95 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007857/2.124, allocations: 0.8514 MB / 1.112 GB, free: 58.11 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4302/2.554, allocations: 80.61 MB / 1.191 GB, free: 206.6 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004791/2.559, allocations: 4.151 MB / 1.195 GB, free: 205.8 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.003632/2.563, allocations: 1.612 MB / 1.196 GB, free: 205.7 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00297/2.566, allocations: 2.619 MB / 1.199 GB, free: 205.7 MB / 0.6231 GB Notification: Performance of SimCode: time 9.92e-07/2.566, allocations: 3.156 kB / 1.199 GB, free: 205.7 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.224/2.79, allocations: 171.1 MB / 1.366 GB, free: 51.42 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.16/32.95, allocations: 15.75 kB / 1.366 GB, free: 51.4 MB / 0.6231 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)