Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.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: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 113.2 kB / 17.78 MB, free: 5.125 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.001043/0.001043, allocations: 185 kB / 18.71 MB, free: 4.203 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.412/1.412, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.2182/0.2182, allocations: 44.18 MB / 336.7 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 63.91 kB / 470.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4068/0.4082, allocations: 60.82 MB / 0.5189 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01087/0.4191, allocations: 9.039 MB / 0.5277 GB, free: 13.22 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009713/0.4288, allocations: 3.546 MB / 0.5312 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002931/0.4318, allocations: 48.25 kB / 0.5312 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004726/0.4366, allocations: 1.672 MB / 0.5329 GB, free: 9.543 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006231/0.4429, allocations: 1.595 MB / 0.5344 GB, free: 8.434 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002027/0.445, allocations: 0.5645 MB / 0.535 GB, free: 8.062 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007498/0.4525, allocations: 3.582 MB / 0.5385 GB, free: 6.102 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004456/0.457, allocations: 2.211 MB / 0.5406 GB, free: 4.773 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002936/0.4599, allocations: 1.111 MB / 0.5417 GB, free: 4.145 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003962/0.4639, allocations: 1.559 MB / 0.5432 GB, free: 3.035 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001307/0.4652, allocations: 224 kB / 0.5435 GB, free: 2.816 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003617/0.4689, allocations: 1.123 MB / 0.5445 GB, free: 1.691 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002403/0.4713, allocations: 1.449 MB / 0.546 GB, free: 244 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003715/0.475, allocations: 1.662 MB / 0.5476 GB, free: 14.56 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01003/0.4851, allocations: 5.564 MB / 0.553 GB, free: 8.98 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.927e-06/0.4852, allocations: 0 / 0.553 GB, free: 8.98 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.4852, allocations: 0 / 0.553 GB, free: 8.98 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003497/0.4855, allocations: 0 / 0.553 GB, free: 8.98 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.01292/0.4985, allocations: 3.839 MB / 0.5568 GB, free: 5.066 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.719e-05/0.4985, allocations: 8.031 kB / 0.5568 GB, free: 5.059 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01573/0.5143, allocations: 2.382 MB / 0.5591 GB, free: 2.672 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006257/0.5206, allocations: 2.234 MB / 0.5613 GB, free: 396 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002214/0.5208, allocations: 160.5 kB / 0.5614 GB, free: 232 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001224/0.5221, allocations: 224 kB / 0.5616 GB, free: 8 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01408/0.5362, allocations: 7.587 MB / 0.5691 GB, free: 7.797 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001442/0.5363, allocations: 43.73 kB / 0.5691 GB, free: 7.754 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007134/0.5371, allocations: 115.9 kB / 0.5692 GB, free: 7.641 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002818/0.5399, allocations: 1.601 MB / 0.5708 GB, free: 6.039 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01274/0.5526, allocations: 6.472 MB / 0.5771 GB, free: 15.56 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04255/0.5952, allocations: 30.59 MB / 0.607 GB, free: 32 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004812/0.6001, allocations: 2.237 MB / 0.6092 GB, free: 13.64 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001629/0.6017, allocations: 1.133 MB / 0.6103 GB, free: 12.5 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004069/0.6022, allocations: 323.4 kB / 0.6106 GB, free: 12.13 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.771e-05/0.6022, allocations: 50.94 kB / 0.6106 GB, free: 12.07 MB / 478.1 MB Notification: Performance of pre-optimization done (n=108): time 4.869e-06/0.6022, allocations: 0 / 0.6106 GB, free: 12.07 MB / 478.1 MB Notification: Performance of matching and sorting (n=132): time 0.03684/0.6391, allocations: 12.06 MB / 0.6224 GB, free: 15.88 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000111/0.6392, allocations: 204.5 kB / 0.6226 GB, free: 15.64 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00651/0.6458, allocations: 3.665 MB / 0.6262 GB, free: 11.98 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002004/0.646, allocations: 41.7 kB / 0.6262 GB, free: 11.93 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001847/0.6478, allocations: 2.69 MB / 0.6288 GB, free: 9.215 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006279/0.6485, allocations: 0.5584 MB / 0.6294 GB, free: 8.652 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001583/0.6501, allocations: 1.092 MB / 0.6304 GB, free: 7.551 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.6502, allocations: 301.1 kB / 0.6307 GB, free: 7.254 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002573/0.6528, allocations: 1.748 MB / 0.6324 GB, free: 5.5 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00485/0.6576, allocations: 5.107 MB / 0.6374 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008871/0.6665, allocations: 7.395 MB / 0.6446 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000119/0.6667, allocations: 36 kB / 0.6447 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01318/0.6799, allocations: 7.101 MB / 0.6516 GB, free: 14.49 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001248/0.68, allocations: 56.28 kB / 0.6517 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002075/0.6803, allocations: 116 kB / 0.6518 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001711/0.682, allocations: 0.6528 MB / 0.6524 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003885/0.6859, allocations: 1.224 MB / 0.6536 GB, free: 12.44 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005023/0.6909, allocations: 4.059 MB / 0.6576 GB, free: 8.238 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004132/0.6951, allocations: 295.6 kB / 0.6579 GB, free: 7.949 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001043/0.6961, allocations: 328 kB / 0.6582 GB, free: 7.629 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 542 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.arrowLine.twoHeadedArrow,Distance1.arrow.headAtOrigin,BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (662): * Single equations (assignments): 658 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003591/0.6997, allocations: 1.74 MB / 0.6599 GB, free: 5.875 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008996/0.7006, allocations: 317.8 kB / 0.6602 GB, free: 5.562 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004503/0.7052, allocations: 2.092 MB / 0.6622 GB, free: 3.457 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-05/0.7052, allocations: 23.88 kB / 0.6622 GB, free: 3.434 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.714e-05/0.7053, allocations: 4 kB / 0.6622 GB, free: 3.43 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.534e-05/0.7053, allocations: 3.984 kB / 0.6622 GB, free: 3.426 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01165/0.7169, allocations: 5.66 MB / 0.6678 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.928e-05/0.717, allocations: 0 / 0.6678 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001073/0.7181, allocations: 195.7 kB / 0.668 GB, free: 13.48 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001494/0.7196, allocations: 488.3 kB / 0.6684 GB, free: 13 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000155/0.7198, allocations: 20 kB / 0.6684 GB, free: 12.98 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004599/0.7244, allocations: 3.453 MB / 0.6718 GB, free: 9.391 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.534e-06/0.7244, allocations: 3.984 kB / 0.6718 GB, free: 9.387 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008731/0.7332, allocations: 4.189 MB / 0.6759 GB, free: 5.164 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001458/0.7347, allocations: 386.8 kB / 0.6763 GB, free: 4.766 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00101/0.7357, allocations: 28 kB / 0.6763 GB, free: 4.738 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001802/0.7376, allocations: 75.89 kB / 0.6764 GB, free: 4.664 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002384/0.7378, allocations: 72.44 kB / 0.6764 GB, free: 4.594 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001128/0.7379, allocations: 32 kB / 0.6765 GB, free: 4.562 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004554/0.7425, allocations: 2.292 MB / 0.6787 GB, free: 2.281 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7425, allocations: 0 / 0.6787 GB, free: 2.281 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005232/0.7477, allocations: 0.8085 MB / 0.6795 GB, free: 1.473 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (102): * Single equations (assignments): 98 * 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.0004882/0.7483, allocations: 147 kB / 0.6796 GB, free: 1.32 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006837/0.7551, allocations: 4.152 MB / 0.6837 GB, free: 13.18 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/0.7551, allocations: 0 / 0.6837 GB, free: 13.18 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001702/0.7569, allocations: 1.143 MB / 0.6848 GB, free: 12.03 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003053/0.7599, allocations: 365.8 kB / 0.6852 GB, free: 11.67 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0142/0.7741, allocations: 7.299 MB / 0.6923 GB, free: 4.324 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004483/0.7787, allocations: 2.679 MB / 0.6949 GB, free: 1.621 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00472/0.7834, allocations: 1.702 MB / 0.6966 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009026/0.7844, allocations: 207.3 kB / 0.6968 GB, free: 15.71 MB / 0.5606 GB Notification: Performance of SimCode: time 1.283e-06/0.7844, allocations: 4 kB / 0.6968 GB, free: 15.71 MB / 0.5606 GB Notification: Performance of Templates: time 0.06049/0.8449, allocations: 26.19 MB / 0.7224 GB, free: 5.602 MB / 0.5762 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches