Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001842/0.001842, allocations: 111.1 kB / 16.41 MB, free: 6.484 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.001919/0.001919, allocations: 189.5 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.579/1.579, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2323/0.2323, allocations: 43.53 MB / 314.1 MB, free: 464 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 67.91 kB / 441.8 MB, free: 5.684 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1265, allocations: 57.8 MB / 499.6 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01084/0.1374, allocations: 10 MB / 0.4976 GB, free: 1.758 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008285/0.1458, allocations: 3.707 MB / 0.5013 GB, free: 14.04 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00177/0.1476, allocations: 51.88 kB / 0.5013 GB, free: 13.99 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004591/0.1522, allocations: 1.954 MB / 0.5032 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005125/0.1574, allocations: 1.778 MB / 0.505 GB, free: 10.24 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001662/0.1591, allocations: 0.5692 MB / 0.5055 GB, free: 9.672 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00585/0.1649, allocations: 3.743 MB / 0.5092 GB, free: 5.918 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004533/0.1695, allocations: 2.554 MB / 0.5117 GB, free: 3.309 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003409/0.1729, allocations: 1.281 MB / 0.5129 GB, free: 2.023 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004457/0.1774, allocations: 1.826 MB / 0.5147 GB, free: 196 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001264/0.1787, allocations: 276 kB / 0.515 GB, free: 15.92 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003251/0.182, allocations: 1.147 MB / 0.5161 GB, free: 14.77 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002542/0.1846, allocations: 1.703 MB / 0.5177 GB, free: 13.07 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003742/0.1883, allocations: 1.934 MB / 0.5196 GB, free: 11.12 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0083/0.1966, allocations: 6.411 MB / 0.5259 GB, free: 4.688 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1967, allocations: 0 / 0.5259 GB, free: 4.688 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1967, allocations: 0 / 0.5259 GB, free: 4.688 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001572/0.1968, allocations: 0 / 0.5259 GB, free: 4.688 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: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.008209/0.2051, allocations: 4.207 MB / 0.53 GB, free: 424 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.2051, allocations: 11.89 kB / 0.53 GB, free: 412 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2714/0.4765, allocations: 2.432 MB / 0.5324 GB, free: 37.53 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006547/0.4831, allocations: 2.445 MB / 0.5348 GB, free: 36.98 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002449/0.4834, allocations: 198.8 kB / 0.535 GB, free: 36.97 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009714/0.4844, allocations: 258.4 kB / 0.5352 GB, free: 36.96 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01833/0.5027, allocations: 8.76 MB / 0.5438 GB, free: 33.42 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001846/0.503, allocations: 41.84 kB / 0.5438 GB, free: 33.4 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006792/0.5037, allocations: 132.9 kB / 0.5439 GB, free: 33.34 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003708/0.5074, allocations: 1.831 MB / 0.5457 GB, free: 33.02 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01632/0.5237, allocations: 7.468 MB / 0.553 GB, free: 30.35 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04118/0.565, allocations: 34.14 MB / 0.5864 GB, free: 13.11 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005533/0.5706, allocations: 2.587 MB / 0.5889 GB, free: 10.38 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001797/0.5724, allocations: 1.189 MB / 0.59 GB, free: 9.176 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004131/0.5728, allocations: 331.7 kB / 0.5904 GB, free: 8.801 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.497e-05/0.5729, allocations: 43.12 kB / 0.5904 GB, free: 8.75 MB / 430.1 MB Notification: Performance of pre-optimization done (n=119): time 4.448e-06/0.5729, allocations: 0 / 0.5904 GB, free: 8.75 MB / 430.1 MB Notification: Performance of matching and sorting (n=133): time 0.02737/0.6003, allocations: 9.819 MB / 0.6 GB, free: 14.82 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/0.6005, allocations: 200.5 kB / 0.6002 GB, free: 14.58 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007402/0.6079, allocations: 3.964 MB / 0.6041 GB, free: 10.63 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002956/0.6082, allocations: 45.7 kB / 0.6041 GB, free: 10.58 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002419/0.6106, allocations: 2.944 MB / 0.607 GB, free: 7.602 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009558/0.6116, allocations: 0.5442 MB / 0.6075 GB, free: 7.051 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003153/0.6148, allocations: 1.209 MB / 0.6087 GB, free: 5.828 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.6149, allocations: 301.1 kB / 0.609 GB, free: 5.531 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003638/0.6186, allocations: 1.811 MB / 0.6107 GB, free: 3.715 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007054/0.6257, allocations: 5.628 MB / 0.6162 GB, free: 12.16 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01092/0.6367, allocations: 8.05 MB / 0.6241 GB, free: 2.207 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001664/0.6369, allocations: 40 kB / 0.6241 GB, free: 2.168 MB / 462.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01812/0.655, allocations: 7.589 MB / 0.6315 GB, free: 10.57 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002665/0.6553, allocations: 64 kB / 0.6316 GB, free: 10.51 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003735/0.6557, allocations: 136 kB / 0.6317 GB, free: 10.38 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002069/0.6578, allocations: 0.6716 MB / 0.6324 GB, free: 9.703 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005139/0.663, allocations: 1.353 MB / 0.6337 GB, free: 8.348 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005736/0.6688, allocations: 4.094 MB / 0.6377 GB, free: 4.109 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005886/0.6747, allocations: 311.5 kB / 0.638 GB, free: 3.805 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001561/0.6763, allocations: 368.7 kB / 0.6384 GB, free: 3.445 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,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 (735): * Single equations (assignments): 731 * 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.005052/0.6814, allocations: 1.951 MB / 0.6403 GB, free: 1.48 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00114/0.6826, allocations: 319.8 kB / 0.6406 GB, free: 1.164 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005202/0.6878, allocations: 2.073 MB / 0.6426 GB, free: 15.06 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.557e-05/0.6879, allocations: 12 kB / 0.6426 GB, free: 15.05 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.875e-05/0.6879, allocations: 8 kB / 0.6426 GB, free: 15.04 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-05/0.6879, allocations: 7.984 kB / 0.6426 GB, free: 15.04 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01721/0.7052, allocations: 5.791 MB / 0.6483 GB, free: 9.172 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.476e-05/0.7053, allocations: 8.156 kB / 0.6483 GB, free: 9.164 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001133/0.7064, allocations: 187.7 kB / 0.6485 GB, free: 8.98 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00155/0.708, allocations: 484.2 kB / 0.6489 GB, free: 8.504 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000288/0.7083, allocations: 28.8 kB / 0.649 GB, free: 8.477 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004782/0.7131, allocations: 3.446 MB / 0.6523 GB, free: 4.891 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/0.7131, allocations: 4 kB / 0.6523 GB, free: 4.887 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0077/0.7208, allocations: 4.002 MB / 0.6562 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001919/0.7228, allocations: 0.5396 MB / 0.6568 GB, free: 288 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001137/0.724, allocations: 24 kB / 0.6568 GB, free: 264 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001959/0.726, allocations: 59.92 kB / 0.6568 GB, free: 204 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003783/0.7264, allocations: 76.47 kB / 0.6569 GB, free: 128 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001999/0.7266, allocations: 43.97 kB / 0.657 GB, free: 84 kB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00605/0.7326, allocations: 2.472 MB / 0.6594 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of sort global known variables: time 5.81e-07/0.7327, allocations: 0 / 0.6594 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.006778/0.7395, allocations: 0.8762 MB / 0.6602 GB, free: 12.76 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (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.0007598/0.7403, allocations: 149.7 kB / 0.6604 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.009119/0.7494, allocations: 4.308 MB / 0.6646 GB, free: 8.312 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.123e-06/0.7495, allocations: 0 / 0.6646 GB, free: 8.312 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001945/0.7514, allocations: 1.077 MB / 0.6656 GB, free: 7.223 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003769/0.7552, allocations: 380.6 kB / 0.666 GB, free: 6.859 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01784/0.7731, allocations: 7.849 MB / 0.6737 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003702/0.7769, allocations: 2.952 MB / 0.6765 GB, free: 11.98 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004218/0.7811, allocations: 1.822 MB / 0.6783 GB, free: 10.15 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005631/0.7817, allocations: 231.4 kB / 0.6785 GB, free: 9.926 MB / 0.5137 GB Notification: Performance of SimCode: time 1.072e-06/0.7817, allocations: 0 / 0.6785 GB, free: 9.926 MB / 0.5137 GB Notification: Performance of Templates: time 0.06012/0.8418, allocations: 27.57 MB / 0.7055 GB, free: 14.37 MB / 0.545 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches