Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.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.0009165/0.0009165, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 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.001125/0.001125, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 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.002/1.002, allocations: 173.4 MB / 201.2 MB, free: 9.344 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Mechanics.Translational.Examples.Sensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|mass.s|mass.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors") translateModel(Modelica.Mechanics.Translational.Examples.Sensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|mass.s|mass.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.864e-06/1.864e-06, allocations: 0 / 268 MB, free: 6.465 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.051e-05/2.237e-05, allocations: 2.312 kB / 268 MB, free: 6.461 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.002409/0.002431, allocations: 2.006 MB / 270 MB, free: 4.445 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007489/0.00318, allocations: 0.4986 MB / 270.5 MB, free: 3.941 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.003284, allocations: 3.938 kB / 270.5 MB, free: 3.938 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001187/0.003402, allocations: 27.78 kB / 270.5 MB, free: 3.91 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.001e-05/0.003482, allocations: 35.64 kB / 270.5 MB, free: 3.875 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002033/0.003686, allocations: 43.94 kB / 270.6 MB, free: 3.832 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001595/0.003845, allocations: 147.4 kB / 270.7 MB, free: 3.688 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001352/0.00398, allocations: 57.58 kB / 270.8 MB, free: 3.629 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000136/0.004116, allocations: 95.78 kB / 270.9 MB, free: 3.535 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.793e-05/0.004204, allocations: 43.88 kB / 270.9 MB, free: 3.492 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.786e-05/0.004232, allocations: 19.94 kB / 270.9 MB, free: 3.473 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.771e-05/0.00425, allocations: 16 kB / 271 MB, free: 3.457 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.696e-05/0.004277, allocations: 35.84 kB / 271 MB, free: 3.422 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.611e-05/0.004323, allocations: 51.89 kB / 271.1 MB, free: 3.371 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001577/0.004481, allocations: 107.6 kB / 271.2 MB, free: 3.266 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.004483, allocations: 0 / 271.2 MB, free: 3.266 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.51e-07/0.004484, allocations: 0 / 271.2 MB, free: 3.266 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.418e-06/0.004488, allocations: 0 / 271.2 MB, free: 3.266 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0004581/0.004946, allocations: 468.1 kB / 271.6 MB, free: 2.773 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.391e-05/0.00498, allocations: 8.922 kB / 271.6 MB, free: 2.766 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.859e-05/0.005039, allocations: 32.84 kB / 271.7 MB, free: 2.734 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001647/0.005203, allocations: 152.4 kB / 271.8 MB, free: 2.559 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.446e-05/0.005218, allocations: 12.36 kB / 271.8 MB, free: 2.547 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.058e-05/0.005248, allocations: 20.31 kB / 271.8 MB, free: 2.527 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001897/0.005438, allocations: 126.4 kB / 272 MB, free: 2.395 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.005451, allocations: 4.188 kB / 272 MB, free: 2.391 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.005465, allocations: 4.375 kB / 272 MB, free: 2.387 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.005475, allocations: 7.938 kB / 272 MB, free: 2.379 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.715e-05/0.005562, allocations: 51.95 kB / 272 MB, free: 2.328 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005324/0.006094, allocations: 466.8 kB / 272.5 MB, free: 1.836 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001076/0.006202, allocations: 63.03 kB / 272.5 MB, free: 1.762 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.407e-05/0.006236, allocations: 23.86 kB / 272.6 MB, free: 1.734 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.353e-05/0.006249, allocations: 7.938 kB / 272.6 MB, free: 1.727 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.97e-05/0.006269, allocations: 33.39 kB / 272.6 MB, free: 1.684 MB / 250.7 MB Notification: Performance of pre-optimization done (n=9): time 1.463e-06/0.006271, allocations: 0 / 272.6 MB, free: 1.684 MB / 250.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005898/0.00686, allocations: 412 kB / 273 MB, free: 1.219 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.874e-05/0.006889, allocations: 55.41 kB / 273.1 MB, free: 1.152 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001019/0.006991, allocations: 193.8 kB / 273.3 MB, free: 0.9453 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.243e-05/0.007004, allocations: 25.7 kB / 273.3 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.741e-05/0.007081, allocations: 182.9 kB / 273.5 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.484e-05/0.007106, allocations: 43.62 kB / 273.5 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.329e-05/0.007149, allocations: 43.31 kB / 273.5 MB, free: 0.6328 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.007252, allocations: 0.4922 MB / 274 MB, free: 132 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.101e-05/0.007283, allocations: 15.98 kB / 274 MB, free: 116 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.466e-05/0.007358, allocations: 93.47 kB / 274.1 MB, free: 15.99 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001049/0.007463, allocations: 121.4 kB / 274.3 MB, free: 15.84 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.007464, allocations: 0 / 274.3 MB, free: 15.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001396/0.007603, allocations: 133.4 kB / 274.4 MB, free: 15.7 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.007616, allocations: 8 kB / 274.4 MB, free: 15.69 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.007621, allocations: 192 / 274.4 MB, free: 15.69 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.007635, allocations: 8 kB / 274.4 MB, free: 15.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001108/0.007746, allocations: 35.92 kB / 274.4 MB, free: 15.65 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.712e-06/0.007753, allocations: 4 kB / 274.4 MB, free: 15.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.721e-05/0.00779, allocations: 7.984 kB / 274.4 MB, free: 15.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.068e-05/0.007801, allocations: 8.047 kB / 274.5 MB, free: 15.63 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.077e-05/0.007871, allocations: 168.5 kB / 274.6 MB, free: 15.45 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.988e-05/0.007891, allocations: 11.94 kB / 274.6 MB, free: 15.44 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.661e-05/0.007918, allocations: 16.44 kB / 274.7 MB, free: 15.43 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.00792, allocations: 0 / 274.7 MB, free: 15.43 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.007924, allocations: 7.938 kB / 274.7 MB, free: 15.42 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.007926, allocations: 0 / 274.7 MB, free: 15.42 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003259/0.008252, allocations: 424.4 kB / 275.1 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.008254, allocations: 0 / 275.1 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.95e-05/0.008334, allocations: 23.98 kB / 275.1 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.307e-06/0.008337, allocations: 4 kB / 275.1 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.165e-06/0.008345, allocations: 0 / 275.1 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.008349, allocations: 3.938 kB / 275.1 MB, free: 14.92 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.008352, allocations: 7.938 kB / 275.1 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001827/0.008535, allocations: 267.3 kB / 275.4 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.222e-05/0.008547, allocations: 11.95 kB / 275.4 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.443e-05/0.008562, allocations: 4 kB / 275.4 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.117e-05/0.008603, allocations: 0 / 275.4 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.454e-05/0.008637, allocations: 19.86 kB / 275.4 MB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.35e-06/0.008643, allocations: 7.938 kB / 275.4 MB, free: 14.58 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.449e-05/0.008687, allocations: 135.2 kB / 275.5 MB, free: 14.45 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008687, allocations: 0 / 275.5 MB, free: 14.45 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001766/0.008864, allocations: 28 kB / 275.6 MB, free: 14.42 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mass.s,mass.v) * 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 (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.858e-05/0.008943, allocations: 102.7 kB / 275.7 MB, free: 14.32 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001331/0.009076, allocations: 76.45 kB / 275.7 MB, free: 14.24 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.009077, allocations: 0 / 275.7 MB, free: 14.24 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.68e-05/0.009114, allocations: 35.61 kB / 275.8 MB, free: 14.2 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000212/0.009326, allocations: 12 kB / 275.8 MB, free: 14.19 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006542/0.00998, allocations: 378.6 kB / 276.2 MB, free: 13.78 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.233e-05/0.01002, allocations: 75.27 kB / 276.2 MB, free: 13.69 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.594e-05/0.01006, allocations: 4.984 kB / 276.2 MB, free: 13.68 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.085e-05/0.01009, allocations: 16.48 kB / 276.3 MB, free: 13.66 MB / 266.7 MB Notification: Performance of SimCode: time 6.81e-07/0.01009, allocations: 4 kB / 276.3 MB, free: 13.66 MB / 266.7 MB Notification: Performance of Templates: time 0.002645/0.01274, allocations: 0.8899 MB / 277.2 MB, free: 12.78 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Sensors/Sensors.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.662622205913067]