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.001908/0.001908, allocations: 108.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.002281/0.002281, allocations: 217.3 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.623/1.623, 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.2432/0.2432, allocations: 46.89 MB / 361.1 MB, free: 4.652 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.002407/0.002407, allocations: 79.88 kB / 0.4968 GB, free: 8.379 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4127/0.4152, allocations: 65.96 MB / 0.5612 GB, free: 34.49 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.008385/0.4235, allocations: 9.003 MB / 0.57 GB, free: 28.17 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.007308/0.4308, allocations: 3.586 MB / 0.5735 GB, free: 25.84 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002026/0.4329, allocations: 51.69 kB / 0.5735 GB, free: 25.82 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003849/0.4367, allocations: 1.696 MB / 0.5752 GB, free: 25.07 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006538/0.4433, allocations: 1.573 MB / 0.5767 GB, free: 24.39 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0021/0.4454, allocations: 0.5559 MB / 0.5772 GB, free: 24.17 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.008125/0.4535, allocations: 3.584 MB / 0.5807 GB, free: 22.84 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003345/0.4568, allocations: 1.624 MB / 0.5823 GB, free: 22.07 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00279/0.4596, allocations: 1.1 MB / 0.5834 GB, free: 21.6 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003715/0.4633, allocations: 1.673 MB / 0.585 GB, free: 21 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008954/0.4642, allocations: 219.4 kB / 0.5852 GB, free: 21 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002888/0.4671, allocations: 1.132 MB / 0.5864 GB, free: 20.75 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002378/0.4695, allocations: 1.455 MB / 0.5878 GB, free: 20.2 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002512/0.472, allocations: 1.608 MB / 0.5893 GB, free: 19.05 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00935/0.4814, allocations: 5.412 MB / 0.5946 GB, free: 16.33 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.093e-05/0.4814, allocations: 4 kB / 0.5946 GB, free: 16.32 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.556e-06/0.4814, allocations: 0 / 0.5946 GB, free: 16.32 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002158/0.4816, allocations: 1.156 kB / 0.5946 GB, free: 16.32 MB / 446.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.01107/0.4927, allocations: 3.758 MB / 0.5983 GB, free: 13.62 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/0.4927, allocations: 9.75 kB / 0.5983 GB, free: 13.62 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01644/0.5091, allocations: 2.344 MB / 0.6006 GB, free: 12.49 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006812/0.516, allocations: 2.191 MB / 0.6027 GB, free: 11.08 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001802/0.5161, allocations: 159.6 kB / 0.6029 GB, free: 11 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001208/0.5173, allocations: 221.4 kB / 0.6031 GB, free: 10.92 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0149/0.5322, allocations: 7.402 MB / 0.6103 GB, free: 4.184 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001235/0.5324, allocations: 47.62 kB / 0.6104 GB, free: 4.137 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003393/0.5327, allocations: 99.89 kB / 0.6105 GB, free: 4.039 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002326/0.535, allocations: 1.543 MB / 0.612 GB, free: 2.496 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01231/0.5473, allocations: 6.315 MB / 0.6181 GB, free: 12.16 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04314/0.5905, allocations: 30.23 MB / 0.6477 GB, free: 13.01 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00497/0.5955, allocations: 2.164 MB / 0.6498 GB, free: 10.7 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001668/0.5971, allocations: 1.046 MB / 0.6508 GB, free: 9.645 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004445/0.5976, allocations: 323.5 kB / 0.6511 GB, free: 9.273 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.972e-05/0.5976, allocations: 50.94 kB / 0.6512 GB, free: 9.215 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 3.326e-06/0.5976, allocations: 0 / 0.6512 GB, free: 9.215 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.04049/0.6381, allocations: 12 MB / 0.6629 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001498/0.6383, allocations: 192.6 kB / 0.6631 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006033/0.6443, allocations: 3.604 MB / 0.6666 GB, free: 9.258 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003574/0.6447, allocations: 45.7 kB / 0.6666 GB, free: 9.207 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002361/0.647, allocations: 2.647 MB / 0.6692 GB, free: 6.535 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000834/0.6478, allocations: 0.5545 MB / 0.6697 GB, free: 5.977 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001613/0.6495, allocations: 1.091 MB / 0.6708 GB, free: 4.875 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001383/0.6496, allocations: 305.1 kB / 0.6711 GB, free: 4.574 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002818/0.6524, allocations: 1.736 MB / 0.6728 GB, free: 2.832 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005642/0.6581, allocations: 5.088 MB / 0.6778 GB, free: 12.06 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009884/0.6679, allocations: 7.375 MB / 0.685 GB, free: 3.02 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001021/0.668, allocations: 32 kB / 0.685 GB, free: 2.988 MB / 0.5137 GB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01596/0.684, allocations: 7.06 MB / 0.6919 GB, free: 11.92 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.389e-05/0.6841, allocations: 60.25 kB / 0.692 GB, free: 11.86 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001805/0.6843, allocations: 120 kB / 0.6921 GB, free: 11.75 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001753/0.686, allocations: 0.6408 MB / 0.6927 GB, free: 11.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004236/0.6903, allocations: 1.22 MB / 0.6939 GB, free: 9.879 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005379/0.6957, allocations: 4.059 MB / 0.6979 GB, free: 5.676 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004415/0.7001, allocations: 299.7 kB / 0.6981 GB, free: 5.383 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001067/0.7011, allocations: 332 kB / 0.6985 GB, free: 5.059 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.004142/0.7053, allocations: 1.697 MB / 0.7001 GB, free: 3.348 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008726/0.7061, allocations: 313.9 kB / 0.7004 GB, free: 3.039 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004895/0.711, allocations: 2.088 MB / 0.7024 GB, free: 0.9336 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-05/0.7111, allocations: 12.38 kB / 0.7025 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-05/0.7111, allocations: 4 kB / 0.7025 GB, free: 0.918 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.871e-05/0.7111, allocations: 3.984 kB / 0.7025 GB, free: 0.9141 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0151/0.7262, allocations: 5.613 MB / 0.7079 GB, free: 11.21 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.745e-05/0.7262, allocations: 3.938 kB / 0.708 GB, free: 11.21 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00109/0.7273, allocations: 191.7 kB / 0.7081 GB, free: 11.02 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001521/0.7288, allocations: 492.2 kB / 0.7086 GB, free: 10.54 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001317/0.729, allocations: 20 kB / 0.7086 GB, free: 10.52 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004538/0.7335, allocations: 3.433 MB / 0.712 GB, free: 6.945 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.7335, allocations: 0 / 0.712 GB, free: 6.945 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007124/0.7406, allocations: 4.189 MB / 0.7161 GB, free: 2.719 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001185/0.7418, allocations: 374.8 kB / 0.7164 GB, free: 2.332 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008122/0.7426, allocations: 23.98 kB / 0.7164 GB, free: 2.309 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001784/0.7444, allocations: 75.89 kB / 0.7165 GB, free: 2.234 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002429/0.7447, allocations: 72.91 kB / 0.7166 GB, free: 2.164 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001162/0.7448, allocations: 36 kB / 0.7166 GB, free: 2.129 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004554/0.7493, allocations: 2.248 MB / 0.7188 GB, free: 15.89 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.91e-07/0.7493, allocations: 7.875 kB / 0.7188 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005268/0.7546, allocations: 0.7889 MB / 0.7196 GB, free: 15.09 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.0004858/0.7551, allocations: 147 kB / 0.7197 GB, free: 14.94 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007855/0.7629, allocations: 3.972 MB / 0.7236 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.797e-06/0.763, allocations: 4 kB / 0.7236 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001856/0.7648, allocations: 1.065 MB / 0.7247 GB, free: 9.906 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002709/0.7675, allocations: 345.4 kB / 0.725 GB, free: 9.574 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01456/0.7821, allocations: 7.238 MB / 0.7321 GB, free: 2.285 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003412/0.7855, allocations: 2.635 MB / 0.7346 GB, free: 15.62 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004367/0.7899, allocations: 1.694 MB / 0.7363 GB, free: 13.92 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006936/0.7906, allocations: 207.4 kB / 0.7365 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of SimCode: time 1.453e-06/0.7906, allocations: 0 / 0.7365 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of Templates: time 0.05923/0.8498, allocations: 27.39 MB / 0.7632 GB, free: 2.395 MB / 0.5919 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 cvode -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: 7.2187289469875395]