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.001256/0.001256, allocations: 118.4 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001327/0.001327, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.432/1.432, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2128/0.2128, allocations: 46.09 MB / 344.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002471/0.002471, allocations: 75.88 kB / 480.8 MB, free: 4.543 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3927/0.3952, allocations: 62.44 MB / 0.5305 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint): time 0.02018/0.4154, allocations: 16.8 MB / 0.5469 GB, free: 156 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01302/0.4285, allocations: 5.477 MB / 0.5523 GB, free: 11.39 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003987/0.4325, allocations: 135.6 kB / 0.5524 GB, free: 11.26 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009744/0.4423, allocations: 4.645 MB / 0.5569 GB, free: 6.602 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008927/0.4513, allocations: 2.427 MB / 0.5593 GB, free: 4.168 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003659/0.455, allocations: 1.307 MB / 0.5606 GB, free: 2.859 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01281/0.4678, allocations: 8.623 MB / 0.569 GB, free: 10.22 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008026/0.4759, allocations: 5.536 MB / 0.5744 GB, free: 4.617 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004549/0.4805, allocations: 2.575 MB / 0.5769 GB, free: 2.035 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004726/0.4852, allocations: 3.202 MB / 0.5801 GB, free: 14.82 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001529/0.4868, allocations: 0.4922 MB / 0.5805 GB, free: 14.33 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003234/0.49, allocations: 1.264 MB / 0.5818 GB, free: 13.07 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003873/0.4939, allocations: 2.876 MB / 0.5846 GB, free: 10.18 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006322/0.5003, allocations: 3.163 MB / 0.5877 GB, free: 7.004 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01263/0.5129, allocations: 9.415 MB / 0.5969 GB, free: 13.55 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.5129, allocations: 0 / 0.5969 GB, free: 13.55 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.513, allocations: 0 / 0.5969 GB, free: 13.55 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003642/0.5133, allocations: 0 / 0.5969 GB, free: 13.55 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.02323/0.5366, allocations: 7.535 MB / 0.6042 GB, free: 5.938 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.241e-05/0.5366, allocations: 12.03 kB / 0.6042 GB, free: 5.926 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002215/0.5389, allocations: 0.7348 MB / 0.605 GB, free: 5.18 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05979/0.5987, allocations: 8.911 MB / 0.6137 GB, free: 12.25 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01435/0.6131, allocations: 6.345 MB / 0.6199 GB, free: 5.836 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003931/0.6135, allocations: 329.5 kB / 0.6202 GB, free: 5.508 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001774/0.6153, allocations: 411.6 kB / 0.6206 GB, free: 5.105 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02707/0.6424, allocations: 10.75 MB / 0.6311 GB, free: 9.781 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004123/0.6428, allocations: 59.45 kB / 0.6311 GB, free: 9.723 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001548/0.6444, allocations: 179.9 kB / 0.6313 GB, free: 9.547 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003541/0.648, allocations: 1.725 MB / 0.633 GB, free: 7.816 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02149/0.6695, allocations: 9.024 MB / 0.6418 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06761/0.7371, allocations: 44.14 MB / 0.6849 GB, free: 1.398 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02246/0.7596, allocations: 7.652 MB / 0.6924 GB, free: 9.727 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006828/0.7665, allocations: 5.123 MB / 0.6974 GB, free: 4.594 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02214/0.7887, allocations: 12.7 MB / 0.7098 GB, free: 7.613 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001019/0.7888, allocations: 64.8 kB / 0.7098 GB, free: 7.539 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=283): time 9.608e-06/0.7889, allocations: 0 / 0.7098 GB, free: 7.539 MB / 0.5606 GB Notification: Performance of matching and sorting (n=406): time 0.5337/1.323, allocations: 74.54 MB / 0.7826 GB, free: 117.7 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01231/1.335, allocations: 11.11 MB / 0.7935 GB, free: 106.4 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004586/1.34, allocations: 4.31 MB / 0.7977 GB, free: 102.1 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008798/1.34, allocations: 93.53 kB / 0.7978 GB, free: 102 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00131/1.342, allocations: 2.962 MB / 0.8007 GB, free: 99.05 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001427/1.343, allocations: 1.4 MB / 0.802 GB, free: 97.66 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001656/1.345, allocations: 1.135 MB / 0.8031 GB, free: 96.52 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.905e-05/1.345, allocations: 303.6 kB / 0.8034 GB, free: 96.22 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00471/1.35, allocations: 4.657 MB / 0.808 GB, free: 91.56 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005721/1.355, allocations: 6.68 MB / 0.8145 GB, free: 83.95 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01227/1.368, allocations: 12.07 MB / 0.8263 GB, free: 70.95 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-05/1.368, allocations: 16 kB / 0.8263 GB, free: 70.93 MB / 0.5606 GB Notification: Performance of matching and sorting (n=725) (initialization): time 0.03153/1.399, allocations: 19.03 MB / 0.8449 GB, free: 51.87 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.627e-05/1.399, allocations: 36.12 kB / 0.8449 GB, free: 51.83 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-05/1.399, allocations: 71.94 kB / 0.845 GB, free: 51.76 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02078/1.42, allocations: 8.811 MB / 0.8536 GB, free: 42.93 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003909/1.424, allocations: 1.014 MB / 0.8546 GB, free: 41.91 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06263/1.487, allocations: 54 MB / 0.9073 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005939/1.493, allocations: 499.4 kB / 0.9078 GB, free: 3.027 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007742/1.494, allocations: 283.9 kB / 0.9081 GB, free: 2.75 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.003936/1.497, allocations: 2.272 MB / 0.9103 GB, free: 480 kB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001129/1.499, allocations: 474 kB / 0.9108 GB, free: 0 / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03603/1.535, allocations: 17.97 MB / 0.9283 GB, free: 13.96 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03628/1.571, allocations: 16.47 MB / 0.9444 GB, free: 13.45 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.752e-05/1.571, allocations: 31.94 kB / 0.9444 GB, free: 13.42 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001017/1.571, allocations: 19.92 kB / 0.9444 GB, free: 13.4 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3965/1.968, allocations: 35.08 MB / 0.9787 GB, free: 203.3 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.797e-05/1.968, allocations: 6.156 kB / 0.9787 GB, free: 203.3 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002375/1.97, allocations: 452.7 kB / 0.9791 GB, free: 203.3 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02124/1.991, allocations: 8.645 MB / 0.9876 GB, free: 200 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001033/1.993, allocations: 71.98 kB / 0.9876 GB, free: 199.9 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05732/2.05, allocations: 52.54 MB / 1.039 GB, free: 147.4 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01156/2.061, allocations: 9.82 MB / 1.049 GB, free: 137.5 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03684/2.098, allocations: 24.09 MB / 1.072 GB, free: 113.6 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001447/2.1, allocations: 0.5157 MB / 1.073 GB, free: 113.3 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001534/2.101, allocations: 75.72 kB / 1.073 GB, free: 113.2 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003446/2.105, allocations: 383.4 kB / 1.073 GB, free: 112.9 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001322/2.106, allocations: 320.1 kB / 1.073 GB, free: 112.5 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00032/2.107, allocations: 104 kB / 1.073 GB, free: 112.4 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.003589/2.11, allocations: 2.835 MB / 1.076 GB, free: 109.6 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.91e-07/2.11, allocations: 0 / 1.076 GB, free: 109.6 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.007403/2.118, allocations: 1.977 MB / 1.078 GB, free: 107.6 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.0361/2.154, allocations: 24.74 MB / 1.102 GB, free: 82.82 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.01824/2.172, allocations: 12.72 MB / 1.115 GB, free: 70.05 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/2.172, allocations: 0 / 1.115 GB, free: 70.05 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.01135/2.183, allocations: 7.216 MB / 1.122 GB, free: 62.79 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004804/2.188, allocations: 0.8465 MB / 1.123 GB, free: 61.96 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4307/2.619, allocations: 80.38 MB / 1.201 GB, free: 217.9 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005579/2.625, allocations: 4.146 MB / 1.205 GB, free: 217.1 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.004015/2.629, allocations: 1.611 MB / 1.207 GB, free: 217 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003392/2.632, allocations: 2.62 MB / 1.209 GB, free: 217 MB / 0.6387 GB Notification: Performance of SimCode: time 9.62e-07/2.632, allocations: 0 / 1.209 GB, free: 217 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2291/2.861, allocations: 174.3 MB / 1.379 GB, free: 61.36 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.78/33.64, allocations: 14.86 kB / 1.379 GB, free: 61.35 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint_res.mat does not exist to compare? outputFormat=mat