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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001459/0.001459, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001647/0.001647, allocations: 215.8 kB / 23.73 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.504/1.504, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.2231/0.2231, allocations: 44.93 MB / 358.8 MB, free: 6.023 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002337/0.002337, allocations: 71.88 kB / 0.4935 GB, free: 10.01 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3161/0.3185, allocations: 65.47 MB / 0.5574 GB, free: 7.465 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01124/0.3297, allocations: 7.917 MB / 0.5652 GB, free: 15.51 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007657/0.3374, allocations: 3.357 MB / 0.5685 GB, free: 12.14 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001474/0.3388, allocations: 63.69 kB / 0.5685 GB, free: 12.08 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0037/0.3425, allocations: 1.627 MB / 0.5701 GB, free: 10.45 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004242/0.3468, allocations: 1.588 MB / 0.5717 GB, free: 8.852 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001381/0.3482, allocations: 0.5575 MB / 0.5722 GB, free: 8.293 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005127/0.3533, allocations: 3.576 MB / 0.5757 GB, free: 4.711 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002713/0.356, allocations: 1.812 MB / 0.5775 GB, free: 2.844 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001964/0.358, allocations: 1.125 MB / 0.5786 GB, free: 1.715 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002684/0.3607, allocations: 1.588 MB / 0.5801 GB, free: 124 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006551/0.3613, allocations: 216 kB / 0.5803 GB, free: 15.91 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002171/0.3635, allocations: 1.002 MB / 0.5813 GB, free: 14.91 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001722/0.3652, allocations: 1.441 MB / 0.5827 GB, free: 13.46 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002178/0.3674, allocations: 1.184 MB / 0.5839 GB, free: 12.27 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007202/0.3746, allocations: 5.424 MB / 0.5892 GB, free: 6.824 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.313e-06/0.3746, allocations: 0 / 0.5892 GB, free: 6.824 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3746, allocations: 0 / 0.5892 GB, free: 6.824 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002041/0.3748, allocations: 0 / 0.5892 GB, free: 6.824 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: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.009823/0.3846, allocations: 3.685 MB / 0.5928 GB, free: 3.082 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.3847, allocations: 8.031 kB / 0.5928 GB, free: 3.074 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01664/0.4013, allocations: 2.347 MB / 0.5951 GB, free: 0.7227 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006834/0.4081, allocations: 2.13 MB / 0.5971 GB, free: 14.55 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001675/0.4083, allocations: 168.5 kB / 0.5973 GB, free: 14.39 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007222/0.409, allocations: 224 kB / 0.5975 GB, free: 14.17 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01154/0.4206, allocations: 7.448 MB / 0.6048 GB, free: 6.082 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.777e-05/0.4207, allocations: 47.61 kB / 0.6048 GB, free: 6.035 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00031/0.421, allocations: 107.9 kB / 0.6049 GB, free: 5.93 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002684/0.4237, allocations: 1.542 MB / 0.6064 GB, free: 4.383 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01166/0.4353, allocations: 6.291 MB / 0.6126 GB, free: 14.08 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03847/0.4738, allocations: 28.39 MB / 0.6403 GB, free: 0.7891 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004746/0.4785, allocations: 1.71 MB / 0.642 GB, free: 15.04 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00162/0.4802, allocations: 1.047 MB / 0.643 GB, free: 13.98 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002967/0.4804, allocations: 96.17 kB / 0.6431 GB, free: 13.89 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.327e-05/0.4805, allocations: 46.92 kB / 0.6431 GB, free: 13.83 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 4.078e-06/0.4805, allocations: 0 / 0.6431 GB, free: 13.83 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03792/0.5184, allocations: 11.78 MB / 0.6546 GB, free: 1.98 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001487/0.5186, allocations: 200.6 kB / 0.6548 GB, free: 1.742 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004887/0.5235, allocations: 3.355 MB / 0.6581 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002066/0.5237, allocations: 45.7 kB / 0.6582 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002093/0.5258, allocations: 2.676 MB / 0.6608 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007649/0.5265, allocations: 0.5545 MB / 0.6613 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001545/0.5281, allocations: 1.088 MB / 0.6624 GB, free: 9.957 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001601/0.5282, allocations: 309.1 kB / 0.6627 GB, free: 9.652 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002875/0.5311, allocations: 1.74 MB / 0.6644 GB, free: 7.906 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006692/0.5378, allocations: 5.131 MB / 0.6694 GB, free: 1.078 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009854/0.5477, allocations: 7.366 MB / 0.6766 GB, free: 8.055 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001056/0.5478, allocations: 36 kB / 0.6766 GB, free: 8.02 MB / 0.5137 GB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01314/0.5609, allocations: 7.031 MB / 0.6835 GB, free: 0.9805 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.311e-05/0.561, allocations: 52 kB / 0.6835 GB, free: 0.9297 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001452/0.5611, allocations: 123.9 kB / 0.6836 GB, free: 0.8086 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001693/0.5628, allocations: 0.6454 MB / 0.6843 GB, free: 164 kB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004029/0.5668, allocations: 1.22 MB / 0.6855 GB, free: 14.94 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005489/0.5723, allocations: 3.89 MB / 0.6893 GB, free: 10.94 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003983/0.5763, allocations: 300 kB / 0.6895 GB, free: 10.65 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008113/0.5771, allocations: 332 kB / 0.6899 GB, free: 10.32 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.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 (659): * Single equations (assignments): 655 * 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.003023/0.5802, allocations: 1.701 MB / 0.6915 GB, free: 8.609 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006938/0.5808, allocations: 278.1 kB / 0.6918 GB, free: 8.336 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004393/0.5852, allocations: 2.057 MB / 0.6938 GB, free: 6.262 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.905e-05/0.5853, allocations: 19.94 kB / 0.6938 GB, free: 6.242 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.287e-05/0.5853, allocations: 4 kB / 0.6938 GB, free: 6.238 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.71e-05/0.5853, allocations: 7.969 kB / 0.6938 GB, free: 6.23 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01096/0.5963, allocations: 4.783 MB / 0.6985 GB, free: 1.391 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.578e-05/0.5963, allocations: 0 / 0.6985 GB, free: 1.391 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001129/0.5974, allocations: 191.8 kB / 0.6987 GB, free: 1.203 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001521/0.5989, allocations: 496.1 kB / 0.6992 GB, free: 0.7148 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001241/0.5991, allocations: 23.98 kB / 0.6992 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004396/0.6034, allocations: 3.279 MB / 0.7024 GB, free: 13.31 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.6035, allocations: 4.281 kB / 0.7024 GB, free: 13.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00714/0.6106, allocations: 4.156 MB / 0.7064 GB, free: 9.117 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009497/0.6115, allocations: 242 kB / 0.7067 GB, free: 8.879 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005109/0.6121, allocations: 31.88 kB / 0.7067 GB, free: 8.848 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001244/0.6133, allocations: 71.89 kB / 0.7068 GB, free: 8.777 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00021/0.6135, allocations: 80.39 kB / 0.7068 GB, free: 8.699 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001075/0.6136, allocations: 40.06 kB / 0.7069 GB, free: 8.66 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003142/0.6168, allocations: 1.937 MB / 0.7088 GB, free: 6.723 MB / 0.545 GB Notification: Performance of sort global known variables: time 7e-08/0.6168, allocations: 0 / 0.7088 GB, free: 6.723 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004064/0.6208, allocations: 0.7812 MB / 0.7095 GB, free: 5.941 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.0003654/0.6212, allocations: 143 kB / 0.7097 GB, free: 5.789 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006744/0.6279, allocations: 3.98 MB / 0.7136 GB, free: 1.828 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.6279, allocations: 0 / 0.7136 GB, free: 1.828 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001637/0.6296, allocations: 1.053 MB / 0.7146 GB, free: 0.7578 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001819/0.6314, allocations: 313.5 kB / 0.7149 GB, free: 464 kB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0123/0.6437, allocations: 7.193 MB / 0.7219 GB, free: 9.211 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002921/0.6466, allocations: 2.076 MB / 0.7239 GB, free: 7.094 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004004/0.6506, allocations: 1.649 MB / 0.7256 GB, free: 5.438 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005817/0.6512, allocations: 195.4 kB / 0.7257 GB, free: 5.246 MB / 0.5606 GB Notification: Performance of SimCode: time 8.32e-07/0.6512, allocations: 0 / 0.7257 GB, free: 5.246 MB / 0.5606 GB Notification: Performance of Templates: time 0.3093/0.9605, allocations: 25.89 MB / 0.751 GB, free: 147.4 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: 6.762639245018363]