Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.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.001872/0.001872, allocations: 110.4 kB / 21.17 MB, free: 0.7852 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.002428/0.002428, allocations: 217.4 kB / 24.47 MB, free: 4.359 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.512/1.512, allocations: 230.2 MB / 257.8 MB, free: 8.488 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.2567/0.2567, allocations: 46.89 MB / 361.1 MB, free: 4.629 MB / 286.1 MB " [Timeout remaining time 179] 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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance") [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.002316/0.002316, allocations: 80.14 kB / 0.4968 GB, free: 7.824 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3506/0.3529, allocations: 65.98 MB / 0.5612 GB, free: 5.016 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01203/0.365, allocations: 8.998 MB / 0.57 GB, free: 11.98 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007498/0.3725, allocations: 3.586 MB / 0.5735 GB, free: 8.379 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001331/0.3738, allocations: 47.88 kB / 0.5735 GB, free: 8.332 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003406/0.3772, allocations: 1.705 MB / 0.5752 GB, free: 6.621 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003988/0.3812, allocations: 1.568 MB / 0.5767 GB, free: 5.047 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001333/0.3825, allocations: 0.5653 MB / 0.5773 GB, free: 4.48 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005557/0.3881, allocations: 3.576 MB / 0.5808 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002794/0.3909, allocations: 1.626 MB / 0.5823 GB, free: 15.22 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002142/0.393, allocations: 1.102 MB / 0.5834 GB, free: 14.11 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002717/0.3957, allocations: 1.663 MB / 0.585 GB, free: 12.45 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006693/0.3964, allocations: 220 kB / 0.5853 GB, free: 12.23 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002701/0.3991, allocations: 1.139 MB / 0.5864 GB, free: 11.09 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001836/0.4009, allocations: 1.445 MB / 0.5878 GB, free: 9.641 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001764/0.4027, allocations: 1.615 MB / 0.5894 GB, free: 8.016 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00686/0.4096, allocations: 5.408 MB / 0.5946 GB, free: 2.586 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.4096, allocations: 0 / 0.5946 GB, free: 2.586 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4096, allocations: 0 / 0.5946 GB, free: 2.586 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001039/0.4097, allocations: 0 / 0.5946 GB, free: 2.586 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.008233/0.4179, allocations: 3.757 MB / 0.5983 GB, free: 14.75 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.418, allocations: 8.031 kB / 0.5983 GB, free: 14.75 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01705/0.435, allocations: 2.347 MB / 0.6006 GB, free: 12.39 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006323/0.4413, allocations: 2.195 MB / 0.6027 GB, free: 10.15 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000167/0.4415, allocations: 156.5 kB / 0.6029 GB, free: 9.992 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006512/0.4422, allocations: 228 kB / 0.6031 GB, free: 9.77 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01239/0.4545, allocations: 7.402 MB / 0.6103 GB, free: 1.742 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-05/0.4546, allocations: 35.7 kB / 0.6104 GB, free: 1.707 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003111/0.4549, allocations: 111.9 kB / 0.6105 GB, free: 1.598 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002739/0.4577, allocations: 1.539 MB / 0.612 GB, free: 60 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01159/0.4693, allocations: 6.317 MB / 0.6182 GB, free: 9.723 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03875/0.508, allocations: 30.24 MB / 0.6477 GB, free: 10.57 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00477/0.5128, allocations: 2.168 MB / 0.6498 GB, free: 8.25 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001536/0.5143, allocations: 1.047 MB / 0.6508 GB, free: 7.191 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004374/0.5148, allocations: 319.5 kB / 0.6511 GB, free: 6.824 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.404e-05/0.5148, allocations: 47 kB / 0.6512 GB, free: 6.77 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 3.496e-06/0.5148, allocations: 112 / 0.6512 GB, free: 6.77 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03776/0.5526, allocations: 11.98 MB / 0.6629 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001453/0.5527, allocations: 196.5 kB / 0.6631 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005273/0.558, allocations: 3.612 MB / 0.6666 GB, free: 6.816 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001819/0.5582, allocations: 45.69 kB / 0.6666 GB, free: 6.766 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002164/0.5603, allocations: 2.647 MB / 0.6692 GB, free: 4.094 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006186/0.561, allocations: 0.5583 MB / 0.6698 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001454/0.5624, allocations: 1.091 MB / 0.6708 GB, free: 2.43 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000136/0.5626, allocations: 305.1 kB / 0.6711 GB, free: 2.129 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002705/0.5653, allocations: 1.736 MB / 0.6728 GB, free: 396 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005698/0.571, allocations: 5.088 MB / 0.6778 GB, free: 9.613 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009551/0.5805, allocations: 7.368 MB / 0.685 GB, free: 0.5781 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000103/0.5806, allocations: 32 kB / 0.685 GB, free: 0.5469 MB / 0.5137 GB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01411/0.5947, allocations: 7.055 MB / 0.6919 GB, free: 9.484 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001133/0.5948, allocations: 63.92 kB / 0.692 GB, free: 9.422 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000195/0.595, allocations: 120 kB / 0.6921 GB, free: 9.305 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001713/0.5967, allocations: 0.6411 MB / 0.6927 GB, free: 8.66 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003903/0.6006, allocations: 1.22 MB / 0.6939 GB, free: 7.438 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005464/0.6061, allocations: 4.059 MB / 0.6979 GB, free: 3.234 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004284/0.6104, allocations: 291.6 kB / 0.6981 GB, free: 2.949 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009562/0.6113, allocations: 335.9 kB / 0.6985 GB, free: 2.625 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.003266/0.6146, allocations: 1.697 MB / 0.7001 GB, free: 0.9141 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000642/0.6153, allocations: 313.9 kB / 0.7004 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004115/0.6194, allocations: 2.088 MB / 0.7024 GB, free: 14.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-05/0.6194, allocations: 23.94 kB / 0.7025 GB, free: 14.48 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/0.6194, allocations: 4 kB / 0.7025 GB, free: 14.47 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.551e-05/0.6194, allocations: 11.97 kB / 0.7025 GB, free: 14.46 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01074/0.6302, allocations: 5.589 MB / 0.7079 GB, free: 8.781 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.636e-05/0.6302, allocations: 4 kB / 0.7079 GB, free: 8.777 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001171/0.6314, allocations: 199.7 kB / 0.7081 GB, free: 8.582 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001577/0.6329, allocations: 480.3 kB / 0.7086 GB, free: 8.109 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001512/0.6331, allocations: 27.98 kB / 0.7086 GB, free: 8.082 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004534/0.6376, allocations: 3.441 MB / 0.712 GB, free: 4.504 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.127e-06/0.6376, allocations: 4 kB / 0.712 GB, free: 4.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006956/0.6446, allocations: 4.189 MB / 0.7161 GB, free: 280 kB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001097/0.6457, allocations: 374.8 kB / 0.7164 GB, free: 15.89 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003422/0.646, allocations: 24 kB / 0.7165 GB, free: 15.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001169/0.6472, allocations: 79.89 kB / 0.7165 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001886/0.6474, allocations: 64.56 kB / 0.7166 GB, free: 15.72 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001111/0.6475, allocations: 39.98 kB / 0.7166 GB, free: 15.68 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00376/0.6512, allocations: 2.248 MB / 0.7188 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/0.6512, allocations: 0 / 0.7188 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004711/0.656, allocations: 0.7889 MB / 0.7196 GB, free: 12.66 MB / 0.5606 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.0004254/0.6564, allocations: 151 kB / 0.7197 GB, free: 12.5 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007497/0.6639, allocations: 3.98 MB / 0.7236 GB, free: 8.531 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/0.6639, allocations: 0 / 0.7236 GB, free: 8.531 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001782/0.6657, allocations: 1.057 MB / 0.7247 GB, free: 7.461 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002326/0.668, allocations: 349.9 kB / 0.725 GB, free: 7.121 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2868/0.9548, allocations: 7.241 MB / 0.7321 GB, free: 154.6 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005213/0.96, allocations: 2.637 MB / 0.7346 GB, free: 153.8 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00359/0.9636, allocations: 1.69 MB / 0.7363 GB, free: 153.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000548/0.9642, allocations: 203.8 kB / 0.7365 GB, free: 153.8 MB / 0.5606 GB Notification: Performance of SimCode: time 1.473e-06/0.9642, allocations: 0 / 0.7365 GB, free: 153.8 MB / 0.5606 GB Notification: Performance of Templates: time 0.04526/1.009, allocations: 27.38 MB / 0.7632 GB, free: 134.6 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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.86430082237348]