Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001341/0.001341, allocations: 114.3 kB / 21.18 MB, free: 0.6211 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001497/0.001497, allocations: 212.9 kB / 24.48 MB, free: 4.031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 230.2 MB / 257.8 MB, free: 8.508 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2184/0.2184, allocations: 46.89 MB / 361.1 MB, free: 4.637 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002266/0.002266, allocations: 75.88 kB / 0.4968 GB, free: 7.836 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2766/0.2789, allocations: 65.98 MB / 0.5612 GB, free: 5.035 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01109/0.29, allocations: 9.132 MB / 0.5701 GB, free: 11.87 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.006893/0.2969, allocations: 3.609 MB / 0.5736 GB, free: 8.242 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008755/0.2977, allocations: 51.88 kB / 0.5737 GB, free: 8.191 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003526/0.3013, allocations: 1.935 MB / 0.5756 GB, free: 6.25 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003371/0.3046, allocations: 1.607 MB / 0.5771 GB, free: 4.637 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00116/0.3058, allocations: 0.577 MB / 0.5777 GB, free: 4.059 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004601/0.3104, allocations: 3.65 MB / 0.5813 GB, free: 412 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00222/0.3126, allocations: 1.808 MB / 0.583 GB, free: 14.54 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001486/0.3141, allocations: 1.172 MB / 0.5842 GB, free: 13.36 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002242/0.3163, allocations: 1.772 MB / 0.5859 GB, free: 11.59 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004336/0.3168, allocations: 243.9 kB / 0.5861 GB, free: 11.35 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001924/0.3187, allocations: 1.155 MB / 0.5873 GB, free: 10.19 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001553/0.3203, allocations: 1.542 MB / 0.5888 GB, free: 8.645 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001829/0.3221, allocations: 1.708 MB / 0.5904 GB, free: 6.926 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006552/0.3286, allocations: 5.716 MB / 0.596 GB, free: 1.188 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.3286, allocations: 0 / 0.596 GB, free: 1.188 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3286, allocations: 0 / 0.596 GB, free: 1.188 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001226/0.3288, allocations: 0 / 0.596 GB, free: 1.188 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.007718/0.3365, allocations: 3.929 MB / 0.5999 GB, free: 13.18 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.3365, allocations: 16.03 kB / 0.5999 GB, free: 13.17 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01616/0.3527, allocations: 2.37 MB / 0.6022 GB, free: 10.79 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005736/0.3584, allocations: 2.253 MB / 0.6044 GB, free: 8.488 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001572/0.3586, allocations: 176.8 kB / 0.6046 GB, free: 8.312 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005369/0.3591, allocations: 236 kB / 0.6048 GB, free: 8.082 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01171/0.3708, allocations: 7.79 MB / 0.6124 GB, free: 15.64 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.718e-05/0.3709, allocations: 39.73 kB / 0.6124 GB, free: 15.6 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003196/0.3712, allocations: 111.9 kB / 0.6125 GB, free: 15.49 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002706/0.3739, allocations: 1.586 MB / 0.6141 GB, free: 13.9 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01117/0.3851, allocations: 6.589 MB / 0.6205 GB, free: 7.297 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03663/0.4217, allocations: 31.68 MB / 0.6515 GB, free: 6.648 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005033/0.4268, allocations: 2.406 MB / 0.6538 GB, free: 4.094 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001469/0.4282, allocations: 1.042 MB / 0.6548 GB, free: 3.039 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003947/0.4286, allocations: 335.2 kB / 0.6551 GB, free: 2.656 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.004e-05/0.4287, allocations: 54.44 kB / 0.6552 GB, free: 2.594 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 6.633e-06/0.4287, allocations: 7.922 kB / 0.6552 GB, free: 2.586 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.0244/0.4531, allocations: 9.296 MB / 0.6643 GB, free: 9.195 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001332/0.4532, allocations: 192.5 kB / 0.6645 GB, free: 8.961 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005304/0.4585, allocations: 3.767 MB / 0.6681 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001876/0.4587, allocations: 37.7 kB / 0.6682 GB, free: 5.156 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002216/0.4609, allocations: 2.806 MB / 0.6709 GB, free: 2.324 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005455/0.4615, allocations: 0.5119 MB / 0.6714 GB, free: 1.809 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001429/0.4629, allocations: 1.131 MB / 0.6725 GB, free: 0.668 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001453/0.4631, allocations: 305.1 kB / 0.6728 GB, free: 376 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002626/0.4657, allocations: 1.701 MB / 0.6745 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005666/0.4714, allocations: 5.259 MB / 0.6796 GB, free: 7.598 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009527/0.4809, allocations: 7.506 MB / 0.6869 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.927e-05/0.481, allocations: 36 kB / 0.687 GB, free: 14.28 MB / 0.5294 GB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01345/0.4944, allocations: 7.14 MB / 0.694 GB, free: 7.133 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.038e-05/0.4945, allocations: 63.94 kB / 0.694 GB, free: 7.07 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000169/0.4947, allocations: 128 kB / 0.6941 GB, free: 6.945 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001663/0.4964, allocations: 0.653 MB / 0.6948 GB, free: 6.289 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003755/0.5001, allocations: 1.251 MB / 0.696 GB, free: 5.035 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005157/0.5053, allocations: 4.075 MB / 0.7 GB, free: 0.8281 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00338/0.5086, allocations: 295.6 kB / 0.7003 GB, free: 0.5391 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004501/0.5091, allocations: 344 kB / 0.7006 GB, free: 208 kB / 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.002471/0.5116, allocations: 1.779 MB / 0.7023 GB, free: 14.41 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004689/0.512, allocations: 321.8 kB / 0.7026 GB, free: 14.09 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003472/0.5155, allocations: 1.829 MB / 0.7044 GB, free: 12.25 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.156e-05/0.5155, allocations: 7.984 kB / 0.7044 GB, free: 12.24 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.5155, allocations: 0 / 0.7044 GB, free: 12.24 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006195/0.5161, allocations: 374.8 kB / 0.7048 GB, free: 11.85 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003136/0.5165, allocations: 27.92 kB / 0.7048 GB, free: 11.82 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001002/0.5175, allocations: 67.89 kB / 0.7049 GB, free: 11.76 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000166/0.5176, allocations: 60.47 kB / 0.7049 GB, free: 11.7 MB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004385/0.522, allocations: 2.426 MB / 0.7073 GB, free: 9.258 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004352/0.5264, allocations: 3.352 MB / 0.7106 GB, free: 5.883 MB / 0.545 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001075/0.5274, allocations: 0.7375 MB / 0.7113 GB, free: 5.148 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00349/0.5309, allocations: 2.33 MB / 0.7136 GB, free: 2.832 MB / 0.545 GB Notification: Performance of Backend: time 3.31e-07/0.5309, allocations: 0 / 0.7136 GB, free: 2.832 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007182/0.5381, allocations: 3.401 MB / 0.7169 GB, free: 15.44 MB / 0.5606 GB Notification: Performance of SimCode: time 0.01283/0.5509, allocations: 7.646 MB / 0.7244 GB, free: 7.73 MB / 0.5606 GB Notification: Performance of Templates: time 0.2768/0.8277, allocations: 37.66 MB / 0.7611 GB, free: 136.6 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.361379479058087]