Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint,fileNamePrefix="ModelicaTest_trunk_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.001401/0.001401, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001761/0.001761, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.282/0.282, allocations: 46.09 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 79.88 kB / 480.8 MB, free: 4.547 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4161/0.4176, allocations: 62.43 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint): time 0.02082/0.4385, allocations: 16.81 MB / 0.5469 GB, free: 180 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01485/0.4534, allocations: 5.48 MB / 0.5523 GB, free: 11.42 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004677/0.4582, allocations: 131.6 kB / 0.5524 GB, free: 11.29 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009427/0.4676, allocations: 4.645 MB / 0.5569 GB, free: 6.629 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008996/0.4767, allocations: 2.514 MB / 0.5594 GB, free: 4.105 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003505/0.4802, allocations: 1.299 MB / 0.5607 GB, free: 2.805 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01393/0.4942, allocations: 8.629 MB / 0.5691 GB, free: 10.16 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009023/0.5032, allocations: 5.533 MB / 0.5745 GB, free: 4.562 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00544/0.5087, allocations: 2.582 MB / 0.577 GB, free: 1.973 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006114/0.5149, allocations: 3.202 MB / 0.5801 GB, free: 14.76 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002256/0.5172, allocations: 0.4922 MB / 0.5806 GB, free: 14.27 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004372/0.5216, allocations: 1.253 MB / 0.5818 GB, free: 13.02 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006023/0.5276, allocations: 2.876 MB / 0.5847 GB, free: 10.13 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007366/0.535, allocations: 3.167 MB / 0.5877 GB, free: 6.949 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01389/0.549, allocations: 9.449 MB / 0.597 GB, free: 13.46 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.735e-06/0.549, allocations: 0 / 0.597 GB, free: 13.46 MB / 462.1 MB Notification: Performance of FrontEnd: time 5.21e-06/0.549, allocations: 4 kB / 0.597 GB, free: 13.46 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004042/0.5494, allocations: 7.984 kB / 0.597 GB, free: 13.45 MB / 462.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.02482/0.5743, allocations: 7.707 MB / 0.6045 GB, free: 5.652 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.477e-05/0.5744, allocations: 12.03 kB / 0.6045 GB, free: 5.641 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002897/0.5773, allocations: 0.7388 MB / 0.6052 GB, free: 4.891 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06813/0.6454, allocations: 8.94 MB / 0.614 GB, free: 11.93 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01574/0.6612, allocations: 6.372 MB / 0.6202 GB, free: 5.496 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003612/0.6616, allocations: 319.4 kB / 0.6205 GB, free: 5.18 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001608/0.6632, allocations: 419.7 kB / 0.6209 GB, free: 4.77 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02432/0.6876, allocations: 10.76 MB / 0.6314 GB, free: 9.441 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003061/0.6879, allocations: 67.53 kB / 0.6315 GB, free: 9.375 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001246/0.6892, allocations: 175.9 kB / 0.6316 GB, free: 9.203 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003471/0.6927, allocations: 1.729 MB / 0.6333 GB, free: 7.469 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0228/0.7155, allocations: 9.032 MB / 0.6422 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07196/0.7875, allocations: 44.22 MB / 0.6853 GB, free: 0.9766 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02306/0.8106, allocations: 7.637 MB / 0.6928 GB, free: 9.32 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007031/0.8177, allocations: 5.119 MB / 0.6978 GB, free: 4.191 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02206/0.8398, allocations: 12.72 MB / 0.7102 GB, free: 7.195 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.065e-05/0.8399, allocations: 72.72 kB / 0.7103 GB, free: 7.113 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=283): time 5.129e-06/0.8399, allocations: 0 / 0.7103 GB, free: 7.113 MB / 0.5606 GB Notification: Performance of matching and sorting (n=406): time 0.5175/1.357, allocations: 74.65 MB / 0.7832 GB, free: 115.6 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01347/1.371, allocations: 11.11 MB / 0.794 GB, free: 104.3 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005241/1.376, allocations: 4.313 MB / 0.7982 GB, free: 100 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001084/1.377, allocations: 97.7 kB / 0.7983 GB, free: 99.91 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001479/1.379, allocations: 3.044 MB / 0.8013 GB, free: 97.19 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.00148/1.38, allocations: 1.474 MB / 0.8027 GB, free: 95.92 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001793/1.382, allocations: 1.135 MB / 0.8039 GB, free: 94.78 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.393e-05/1.382, allocations: 305.1 kB / 0.8041 GB, free: 94.48 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004974/1.387, allocations: 4.657 MB / 0.8087 GB, free: 89.81 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005697/1.393, allocations: 6.683 MB / 0.8152 GB, free: 82.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01249/1.405, allocations: 12.07 MB / 0.827 GB, free: 69.21 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.454e-05/1.405, allocations: 20 kB / 0.827 GB, free: 69.19 MB / 0.5606 GB Notification: Performance of matching and sorting (n=725) (initialization): time 0.03302/1.438, allocations: 19.06 MB / 0.8456 GB, free: 50.1 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.675e-05/1.438, allocations: 32 kB / 0.8457 GB, free: 50.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.197e-05/1.439, allocations: 68.81 kB / 0.8457 GB, free: 50 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02219/1.461, allocations: 8.815 MB / 0.8543 GB, free: 41.16 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00391/1.465, allocations: 1.014 MB / 0.8553 GB, free: 40.15 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06625/1.531, allocations: 54.04 MB / 0.9081 GB, free: 1.715 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00659/1.538, allocations: 499.3 kB / 0.9086 GB, free: 1.227 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001427/1.539, allocations: 283.8 kB / 0.9088 GB, free: 0.9531 MB / 0.5762 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.005474/1.545, allocations: 2.264 MB / 0.9111 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001851/1.546, allocations: 0.4928 MB / 0.9115 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04097/1.587, allocations: 17.96 MB / 0.9291 GB, free: 12.16 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03853/1.626, allocations: 16.48 MB / 0.9452 GB, free: 11.64 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.738e-05/1.626, allocations: 28 kB / 0.9452 GB, free: 11.61 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001102/1.626, allocations: 19.92 kB / 0.9452 GB, free: 11.59 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4095/2.036, allocations: 35.07 MB / 0.9795 GB, free: 202.1 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.07e-05/2.036, allocations: 12.23 kB / 0.9795 GB, free: 202.1 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002367/2.038, allocations: 458.7 kB / 0.9799 GB, free: 202.1 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02209/2.06, allocations: 8.645 MB / 0.9884 GB, free: 198.1 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009635/2.061, allocations: 75.98 kB / 0.9884 GB, free: 198.1 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05739/2.119, allocations: 52.58 MB / 1.04 GB, free: 145.5 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01161/2.13, allocations: 9.824 MB / 1.049 GB, free: 135.6 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03676/2.167, allocations: 24.12 MB / 1.073 GB, free: 111.7 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001951/2.169, allocations: 0.5376 MB / 1.073 GB, free: 111.4 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009668/2.17, allocations: 75.98 kB / 1.074 GB, free: 111.3 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003277/2.173, allocations: 375.4 kB / 1.074 GB, free: 111 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001273/2.175, allocations: 331.8 kB / 1.074 GB, free: 110.7 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003054/2.175, allocations: 96 kB / 1.074 GB, free: 110.6 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.003361/2.178, allocations: 2.836 MB / 1.077 GB, free: 107.7 MB / 0.6231 GB Notification: Performance of sort global known variables: time 7.91e-07/2.178, allocations: 0 / 1.077 GB, free: 107.7 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.006162/2.185, allocations: 1.98 MB / 1.079 GB, free: 105.8 MB / 0.6231 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.03548/2.22, allocations: 24.77 MB / 1.103 GB, free: 80.9 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.01695/2.237, allocations: 12.73 MB / 1.116 GB, free: 68.13 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.007e-05/2.237, allocations: 0 / 1.116 GB, free: 68.13 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.01102/2.248, allocations: 7.244 MB / 1.123 GB, free: 60.83 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00641/2.255, allocations: 0.8422 MB / 1.124 GB, free: 60 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4997/2.754, allocations: 80.6 MB / 1.202 GB, free: 216.3 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005928/2.76, allocations: 4.149 MB / 1.206 GB, free: 215.5 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.004858/2.765, allocations: 1.614 MB / 1.208 GB, free: 215.4 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004078/2.769, allocations: 2.619 MB / 1.21 GB, free: 215.4 MB / 0.6387 GB Notification: Performance of SimCode: time 2.004e-06/2.769, allocations: 0 / 1.21 GB, free: 215.4 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2682/3.038, allocations: 171 MB / 1.377 GB, free: 59.41 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.35/33.39, allocations: 11.78 kB / 1.377 GB, free: 59.39 MB / 0.6387 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe 2>&1)