Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.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: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001642/0.001642, allocations: 116.5 kB / 17.78 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.002415/0.002415, 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.426/1.426, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2204/0.2204, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001621, allocations: 75.88 kB / 481.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4071/0.4088, allocations: 62.43 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01145/0.4203, allocations: 9.061 MB / 0.5398 GB, free: 6.496 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008647/0.429, allocations: 3.563 MB / 0.5433 GB, free: 3.734 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002626/0.4316, allocations: 49.16 kB / 0.5434 GB, free: 3.727 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004648/0.4363, allocations: 1.906 MB / 0.5452 GB, free: 2.445 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005589/0.442, allocations: 1.574 MB / 0.5468 GB, free: 1.355 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001723/0.4437, allocations: 0.5679 MB / 0.5473 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005872/0.4496, allocations: 3.647 MB / 0.5509 GB, free: 13.29 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003519/0.4531, allocations: 2.44 MB / 0.5533 GB, free: 10.8 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002205/0.4554, allocations: 1.152 MB / 0.5544 GB, free: 9.645 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002921/0.4583, allocations: 1.639 MB / 0.556 GB, free: 8 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001043/0.4594, allocations: 240 kB / 0.5562 GB, free: 7.766 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002646/0.462, allocations: 1.112 MB / 0.5573 GB, free: 6.652 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002122/0.4642, allocations: 1.516 MB / 0.5588 GB, free: 5.133 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003109/0.4673, allocations: 1.708 MB / 0.5604 GB, free: 3.414 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007972/0.4753, allocations: 5.712 MB / 0.566 GB, free: 13.68 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.4753, allocations: 0 / 0.566 GB, free: 13.68 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.4753, allocations: 4 kB / 0.566 GB, free: 13.68 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002072/0.4755, allocations: 0 / 0.566 GB, free: 13.68 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.008513/0.4841, allocations: 3.929 MB / 0.5699 GB, free: 9.672 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.4841, allocations: 8.031 kB / 0.5699 GB, free: 9.664 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01494/0.4991, allocations: 2.374 MB / 0.5722 GB, free: 7.285 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005015/0.5041, allocations: 2.257 MB / 0.5744 GB, free: 4.977 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001941/0.5043, allocations: 180.8 kB / 0.5746 GB, free: 4.797 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000988/0.5053, allocations: 239.9 kB / 0.5748 GB, free: 4.562 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01296/0.5183, allocations: 7.79 MB / 0.5824 GB, free: 12.12 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001749/0.5185, allocations: 35.69 kB / 0.5824 GB, free: 12.09 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005665/0.5191, allocations: 111.9 kB / 0.5825 GB, free: 11.98 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002598/0.5217, allocations: 1.594 MB / 0.5841 GB, free: 10.38 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01234/0.5341, allocations: 6.574 MB / 0.5905 GB, free: 3.797 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04008/0.5742, allocations: 31.67 MB / 0.6215 GB, free: 3.148 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005073/0.5793, allocations: 2.488 MB / 0.6239 GB, free: 0.5156 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001644/0.581, allocations: 1.127 MB / 0.625 GB, free: 15.38 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004711/0.5815, allocations: 331.2 kB / 0.6253 GB, free: 15 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.23e-05/0.5815, allocations: 50.55 kB / 0.6253 GB, free: 14.94 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 4.659e-06/0.5815, allocations: 0 / 0.6253 GB, free: 14.94 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02514/0.6067, allocations: 9.313 MB / 0.6344 GB, free: 5.535 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/0.6068, allocations: 196.5 kB / 0.6346 GB, free: 5.297 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006039/0.6129, allocations: 3.771 MB / 0.6383 GB, free: 1.531 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001516/0.6131, allocations: 45.69 kB / 0.6384 GB, free: 1.48 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001945/0.615, allocations: 2.799 MB / 0.6411 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005522/0.6156, allocations: 0.508 MB / 0.6416 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001439/0.617, allocations: 1.135 MB / 0.6427 GB, free: 13 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.426e-05/0.6171, allocations: 309.1 kB / 0.643 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002351/0.6195, allocations: 1.693 MB / 0.6446 GB, free: 10.99 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00446/0.624, allocations: 5.255 MB / 0.6498 GB, free: 3.938 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007805/0.6318, allocations: 7.502 MB / 0.6571 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.936e-05/0.6319, allocations: 36 kB / 0.6571 GB, free: 10.62 MB / 0.5137 GB Notification: Performance of matching and sorting (n=717) (initialization): time 0.013/0.6449, allocations: 7.141 MB / 0.6641 GB, free: 3.48 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001051/0.645, allocations: 59.94 kB / 0.6642 GB, free: 3.422 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002088/0.6452, allocations: 128 kB / 0.6643 GB, free: 3.297 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001687/0.6469, allocations: 0.661 MB / 0.6649 GB, free: 2.633 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003894/0.6509, allocations: 1.255 MB / 0.6662 GB, free: 1.375 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005015/0.6559, allocations: 4.073 MB / 0.6701 GB, free: 13.16 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004076/0.66, allocations: 303.5 kB / 0.6704 GB, free: 12.87 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007775/0.6608, allocations: 344 kB / 0.6708 GB, free: 12.53 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.twoHeadedArrow,distance1.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (682): * Single equations (assignments): 678 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003449/0.6642, allocations: 1.786 MB / 0.6725 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008761/0.6651, allocations: 317.8 kB / 0.6728 GB, free: 10.42 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003832/0.669, allocations: 1.836 MB / 0.6746 GB, free: 8.57 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.923e-05/0.669, allocations: 12 kB / 0.6746 GB, free: 8.559 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.595e-05/0.669, allocations: 7.984 kB / 0.6746 GB, free: 8.551 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.236e-05/0.6691, allocations: 3.984 kB / 0.6746 GB, free: 8.547 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01123/0.6803, allocations: 5.204 MB / 0.6797 GB, free: 3.27 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-05/0.6803, allocations: 3.938 kB / 0.6797 GB, free: 3.266 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007945/0.6811, allocations: 159.8 kB / 0.6799 GB, free: 3.109 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001369/0.6825, allocations: 488.2 kB / 0.6803 GB, free: 2.629 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001163/0.6827, allocations: 20.17 kB / 0.6803 GB, free: 2.609 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004295/0.687, allocations: 3.437 MB / 0.6837 GB, free: 15.02 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.687, allocations: 0 / 0.6837 GB, free: 15.02 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006059/0.693, allocations: 3.751 MB / 0.6874 GB, free: 11.25 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001265/0.6943, allocations: 374.8 kB / 0.6877 GB, free: 10.86 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001183/0.6955, allocations: 19.94 kB / 0.6877 GB, free: 10.84 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001897/0.6974, allocations: 63.98 kB / 0.6878 GB, free: 10.78 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002534/0.6977, allocations: 60.47 kB / 0.6879 GB, free: 10.72 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001211/0.6979, allocations: 35.91 kB / 0.6879 GB, free: 10.69 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005873/0.7037, allocations: 2.334 MB / 0.6902 GB, free: 8.371 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.61e-07/0.7037, allocations: 0 / 0.6902 GB, free: 8.371 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005799/0.7096, allocations: 0.7929 MB / 0.6909 GB, free: 7.578 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 84 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005519/0.7101, allocations: 150.9 kB / 0.6911 GB, free: 7.422 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007187/0.7173, allocations: 4.033 MB / 0.695 GB, free: 3.402 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/0.7174, allocations: 0.75 kB / 0.695 GB, free: 3.402 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001433/0.7188, allocations: 1.004 MB / 0.696 GB, free: 2.391 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002671/0.7215, allocations: 355.9 kB / 0.6963 GB, free: 2.039 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01495/0.7365, allocations: 7.231 MB / 0.7034 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004176/0.7407, allocations: 2.712 MB / 0.7061 GB, free: 8.016 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003981/0.7447, allocations: 1.71 MB / 0.7077 GB, free: 6.301 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007109/0.7454, allocations: 203.4 kB / 0.7079 GB, free: 6.105 MB / 0.5606 GB Notification: Performance of SimCode: time 1.643e-06/0.7454, allocations: 4 kB / 0.7079 GB, free: 6.102 MB / 0.5606 GB Notification: Performance of Templates: time 0.382/1.127, allocations: 25.71 MB / 0.733 GB, free: 177.1 MB / 0.5762 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches