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.00117/0.00117, allocations: 110.4 kB / 17.78 MB, free: 5.289 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.001843/0.001843, allocations: 187.9 kB / 18.71 MB, free: 4.371 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.41/1.41, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2163/0.2163, allocations: 44.19 MB / 336.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 71.89 kB / 470.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4405/0.4418, allocations: 60.82 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint): time 0.02082/0.4627, allocations: 16.84 MB / 0.5349 GB, free: 7.07 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01373/0.4765, allocations: 5.463 MB / 0.5402 GB, free: 2.738 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004432/0.481, allocations: 135.1 kB / 0.5403 GB, free: 2.707 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01038/0.4914, allocations: 4.671 MB / 0.5449 GB, free: 15.57 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008252/0.4997, allocations: 2.452 MB / 0.5473 GB, free: 13.78 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004274/0.504, allocations: 1.305 MB / 0.5486 GB, free: 12.89 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01367/0.5177, allocations: 8.404 MB / 0.5568 GB, free: 4.73 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008545/0.5263, allocations: 5.525 MB / 0.5622 GB, free: 15.14 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005667/0.532, allocations: 2.586 MB / 0.5647 GB, free: 12.54 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005376/0.5374, allocations: 3.202 MB / 0.5678 GB, free: 9.332 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001856/0.5393, allocations: 0.4922 MB / 0.5683 GB, free: 8.84 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003998/0.5433, allocations: 1.28 MB / 0.5696 GB, free: 7.559 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004629/0.548, allocations: 2.895 MB / 0.5724 GB, free: 4.656 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006684/0.5547, allocations: 3.171 MB / 0.5755 GB, free: 1.469 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0134/0.5681, allocations: 9.439 MB / 0.5847 GB, free: 8 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.293e-06/0.5682, allocations: 4 kB / 0.5847 GB, free: 7.996 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.5682, allocations: 0 / 0.5847 GB, free: 7.996 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003933/0.5686, allocations: 0 / 0.5847 GB, free: 7.996 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.02642/0.595, allocations: 7.519 MB / 0.5921 GB, free: 404 kB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.114e-05/0.5951, allocations: 8.031 kB / 0.5921 GB, free: 396 kB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00339/0.5985, allocations: 0.7349 MB / 0.5928 GB, free: 15.64 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06924/0.6678, allocations: 8.911 MB / 0.6015 GB, free: 6.707 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01628/0.6841, allocations: 6.77 MB / 0.6081 GB, free: 15.87 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003675/0.6845, allocations: 329.4 kB / 0.6084 GB, free: 15.54 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0015/0.686, allocations: 407.7 kB / 0.6088 GB, free: 15.14 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02474/0.7108, allocations: 10.75 MB / 0.6193 GB, free: 3.82 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003444/0.7112, allocations: 59.41 kB / 0.6194 GB, free: 3.762 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001334/0.7125, allocations: 179.9 kB / 0.6195 GB, free: 3.586 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003452/0.716, allocations: 1.729 MB / 0.6212 GB, free: 1.852 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02113/0.7371, allocations: 9.036 MB / 0.63 GB, free: 8.793 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0711/0.8083, allocations: 44.16 MB / 0.6732 GB, free: 11.41 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02242/0.8307, allocations: 7.619 MB / 0.6806 GB, free: 3.766 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006487/0.8373, allocations: 5.126 MB / 0.6856 GB, free: 14.62 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02389/0.8612, allocations: 12.72 MB / 0.698 GB, free: 1.633 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.95e-05/0.8613, allocations: 72.73 kB / 0.6981 GB, free: 1.551 MB / 0.545 GB Notification: Performance of pre-optimization done (n=283): time 6.772e-06/0.8613, allocations: 0 / 0.6981 GB, free: 1.551 MB / 0.545 GB Notification: Performance of matching and sorting (n=406): time 0.5511/1.412, allocations: 74.53 MB / 0.7709 GB, free: 135.8 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01404/1.427, allocations: 11.09 MB / 0.7817 GB, free: 124.5 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007502/1.434, allocations: 4.315 MB / 0.7859 GB, free: 120.2 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.00106/1.435, allocations: 89.7 kB / 0.786 GB, free: 120.1 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001779/1.437, allocations: 2.963 MB / 0.7889 GB, free: 117.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002038/1.439, allocations: 1.411 MB / 0.7903 GB, free: 115.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003013/1.442, allocations: 1.131 MB / 0.7914 GB, free: 114.6 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.949e-05/1.442, allocations: 309 kB / 0.7917 GB, free: 114.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004868/1.447, allocations: 4.657 MB / 0.7962 GB, free: 109.7 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005606/1.453, allocations: 6.68 MB / 0.8028 GB, free: 102 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01137/1.464, allocations: 12.08 MB / 0.8146 GB, free: 89.05 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.823e-05/1.464, allocations: 16 kB / 0.8146 GB, free: 89.03 MB / 0.5606 GB Notification: Performance of matching and sorting (n=725) (initialization): time 0.03454/1.499, allocations: 19.03 MB / 0.8332 GB, free: 69.95 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.973e-05/1.499, allocations: 36.25 kB / 0.8332 GB, free: 69.92 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001039/1.499, allocations: 68 kB / 0.8333 GB, free: 69.85 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02399/1.523, allocations: 8.807 MB / 0.8419 GB, free: 61.03 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004505/1.527, allocations: 1.014 MB / 0.8428 GB, free: 60.02 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06298/1.59, allocations: 54.02 MB / 0.8956 GB, free: 5.598 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006795/1.597, allocations: 491.3 kB / 0.8961 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001507/1.599, allocations: 291.8 kB / 0.8963 GB, free: 4.836 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.005523/1.604, allocations: 2.261 MB / 0.8986 GB, free: 2.562 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001978/1.606, allocations: 481.8 kB / 0.899 GB, free: 2.086 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03684/1.643, allocations: 17.96 MB / 0.9166 GB, free: 64 kB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03866/1.682, allocations: 16.47 MB / 0.9326 GB, free: 15.55 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000104/1.682, allocations: 24 kB / 0.9327 GB, free: 15.52 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001135/1.682, allocations: 23.92 kB / 0.9327 GB, free: 15.5 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.375/2.057, allocations: 35.08 MB / 0.9669 GB, free: 194.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.016e-05/2.057, allocations: 3.906 kB / 0.9669 GB, free: 194.4 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002435/2.06, allocations: 463.1 kB / 0.9674 GB, free: 194.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02405/2.084, allocations: 8.645 MB / 0.9758 GB, free: 192.8 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001301/2.085, allocations: 70.22 kB / 0.9759 GB, free: 192.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06019/2.145, allocations: 52.55 MB / 1.027 GB, free: 144.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01175/2.157, allocations: 9.817 MB / 1.037 GB, free: 134.6 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03922/2.196, allocations: 24.1 MB / 1.06 GB, free: 110.7 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001871/2.198, allocations: 0.5077 MB / 1.061 GB, free: 110.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001414/2.2, allocations: 75 kB / 1.061 GB, free: 110.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003726/2.203, allocations: 387.4 kB / 1.061 GB, free: 110 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001494/2.205, allocations: 323.1 kB / 1.062 GB, free: 109.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000363/2.205, allocations: 95.98 kB / 1.062 GB, free: 109.6 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.003857/2.209, allocations: 2.84 MB / 1.064 GB, free: 106.7 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/2.209, allocations: 0 / 1.064 GB, free: 106.7 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.006925/2.216, allocations: 1.991 MB / 1.066 GB, free: 104.7 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.03801/2.254, allocations: 24.75 MB / 1.091 GB, free: 79.93 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.01989/2.274, allocations: 12.71 MB / 1.103 GB, free: 67.17 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 9.698e-06/2.274, allocations: 4.25 kB / 1.103 GB, free: 67.17 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.01228/2.286, allocations: 7.222 MB / 1.11 GB, free: 59.9 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005178/2.292, allocations: 0.8403 MB / 1.111 GB, free: 59.07 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4258/2.717, allocations: 80.4 MB / 1.189 GB, free: 206.6 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006269/2.724, allocations: 4.16 MB / 1.193 GB, free: 205.8 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.004109/2.728, allocations: 1.607 MB / 1.195 GB, free: 205.7 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003551/2.731, allocations: 2.613 MB / 1.198 GB, free: 205.7 MB / 0.6231 GB Notification: Performance of SimCode: time 2.605e-06/2.731, allocations: 0 / 1.198 GB, free: 205.7 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2239/2.955, allocations: 174.4 MB / 1.368 GB, free: 49.24 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 31.9/34.85, allocations: 15.81 kB / 1.368 GB, free: 49.23 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint_res.mat does not exist to compare? outputFormat=mat