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.001329/0.001329, allocations: 121.7 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001289/0.001289, 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.471/1.471, allocations: 227.4 MB / 247 MB, free: 10.39 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.2331/0.2331, allocations: 46.12 MB / 344.4 MB, free: 11.42 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.002307/0.002307, allocations: 75.88 kB / 480.9 MB, free: 4.473 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.387/0.3893, allocations: 62.44 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint): time 0.02557/0.415, allocations: 16.81 MB / 0.547 GB, free: 124 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01564/0.4307, allocations: 5.48 MB / 0.5524 GB, free: 11.32 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005087/0.4358, allocations: 135.5 kB / 0.5525 GB, free: 11.19 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01057/0.4465, allocations: 4.645 MB / 0.557 GB, free: 6.531 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009155/0.4557, allocations: 2.424 MB / 0.5594 GB, free: 4.098 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003501/0.4592, allocations: 1.307 MB / 0.5607 GB, free: 2.789 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01441/0.4736, allocations: 8.624 MB / 0.5691 GB, free: 10.15 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008515/0.4822, allocations: 5.533 MB / 0.5745 GB, free: 4.555 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005601/0.4878, allocations: 2.563 MB / 0.577 GB, free: 1.984 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006357/0.4942, allocations: 3.194 MB / 0.5801 GB, free: 14.78 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002733/0.497, allocations: 0.4922 MB / 0.5806 GB, free: 14.29 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00449/0.5015, allocations: 1.253 MB / 0.5818 GB, free: 13.04 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005066/0.5066, allocations: 2.837 MB / 0.5846 GB, free: 10.19 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007149/0.5138, allocations: 3.163 MB / 0.5877 GB, free: 7.012 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01483/0.5287, allocations: 9.438 MB / 0.5969 GB, free: 13.54 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/0.5287, allocations: 0 / 0.5969 GB, free: 13.54 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.5287, allocations: 8 kB / 0.5969 GB, free: 13.53 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003244/0.5291, allocations: 0 / 0.5969 GB, free: 13.53 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.02502/0.5541, allocations: 7.715 MB / 0.6045 GB, free: 5.723 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.373e-05/0.5542, allocations: 12.03 kB / 0.6045 GB, free: 5.711 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003001/0.5572, allocations: 0.7349 MB / 0.6052 GB, free: 4.965 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06807/0.6253, allocations: 8.942 MB / 0.6139 GB, free: 12.01 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01513/0.6404, allocations: 6.383 MB / 0.6201 GB, free: 5.559 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003855/0.6409, allocations: 333.4 kB / 0.6205 GB, free: 5.227 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001549/0.6424, allocations: 415.7 kB / 0.6209 GB, free: 4.82 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02528/0.6677, allocations: 10.75 MB / 0.6314 GB, free: 9.5 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002532/0.668, allocations: 59.59 kB / 0.6314 GB, free: 9.441 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000672/0.6687, allocations: 183.8 kB / 0.6316 GB, free: 9.262 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003438/0.6721, allocations: 1.722 MB / 0.6333 GB, free: 7.535 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02221/0.6944, allocations: 9.032 MB / 0.6421 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07019/0.7646, allocations: 44.22 MB / 0.6853 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0263/0.7909, allocations: 7.626 MB / 0.6927 GB, free: 9.395 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01105/0.8021, allocations: 5.126 MB / 0.6977 GB, free: 4.258 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02759/0.8297, allocations: 12.73 MB / 0.7102 GB, free: 7.258 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001652/0.8299, allocations: 60.8 kB / 0.7102 GB, free: 7.188 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=283): time 7.675e-06/0.83, allocations: 0 / 0.7102 GB, free: 7.188 MB / 0.5606 GB Notification: Performance of matching and sorting (n=406): time 0.5126/1.343, allocations: 74.65 MB / 0.7831 GB, free: 115.6 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01293/1.356, allocations: 11.11 MB / 0.794 GB, free: 104.3 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005359/1.361, allocations: 4.322 MB / 0.7982 GB, free: 99.98 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001232/1.362, allocations: 89.7 kB / 0.7983 GB, free: 99.89 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00158/1.364, allocations: 3.049 MB / 0.8012 GB, free: 97.17 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001767/1.366, allocations: 1.47 MB / 0.8027 GB, free: 95.89 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002031/1.368, allocations: 1.139 MB / 0.8038 GB, free: 94.74 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.762e-05/1.368, allocations: 305.1 kB / 0.8041 GB, free: 94.44 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005221/1.373, allocations: 4.649 MB / 0.8086 GB, free: 89.79 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006222/1.379, allocations: 6.688 MB / 0.8152 GB, free: 82.17 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01257/1.392, allocations: 12.07 MB / 0.8269 GB, free: 69.18 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-05/1.392, allocations: 23.94 kB / 0.827 GB, free: 69.15 MB / 0.5606 GB Notification: Performance of matching and sorting (n=725) (initialization): time 0.04885/1.441, allocations: 19.04 MB / 0.8456 GB, free: 50.07 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.894e-05/1.441, allocations: 32 kB / 0.8456 GB, free: 50.04 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.922e-05/1.441, allocations: 71.92 kB / 0.8457 GB, free: 49.96 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02232/1.463, allocations: 8.822 MB / 0.8543 GB, free: 41.12 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003776/1.467, allocations: 1.014 MB / 0.8553 GB, free: 40.11 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06869/1.536, allocations: 54.03 MB / 0.908 GB, free: 1.68 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006457/1.542, allocations: 0.4895 MB / 0.9085 GB, free: 1.191 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00139/1.544, allocations: 287.9 kB / 0.9088 GB, free: 0.9102 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.005519/1.549, allocations: 2.264 MB / 0.911 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001425/1.551, allocations: 0.4928 MB / 0.9115 GB, free: 14.14 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04269/1.593, allocations: 17.97 MB / 0.929 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04137/1.635, allocations: 16.47 MB / 0.9451 GB, free: 11.6 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.249e-05/1.635, allocations: 28 kB / 0.9451 GB, free: 11.57 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.942e-05/1.635, allocations: 19.92 kB / 0.9452 GB, free: 11.55 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3545/1.99, allocations: 35.08 MB / 0.9794 GB, free: 202.1 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.016e-05/1.99, allocations: 3.969 kB / 0.9794 GB, free: 202.1 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002403/1.992, allocations: 453 kB / 0.9799 GB, free: 202.1 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02322/2.015, allocations: 8.642 MB / 0.9883 GB, free: 198.1 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001222/2.017, allocations: 75.94 kB / 0.9884 GB, free: 198.1 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06013/2.077, allocations: 52.59 MB / 1.04 GB, free: 145.5 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0123/2.089, allocations: 9.815 MB / 1.049 GB, free: 135.6 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04161/2.131, allocations: 24.12 MB / 1.073 GB, free: 111.7 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00141/2.132, allocations: 0.5398 MB / 1.073 GB, free: 111.4 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001952/2.134, allocations: 72 kB / 1.073 GB, free: 111.3 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005099/2.139, allocations: 379.4 kB / 1.074 GB, free: 111 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002153/2.141, allocations: 323.7 kB / 1.074 GB, free: 110.7 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007184/2.142, allocations: 107.3 kB / 1.074 GB, free: 110.6 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.004397/2.147, allocations: 2.836 MB / 1.077 GB, free: 107.7 MB / 0.6231 GB Notification: Performance of sort global known variables: time 5.91e-07/2.147, allocations: 0 / 1.077 GB, free: 107.7 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.007875/2.154, allocations: 1.977 MB / 1.079 GB, free: 105.7 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.04051/2.195, allocations: 24.77 MB / 1.103 GB, free: 80.9 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.02032/2.215, allocations: 12.74 MB / 1.116 GB, free: 68.12 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.016e-05/2.215, allocations: 0 / 1.116 GB, free: 68.12 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.01268/2.228, allocations: 7.247 MB / 1.123 GB, free: 60.82 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006726/2.235, allocations: 0.8414 MB / 1.123 GB, free: 60 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4444/2.679, allocations: 80.59 MB / 1.202 GB, free: 216.1 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006418/2.686, allocations: 4.151 MB / 1.206 GB, free: 215.3 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.004423/2.69, allocations: 1.611 MB / 1.208 GB, free: 215.2 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003847/2.694, allocations: 2.618 MB / 1.21 GB, free: 215.2 MB / 0.6387 GB Notification: Performance of SimCode: time 1.513e-06/2.694, allocations: 0 / 1.21 GB, free: 215.2 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2281/2.922, allocations: 171 MB / 1.377 GB, free: 59.15 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 31.57/34.49, allocations: 7.719 kB / 1.377 GB, free: 59.14 MB / 0.6387 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe 2>&1)