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.001433/0.001432, allocations: 106.2 kB / 16.41 MB, free: 6.488 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.001267/0.001267, 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.649/1.649, 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.2534/0.2534, allocations: 43.52 MB / 314.1 MB, free: 456 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.001749/0.001749, allocations: 71.89 kB / 441.8 MB, free: 5.676 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1633/0.165, allocations: 57.79 MB / 499.6 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.02217/0.1873, allocations: 10.02 MB / 0.4977 GB, free: 1.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01525/0.2026, allocations: 3.696 MB / 0.5013 GB, free: 14.04 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002961/0.2056, allocations: 55.88 kB / 0.5013 GB, free: 13.99 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007216/0.2129, allocations: 1.95 MB / 0.5032 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008172/0.2211, allocations: 1.739 MB / 0.5049 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002602/0.2238, allocations: 0.5653 MB / 0.5055 GB, free: 9.719 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.009225/0.233, allocations: 3.747 MB / 0.5091 GB, free: 5.961 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005839/0.2389, allocations: 2.55 MB / 0.5116 GB, free: 3.355 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002359/0.2413, allocations: 1.285 MB / 0.5129 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002647/0.2439, allocations: 1.83 MB / 0.5147 GB, free: 236 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00063/0.2446, allocations: 272 kB / 0.5149 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002176/0.2467, allocations: 1.147 MB / 0.516 GB, free: 14.82 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001635/0.2484, allocations: 1.703 MB / 0.5177 GB, free: 13.11 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001979/0.2504, allocations: 1.934 MB / 0.5196 GB, free: 11.16 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008157/0.2586, allocations: 6.404 MB / 0.5258 GB, free: 4.738 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.2586, allocations: 0 / 0.5258 GB, free: 4.738 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2586, allocations: 0 / 0.5258 GB, free: 4.738 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001218/0.2587, allocations: 0 / 0.5258 GB, free: 4.738 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.01032/0.2691, allocations: 4.203 MB / 0.53 GB, free: 480 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.182e-05/0.2691, allocations: 15.83 kB / 0.53 GB, free: 464 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.374/0.6431, allocations: 2.436 MB / 0.5323 GB, free: 22.3 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008101/0.6513, allocations: 2.443 MB / 0.5347 GB, free: 21.84 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002501/0.6516, allocations: 196.8 kB / 0.5349 GB, free: 21.84 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001304/0.6529, allocations: 266.5 kB / 0.5352 GB, free: 21.83 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01979/0.6727, allocations: 8.757 MB / 0.5437 GB, free: 20.04 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001439/0.6729, allocations: 40.5 kB / 0.5438 GB, free: 20.04 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003967/0.6733, allocations: 126.4 kB / 0.5439 GB, free: 19.99 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003913/0.6772, allocations: 1.841 MB / 0.5457 GB, free: 19.68 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01671/0.6939, allocations: 7.463 MB / 0.553 GB, free: 17.51 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04395/0.7379, allocations: 34.13 MB / 0.5863 GB, free: 3.508 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005149/0.7431, allocations: 2.588 MB / 0.5888 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00166/0.7448, allocations: 1.191 MB / 0.59 GB, free: 15.59 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004052/0.7452, allocations: 322.6 kB / 0.5903 GB, free: 15.22 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.221e-05/0.7453, allocations: 50.39 kB / 0.5903 GB, free: 15.16 MB / 446.1 MB Notification: Performance of pre-optimization done (n=119): time 4.008e-06/0.7453, allocations: 5.125 kB / 0.5903 GB, free: 15.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=133): time 0.02461/0.7699, allocations: 9.825 MB / 0.5999 GB, free: 5.266 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001791/0.7701, allocations: 196.6 kB / 0.6001 GB, free: 5.031 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005884/0.776, allocations: 3.961 MB / 0.604 GB, free: 1.09 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002339/0.7763, allocations: 41.7 kB / 0.604 GB, free: 1.043 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002326/0.7786, allocations: 2.952 MB / 0.6069 GB, free: 14.11 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006988/0.7793, allocations: 0.5366 MB / 0.6074 GB, free: 13.58 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001459/0.7808, allocations: 1.204 MB / 0.6086 GB, free: 12.36 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.7809, allocations: 305.1 kB / 0.6089 GB, free: 12.06 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002841/0.7838, allocations: 1.801 MB / 0.6107 GB, free: 10.26 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006157/0.7899, allocations: 5.641 MB / 0.6162 GB, free: 2.762 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01021/0.8002, allocations: 8.054 MB / 0.624 GB, free: 9.113 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000132/0.8003, allocations: 36 kB / 0.6241 GB, free: 9.078 MB / 478.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.0157/0.8161, allocations: 7.586 MB / 0.6315 GB, free: 1.48 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001519/0.8163, allocations: 64 kB / 0.6315 GB, free: 1.418 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000232/0.8165, allocations: 135.9 kB / 0.6317 GB, free: 1.285 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001831/0.8183, allocations: 0.67 MB / 0.6323 GB, free: 0.6172 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00469/0.8231, allocations: 1.36 MB / 0.6337 GB, free: 15.26 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004989/0.8281, allocations: 4.092 MB / 0.6377 GB, free: 11.03 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005236/0.8333, allocations: 319.3 kB / 0.638 GB, free: 10.72 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001357/0.8347, allocations: 375.9 kB / 0.6383 GB, free: 10.35 MB / 494.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.004203/0.8389, allocations: 1.949 MB / 0.6402 GB, free: 8.391 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009857/0.8399, allocations: 319.8 kB / 0.6405 GB, free: 8.074 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004012/0.8439, allocations: 2.065 MB / 0.6425 GB, free: 5.988 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.791e-05/0.844, allocations: 16 kB / 0.6426 GB, free: 5.973 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.557e-05/0.844, allocations: 7.984 kB / 0.6426 GB, free: 5.965 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.5e-05/0.844, allocations: 3.984 kB / 0.6426 GB, free: 5.961 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01321/0.8572, allocations: 5.795 MB / 0.6482 GB, free: 116 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.536e-05/0.8573, allocations: 4 kB / 0.6482 GB, free: 112 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009368/0.8582, allocations: 175.8 kB / 0.6484 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001337/0.8596, allocations: 492.3 kB / 0.6489 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001309/0.8597, allocations: 31.92 kB / 0.6489 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004372/0.8641, allocations: 3.452 MB / 0.6523 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.8641, allocations: 4 kB / 0.6523 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007059/0.8712, allocations: 4 MB / 0.6562 GB, free: 7.797 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002211/0.8735, allocations: 0.5358 MB / 0.6567 GB, free: 7.238 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000621/0.8741, allocations: 23.94 kB / 0.6567 GB, free: 7.215 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001155/0.8753, allocations: 63.92 kB / 0.6568 GB, free: 7.152 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002895/0.8756, allocations: 68.41 kB / 0.6569 GB, free: 7.086 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001143/0.8757, allocations: 42.8 kB / 0.6569 GB, free: 7.047 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004804/0.8805, allocations: 2.476 MB / 0.6593 GB, free: 4.59 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.61e-07/0.8805, allocations: 0 / 0.6593 GB, free: 4.59 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00551/0.886, allocations: 0.8824 MB / 0.6602 GB, free: 3.711 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.0003976/0.8865, allocations: 149.4 kB / 0.6603 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007192/0.8937, allocations: 4.311 MB / 0.6645 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.725e-06/0.8937, allocations: 0 / 0.6645 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001613/0.8953, allocations: 1.076 MB / 0.6656 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002556/0.8979, allocations: 387.8 kB / 0.6659 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01522/0.9131, allocations: 7.849 MB / 0.6736 GB, free: 5.93 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003588/0.9168, allocations: 2.952 MB / 0.6765 GB, free: 2.949 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004218/0.921, allocations: 1.822 MB / 0.6783 GB, free: 1.117 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007474/0.9218, allocations: 223.4 kB / 0.6785 GB, free: 0.8984 MB / 0.5137 GB Notification: Performance of SimCode: time 9.92e-07/0.9218, allocations: 7.938 kB / 0.6785 GB, free: 0.8906 MB / 0.5137 GB Notification: Performance of Templates: time 0.06292/0.9847, allocations: 27.23 MB / 0.7051 GB, free: 5.828 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