Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Sensors.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.0009346/0.0009346, allocations: 79.59 kB / 21.18 MB, free: 3.387 MB / 18.57 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.00102/0.00102, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 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 0.9807/0.9807, allocations: 177.1 MB / 205 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Mechanics.Translational.Examples.Sensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|mass.s|mass.v",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Mechanics.Translational.Examples.Sensors") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 273 MB, free: 1.59 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.138e-05/2.285e-05, allocations: 2.312 kB / 273 MB, free: 1.586 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.002374/0.002397, allocations: 2.021 MB / 275 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008196/0.003217, allocations: 0.5687 MB / 275.5 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.884e-05/0.003316, allocations: 4 kB / 275.6 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001206/0.003436, allocations: 19.73 kB / 275.6 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 7.601e-05/0.003512, allocations: 31.66 kB / 275.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002424/0.003755, allocations: 63.91 kB / 275.7 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001629/0.003918, allocations: 147.3 kB / 275.8 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001252/0.004043, allocations: 53.7 kB / 275.9 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001624/0.004205, allocations: 107.8 kB / 276 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.415e-05/0.004289, allocations: 43.88 kB / 276 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.405e-05/0.004313, allocations: 16 kB / 276 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.681e-05/0.00436, allocations: 23.92 kB / 276 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.212e-05/0.004382, allocations: 31.91 kB / 276.1 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.04e-05/0.004423, allocations: 47.86 kB / 276.1 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001699/0.004593, allocations: 115.5 kB / 276.2 MB, free: 14.29 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.004596, allocations: 4 kB / 276.2 MB, free: 14.28 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.004596, allocations: 0 / 276.2 MB, free: 14.28 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.0046, allocations: 7.938 kB / 276.2 MB, free: 14.27 MB / 266.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.0004428/0.005043, allocations: 464 kB / 276.7 MB, free: 13.79 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.005078, allocations: 12.02 kB / 276.7 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001165/0.005194, allocations: 40.84 kB / 276.8 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001646/0.005359, allocations: 144.4 kB / 276.9 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.417e-05/0.005373, allocations: 8.375 kB / 276.9 MB, free: 13.56 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.851e-05/0.005401, allocations: 24.33 kB / 276.9 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001792/0.005581, allocations: 122.6 kB / 277 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.005593, allocations: 8.188 kB / 277.1 MB, free: 13.4 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.005605, allocations: 4.375 kB / 277.1 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.005615, allocations: 7.938 kB / 277.1 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.584e-05/0.0057, allocations: 55.88 kB / 277.1 MB, free: 13.33 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004923/0.006193, allocations: 463.1 kB / 277.6 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001092/0.006302, allocations: 70.97 kB / 277.6 MB, free: 12.76 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.034e-05/0.006332, allocations: 19.69 kB / 277.7 MB, free: 12.74 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.109e-05/0.006343, allocations: 0 / 277.7 MB, free: 12.74 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.006e-05/0.006363, allocations: 45.38 kB / 277.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of pre-optimization done (n=9): time 1.172e-06/0.006364, allocations: 0 / 277.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005483/0.006913, allocations: 404.5 kB / 278.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.824e-05/0.006941, allocations: 55.41 kB / 278.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.045e-05/0.007031, allocations: 196.6 kB / 278.3 MB, free: 11.95 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.957e-06/0.00704, allocations: 25.7 kB / 278.4 MB, free: 11.92 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.648e-05/0.007107, allocations: 182.9 kB / 278.6 MB, free: 11.74 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.47e-05/0.007132, allocations: 43.69 kB / 278.6 MB, free: 11.7 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.874e-05/0.00717, allocations: 39.33 kB / 278.6 MB, free: 11.65 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.007284, allocations: 0.4961 MB / 279.1 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.204e-05/0.007316, allocations: 19.98 kB / 279.1 MB, free: 11.12 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.125e-05/0.007377, allocations: 88.75 kB / 279.2 MB, free: 11 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001/0.007477, allocations: 125.7 kB / 279.4 MB, free: 10.85 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.00748, allocations: 4 kB / 279.4 MB, free: 10.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001419/0.007621, allocations: 145.3 kB / 279.5 MB, free: 10.7 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.007634, allocations: 4 kB / 279.5 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.00764, allocations: 8 kB / 279.5 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.007652, allocations: 0 / 279.5 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001028/0.007755, allocations: 31.98 kB / 279.5 MB, free: 10.65 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.007761, allocations: 7.938 kB / 279.6 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.562e-05/0.007797, allocations: 4 kB / 279.6 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.967e-06/0.007806, allocations: 8.188 kB / 279.6 MB, free: 10.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.026e-05/0.007876, allocations: 176.4 kB / 279.7 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.036e-05/0.007896, allocations: 11.95 kB / 279.7 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.567e-05/0.007922, allocations: 12.78 kB / 279.8 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.007924, allocations: 7.938 kB / 279.8 MB, free: 10.42 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.007927, allocations: 0 / 279.8 MB, free: 10.42 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.00793, allocations: 0 / 279.8 MB, free: 10.42 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003261/0.008256, allocations: 416.5 kB / 280.2 MB, free: 9.961 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.008257, allocations: 0 / 280.2 MB, free: 9.961 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.791e-05/0.008335, allocations: 24.05 kB / 280.2 MB, free: 9.938 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.008338, allocations: 7.938 kB / 280.2 MB, free: 9.93 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.899e-06/0.008348, allocations: 4 kB / 280.2 MB, free: 9.926 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.00835, allocations: 0 / 280.2 MB, free: 9.926 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.008352, allocations: 3.938 kB / 280.2 MB, free: 9.922 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001809/0.008533, allocations: 267.2 kB / 280.5 MB, free: 9.633 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.158e-05/0.008544, allocations: 15.94 kB / 280.5 MB, free: 9.617 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.195e-05/0.008556, allocations: 0 / 280.5 MB, free: 9.617 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.91e-05/0.008595, allocations: 4 kB / 280.5 MB, free: 9.613 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.027e-05/0.008626, allocations: 15.92 kB / 280.5 MB, free: 9.598 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.717e-06/0.008629, allocations: 0 / 280.5 MB, free: 9.598 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.418e-05/0.008674, allocations: 143.2 kB / 280.7 MB, free: 9.457 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008674, allocations: 0 / 280.7 MB, free: 9.457 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001828/0.008856, allocations: 28 kB / 280.7 MB, free: 9.43 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.08e-05/0.008927, allocations: 99.19 kB / 280.8 MB, free: 9.324 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001293/0.009056, allocations: 83.45 kB / 280.9 MB, free: 9.238 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.009058, allocations: 0 / 280.9 MB, free: 9.238 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.556e-05/0.009094, allocations: 35.98 kB / 280.9 MB, free: 9.199 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002134/0.009307, allocations: 16.12 kB / 280.9 MB, free: 9.184 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006256/0.009933, allocations: 376.9 kB / 281.3 MB, free: 8.781 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.205e-05/0.009975, allocations: 71.33 kB / 281.3 MB, free: 8.691 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.427e-05/0.01001, allocations: 8.984 kB / 281.4 MB, free: 8.68 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.2e-05/0.01004, allocations: 20.48 kB / 281.4 MB, free: 8.66 MB / 266.7 MB Notification: Performance of SimCode: time 6.92e-07/0.01004, allocations: 0 / 281.4 MB, free: 8.66 MB / 266.7 MB Notification: Performance of Templates: time 0.002644/0.01269, allocations: 0.8977 MB / 282.3 MB, free: 7.777 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Sensors.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Sensors.sim & ./Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Sensors -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Sensors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.708805358968675]