Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002017/0.002017, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003175/0.003175, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, allocations: 227.4 MB / 246.8 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2383/0.2383, allocations: 46.11 MB / 344.2 MB, free: 11.52 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00365/0.00365, allocations: 86.91 kB / 417.8 MB, free: 19.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1438, allocations: 62.45 MB / 480.2 MB, free: 5.105 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint): time 0.0191/0.163, allocations: 16.8 MB / 497 MB, free: 4.227 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01228/0.1753, allocations: 5.486 MB / 0.4907 GB, free: 14.72 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00322/0.1786, allocations: 135.5 kB / 0.4909 GB, free: 14.59 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009279/0.1879, allocations: 4.634 MB / 0.4954 GB, free: 9.941 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009013/0.197, allocations: 2.435 MB / 0.4978 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003965/0.201, allocations: 1.31 MB / 0.499 GB, free: 6.188 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2475/0.4485, allocations: 8.599 MB / 0.5074 GB, free: 14.3 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006916/0.4555, allocations: 5.531 MB / 0.5128 GB, free: 13.65 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004741/0.4602, allocations: 2.564 MB / 0.5153 GB, free: 13.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005308/0.4656, allocations: 3.184 MB / 0.5184 GB, free: 13.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002077/0.4677, allocations: 0.4919 MB / 0.5189 GB, free: 13.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003862/0.4716, allocations: 1.261 MB / 0.5202 GB, free: 13.22 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004035/0.4756, allocations: 2.84 MB / 0.5229 GB, free: 12.92 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005724/0.4814, allocations: 3.156 MB / 0.526 GB, free: 10.82 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01044/0.4918, allocations: 9.25 MB / 0.535 GB, free: 6.316 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.081e-05/0.4919, allocations: 7.062 kB / 0.5351 GB, free: 6.312 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4919, allocations: 0 / 0.5351 GB, free: 6.312 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000377/0.4923, allocations: 0 / 0.5351 GB, free: 6.312 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.01863/0.5109, allocations: 7.537 MB / 0.5424 GB, free: 1.406 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/0.511, allocations: 9.469 kB / 0.5424 GB, free: 1.406 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001305/0.5123, allocations: 0.7363 MB / 0.5431 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07986/0.5922, allocations: 8.909 MB / 0.5518 GB, free: 8.895 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01686/0.6091, allocations: 6.19 MB / 0.5579 GB, free: 2.867 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003638/0.6095, allocations: 324.6 kB / 0.5582 GB, free: 2.574 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001656/0.6111, allocations: 420.2 kB / 0.5586 GB, free: 2.191 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02465/0.6358, allocations: 10.75 MB / 0.5691 GB, free: 7.023 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002431/0.6361, allocations: 60.67 kB / 0.5692 GB, free: 6.98 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006875/0.6368, allocations: 180 kB / 0.5693 GB, free: 6.832 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003791/0.6406, allocations: 1.731 MB / 0.571 GB, free: 5.113 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02484/0.6655, allocations: 9.032 MB / 0.5798 GB, free: 12.21 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07338/0.7389, allocations: 44.39 MB / 0.6232 GB, free: 15.18 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02323/0.7622, allocations: 7.621 MB / 0.6306 GB, free: 7.543 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007141/0.7694, allocations: 5.137 MB / 0.6356 GB, free: 2.406 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02353/0.7929, allocations: 12.72 MB / 0.6481 GB, free: 5.516 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.39e-05/0.793, allocations: 60.8 kB / 0.6481 GB, free: 5.445 MB / 494.1 MB Notification: Performance of pre-optimization done (n=283): time 5.26e-06/0.7931, allocations: 0 / 0.6481 GB, free: 5.445 MB / 494.1 MB Notification: Performance of matching and sorting (n=406): time 0.4857/1.279, allocations: 74.59 MB / 0.721 GB, free: 191.9 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01797/1.297, allocations: 11.1 MB / 0.7318 GB, free: 187.1 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007351/1.304, allocations: 4.311 MB / 0.736 GB, free: 185.8 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001238/1.306, allocations: 91.36 kB / 0.7361 GB, free: 185.7 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002776/1.308, allocations: 2.968 MB / 0.739 GB, free: 184.2 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00278/1.311, allocations: 1.404 MB / 0.7404 GB, free: 183.1 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002405/1.314, allocations: 1.134 MB / 0.7415 GB, free: 182.7 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.377e-05/1.314, allocations: 301.1 kB / 0.7418 GB, free: 182.4 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00567/1.319, allocations: 4.659 MB / 0.7463 GB, free: 180.6 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006391/1.326, allocations: 6.676 MB / 0.7528 GB, free: 176.3 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01352/1.339, allocations: 12.08 MB / 0.7646 GB, free: 169.5 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.668e-05/1.339, allocations: 22.94 kB / 0.7647 GB, free: 169.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=725) (initialization): time 0.03702/1.376, allocations: 19.03 MB / 0.7832 GB, free: 153.4 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.63e-05/1.376, allocations: 35.98 kB / 0.7833 GB, free: 153.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001052/1.377, allocations: 64 kB / 0.7833 GB, free: 153.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02329/1.4, allocations: 8.841 MB / 0.792 GB, free: 144.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004218/1.404, allocations: 1.014 MB / 0.793 GB, free: 143.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06632/1.471, allocations: 54.01 MB / 0.8457 GB, free: 89.03 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008632/1.479, allocations: 495.3 kB / 0.8462 GB, free: 88.54 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002181/1.481, allocations: 279.9 kB / 0.8464 GB, free: 88.27 MB / 0.545 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.006708/1.488, allocations: 2.27 MB / 0.8487 GB, free: 85.99 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00136/1.49, allocations: 481.8 kB / 0.8491 GB, free: 85.51 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03217/1.522, allocations: 17.96 MB / 0.8667 GB, free: 67.49 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03143/1.553, allocations: 16.47 MB / 0.8828 GB, free: 50.97 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.072e-05/1.553, allocations: 28 kB / 0.8828 GB, free: 50.95 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001046/1.553, allocations: 19.92 kB / 0.8828 GB, free: 50.93 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05817/1.612, allocations: 35.28 MB / 0.9173 GB, free: 15.21 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.881e-05/1.612, allocations: 4 kB / 0.9173 GB, free: 15.21 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002478/1.614, allocations: 455.3 kB / 0.9177 GB, free: 14.77 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2474/1.862, allocations: 8.675 MB / 0.9262 GB, free: 180.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001225/1.863, allocations: 71.7 kB / 0.9262 GB, free: 180.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06638/1.929, allocations: 52.55 MB / 0.9775 GB, free: 158.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01157/1.941, allocations: 9.811 MB / 0.9871 GB, free: 150 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03807/1.979, allocations: 24.09 MB / 1.011 GB, free: 126.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001698/1.981, allocations: 0.5113 MB / 1.011 GB, free: 126 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001597/1.982, allocations: 73.31 kB / 1.011 GB, free: 126 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004004/1.986, allocations: 391.3 kB / 1.012 GB, free: 125.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001665/1.988, allocations: 320.1 kB / 1.012 GB, free: 125.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003912/1.988, allocations: 99.98 kB / 1.012 GB, free: 125.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004161/1.993, allocations: 2.836 MB / 1.015 GB, free: 122.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.7e-07/1.993, allocations: 0 / 1.015 GB, free: 122.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007736/2, allocations: 1.98 MB / 1.017 GB, free: 120.4 MB / 0.545 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.04101/2.041, allocations: 24.74 MB / 1.041 GB, free: 95.55 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02894/2.07, allocations: 19.08 MB / 1.059 GB, free: 76.45 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.082e-05/2.07, allocations: 0 / 1.059 GB, free: 76.45 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.01228/2.083, allocations: 7.212 MB / 1.067 GB, free: 69.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005668/2.088, allocations: 0.8514 MB / 1.067 GB, free: 68.36 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3715/2.46, allocations: 91.7 MB / 1.157 GB, free: 166.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00586/2.466, allocations: 4.155 MB / 1.161 GB, free: 166 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004402/2.47, allocations: 1.605 MB / 1.163 GB, free: 165.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003614/2.474, allocations: 2.62 MB / 1.165 GB, free: 163.9 MB / 0.545 GB Notification: Performance of SimCode: time 1.452e-06/2.474, allocations: 0 / 1.165 GB, free: 163.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5385/3.013, allocations: 173.1 MB / 1.334 GB, free: 159.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.92/18.94, allocations: 8.594 kB / 1.334 GB, free: 159.5 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_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_1_0-beta_om_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe 2>&1)