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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001324/0.001324, allocations: 102 kB / 21.22 MB, free: 0.6562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001436/0.001436, allocations: 183.9 kB / 24.51 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.498/1.498, allocations: 225.6 MB / 253.3 MB, free: 13.05 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.235/0.235, allocations: 44.91 MB / 353.5 MB, free: 11.92 MB / 286.1 MB " [Timeout remaining time 179] 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=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002059/0.002059, allocations: 67.88 kB / 497.7 MB, free: 1.031 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4061/0.4081, allocations: 64.29 MB / 0.5488 GB, free: 13.12 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01432/0.4224, allocations: 9.118 MB / 0.5577 GB, free: 6.016 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01064/0.4331, allocations: 3.596 MB / 0.5612 GB, free: 2.676 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002768/0.4358, allocations: 55.75 kB / 0.5613 GB, free: 2.621 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004073/0.4399, allocations: 1.701 MB / 0.5629 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005884/0.4458, allocations: 1.647 MB / 0.5646 GB, free: 15.26 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001726/0.4475, allocations: 0.5613 MB / 0.5651 GB, free: 14.7 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006529/0.4541, allocations: 3.588 MB / 0.5686 GB, free: 11.11 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00268/0.4567, allocations: 1.649 MB / 0.5702 GB, free: 9.41 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002384/0.4591, allocations: 1.141 MB / 0.5713 GB, free: 8.266 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003298/0.4624, allocations: 1.694 MB / 0.573 GB, free: 6.566 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007097/0.4631, allocations: 224 kB / 0.5732 GB, free: 6.348 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002652/0.4658, allocations: 1.158 MB / 0.5743 GB, free: 5.188 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002034/0.4678, allocations: 1.488 MB / 0.5758 GB, free: 3.695 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003907/0.4717, allocations: 1.662 MB / 0.5774 GB, free: 2.023 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009369/0.4811, allocations: 5.548 MB / 0.5828 GB, free: 12.45 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.4811, allocations: 4 kB / 0.5828 GB, free: 12.45 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.4811, allocations: 0 / 0.5828 GB, free: 12.45 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001876/0.4813, allocations: 0 / 0.5828 GB, free: 12.45 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: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.00959/0.4909, allocations: 3.767 MB / 0.5865 GB, free: 8.625 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.478e-05/0.4909, allocations: 12.92 kB / 0.5865 GB, free: 8.613 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01688/0.5078, allocations: 2.374 MB / 0.5888 GB, free: 6.234 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006802/0.5146, allocations: 2.169 MB / 0.591 GB, free: 4.027 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002359/0.5149, allocations: 168.5 kB / 0.5911 GB, free: 3.859 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001281/0.5161, allocations: 220 kB / 0.5913 GB, free: 3.645 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02047/0.5366, allocations: 7.591 MB / 0.5987 GB, free: 11.43 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002236/0.5368, allocations: 43.67 kB / 0.5988 GB, free: 11.39 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001289/0.5381, allocations: 103.9 kB / 0.5989 GB, free: 11.29 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004883/0.543, allocations: 1.605 MB / 0.6004 GB, free: 9.676 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02038/0.5634, allocations: 6.472 MB / 0.6068 GB, free: 3.188 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06008/0.6235, allocations: 30.49 MB / 0.6365 GB, free: 3.746 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005265/0.6287, allocations: 1.707 MB / 0.6382 GB, free: 2 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00195/0.6307, allocations: 1.051 MB / 0.6392 GB, free: 0.9375 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003588/0.631, allocations: 88.22 kB / 0.6393 GB, free: 0.8516 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.763e-05/0.6311, allocations: 46.94 kB / 0.6394 GB, free: 0.7969 MB / 478.1 MB Notification: Performance of pre-optimization done (n=108): time 4.279e-06/0.6311, allocations: 0 / 0.6394 GB, free: 0.7969 MB / 478.1 MB Notification: Performance of matching and sorting (n=132): time 0.04233/0.6734, allocations: 11.83 MB / 0.6509 GB, free: 4.902 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001536/0.6736, allocations: 196.5 kB / 0.6511 GB, free: 4.668 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006785/0.6804, allocations: 3.669 MB / 0.6547 GB, free: 1 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003189/0.6807, allocations: 41.7 kB / 0.6547 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002533/0.6832, allocations: 2.698 MB / 0.6574 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008661/0.6841, allocations: 0.5545 MB / 0.6579 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001636/0.6857, allocations: 1.095 MB / 0.659 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001467/0.6859, allocations: 301.1 kB / 0.6593 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002893/0.6888, allocations: 1.744 MB / 0.661 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006107/0.6949, allocations: 5.111 MB / 0.6659 GB, free: 3.715 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01069/0.7056, allocations: 7.389 MB / 0.6732 GB, free: 10.65 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001215/0.7057, allocations: 36 kB / 0.6732 GB, free: 10.62 MB / 0.5137 GB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01619/0.7219, allocations: 7.097 MB / 0.6801 GB, free: 3.516 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001036/0.722, allocations: 59.94 kB / 0.6802 GB, free: 3.457 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001736/0.7222, allocations: 120 kB / 0.6803 GB, free: 3.34 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001862/0.724, allocations: 0.6411 MB / 0.6809 GB, free: 2.695 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004749/0.7288, allocations: 1.224 MB / 0.6821 GB, free: 1.469 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005754/0.7345, allocations: 3.963 MB / 0.686 GB, free: 13.39 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0043/0.7388, allocations: 299.6 kB / 0.6863 GB, free: 13.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008801/0.7397, allocations: 332.1 kB / 0.6866 GB, free: 12.77 MB / 0.5294 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.00338/0.7431, allocations: 1.736 MB / 0.6883 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007219/0.7438, allocations: 325.8 kB / 0.6886 GB, free: 10.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004357/0.7482, allocations: 2.076 MB / 0.6906 GB, free: 8.613 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.55e-05/0.7482, allocations: 19.94 kB / 0.6906 GB, free: 8.594 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.261e-05/0.7482, allocations: 8 kB / 0.6907 GB, free: 8.586 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.069e-05/0.7482, allocations: 3.984 kB / 0.6907 GB, free: 8.582 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01207/0.7603, allocations: 5.641 MB / 0.6962 GB, free: 2.859 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-05/0.7603, allocations: 0 / 0.6962 GB, free: 2.859 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001017/0.7613, allocations: 195.7 kB / 0.6964 GB, free: 2.668 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001456/0.7628, allocations: 488.3 kB / 0.6968 GB, free: 2.188 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001158/0.7629, allocations: 27.92 kB / 0.6968 GB, free: 2.16 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004485/0.7674, allocations: 3.341 MB / 0.7001 GB, free: 14.71 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.429e-06/0.7674, allocations: 3.984 kB / 0.7001 GB, free: 14.7 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006959/0.7744, allocations: 4.192 MB / 0.7042 GB, free: 10.48 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001154/0.7755, allocations: 293.7 kB / 0.7045 GB, free: 10.19 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003624/0.7759, allocations: 28 kB / 0.7045 GB, free: 10.16 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001178/0.777, allocations: 75.95 kB / 0.7046 GB, free: 10.09 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002065/0.7773, allocations: 80.39 kB / 0.7047 GB, free: 10.01 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.759e-05/0.7774, allocations: 32 kB / 0.7047 GB, free: 9.98 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003819/0.7812, allocations: 2.288 MB / 0.7069 GB, free: 7.703 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/0.7812, allocations: 0 / 0.7069 GB, free: 7.703 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00526/0.7864, allocations: 0.8163 MB / 0.7077 GB, free: 6.887 MB / 0.545 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.0005382/0.787, allocations: 147 kB / 0.7079 GB, free: 6.73 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008203/0.7952, allocations: 3.983 MB / 0.7118 GB, free: 2.762 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.636e-06/0.7952, allocations: 0 / 0.7118 GB, free: 2.762 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001927/0.7971, allocations: 1.065 MB / 0.7128 GB, free: 1.688 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00266/0.7998, allocations: 355.6 kB / 0.7131 GB, free: 1.34 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01591/0.8157, allocations: 7.367 MB / 0.7203 GB, free: 9.918 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003198/0.8189, allocations: 2.679 MB / 0.7229 GB, free: 7.207 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004031/0.8229, allocations: 1.702 MB / 0.7246 GB, free: 5.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000663/0.8236, allocations: 207.4 kB / 0.7248 GB, free: 5.297 MB / 0.5606 GB Notification: Performance of SimCode: time 1.072e-06/0.8236, allocations: 0 / 0.7248 GB, free: 5.297 MB / 0.5606 GB Notification: Performance of Templates: time 0.3364/1.16, allocations: 30.01 MB / 0.7541 GB, free: 149.9 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.187923236750066]