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.001007/0.001007, allocations: 78.28 kB / 21.42 MB, free: 3.078 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.001123/0.001123, allocations: 150.8 kB / 24.81 MB, free: 9.34 MB / 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.038/1.038, allocations: 173.3 MB / 201.4 MB, free: 9.246 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 2.084e-06/2.084e-06, allocations: 0 / 268.4 MB, free: 6.258 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.231e-05/2.44e-05, allocations: 10.25 kB / 268.4 MB, free: 6.246 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Sensors): time 0.002486/0.00251, allocations: 1.99 MB / 270.4 MB, free: 4.242 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007744/0.003285, allocations: 0.4987 MB / 270.9 MB, free: 3.738 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001007/0.003386, allocations: 4 kB / 270.9 MB, free: 3.734 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001095/0.003495, allocations: 15.8 kB / 270.9 MB, free: 3.719 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.848e-05/0.003574, allocations: 35.64 kB / 270.9 MB, free: 3.684 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002053/0.003779, allocations: 47.94 kB / 271 MB, free: 3.637 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001724/0.003951, allocations: 151.3 kB / 271.1 MB, free: 3.488 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001428/0.004094, allocations: 57.5 kB / 271.2 MB, free: 3.43 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001641/0.004258, allocations: 95.84 kB / 271.3 MB, free: 3.336 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001021/0.00436, allocations: 47.88 kB / 271.3 MB, free: 3.289 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.462e-05/0.004385, allocations: 12 kB / 271.3 MB, free: 3.277 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.808e-05/0.004403, allocations: 16 kB / 271.4 MB, free: 3.262 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.738e-05/0.00443, allocations: 31.84 kB / 271.4 MB, free: 3.23 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.891e-05/0.004479, allocations: 51.91 kB / 271.4 MB, free: 3.18 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001629/0.004642, allocations: 107.6 kB / 271.5 MB, free: 3.074 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.375e-06/0.004644, allocations: 4 kB / 271.5 MB, free: 3.07 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.61e-07/0.004645, allocations: 4 kB / 271.5 MB, free: 3.066 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.499e-06/0.00465, allocations: 0 / 271.5 MB, free: 3.066 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.0007385/0.005388, allocations: 464 kB / 272 MB, free: 2.578 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.005426, allocations: 8.922 kB / 272 MB, free: 2.57 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.586e-05/0.005471, allocations: 28.84 kB / 272 MB, free: 2.543 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001541/0.005625, allocations: 164.3 kB / 272.2 MB, free: 2.355 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.00564, allocations: 12.38 kB / 272.2 MB, free: 2.344 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.615e-05/0.005666, allocations: 16.38 kB / 272.2 MB, free: 2.328 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001585/0.005825, allocations: 114.6 kB / 272.3 MB, free: 2.207 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.005836, allocations: 4.188 kB / 272.3 MB, free: 2.203 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.005848, allocations: 8.359 kB / 272.3 MB, free: 2.195 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.005855, allocations: 7.938 kB / 272.4 MB, free: 2.188 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.695e-05/0.005912, allocations: 39.95 kB / 272.4 MB, free: 2.148 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004901/0.006402, allocations: 470.8 kB / 272.9 MB, free: 1.652 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.1e-05/0.006493, allocations: 62.97 kB / 272.9 MB, free: 1.578 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.46e-05/0.006518, allocations: 27.67 kB / 272.9 MB, free: 1.547 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.654e-05/0.006534, allocations: 0 / 272.9 MB, free: 1.547 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.007e-05/0.006554, allocations: 33.39 kB / 273 MB, free: 1.504 MB / 250.7 MB Notification: Performance of pre-optimization done (n=9): time 1.302e-06/0.006556, allocations: 4 kB / 273 MB, free: 1.5 MB / 250.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004816/0.007037, allocations: 379.9 kB / 273.4 MB, free: 1.066 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.633e-05/0.007064, allocations: 55.41 kB / 273.4 MB, free: 1 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.59e-05/0.007159, allocations: 189.3 kB / 273.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.208e-05/0.007172, allocations: 29.7 kB / 273.6 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.797e-05/0.007239, allocations: 182.9 kB / 273.8 MB, free: 0.5781 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.405e-05/0.007264, allocations: 47.62 kB / 273.8 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.043e-05/0.007304, allocations: 39.36 kB / 273.9 MB, free: 496 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.007428, allocations: 0.4961 MB / 274.4 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.235e-05/0.00745, allocations: 11.98 kB / 274.4 MB, free: 15.96 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.633e-05/0.007507, allocations: 89.47 kB / 274.5 MB, free: 15.84 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003664/0.007873, allocations: 117.3 kB / 274.6 MB, free: 15.7 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.007875, allocations: 0 / 274.6 MB, free: 15.7 MB / 266.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001283/0.008003, allocations: 126.4 kB / 274.7 MB, free: 15.57 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.008015, allocations: 8 kB / 274.7 MB, free: 15.56 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.008022, allocations: 0 / 274.7 MB, free: 15.56 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.008039, allocations: 4 kB / 274.7 MB, free: 15.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001091/0.008148, allocations: 35.98 kB / 274.8 MB, free: 15.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.008153, allocations: 7.938 kB / 274.8 MB, free: 15.51 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.902e-05/0.008192, allocations: 16.12 kB / 274.8 MB, free: 15.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.303e-06/0.0082, allocations: 4 kB / 274.8 MB, free: 15.49 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.485e-05/0.008274, allocations: 164.5 kB / 275 MB, free: 15.32 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.273e-05/0.008297, allocations: 15.91 kB / 275 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.212e-05/0.008329, allocations: 16.42 kB / 275 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.008331, allocations: 0 / 275 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-06/0.008333, allocations: 0 / 275 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.008336, allocations: 0 / 275 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002862/0.008622, allocations: 381.1 kB / 275.4 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.008624, allocations: 4.062 kB / 275.4 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.771e-05/0.008702, allocations: 31.92 kB / 275.4 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.008705, allocations: 0 / 275.4 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.815e-06/0.008713, allocations: 4 kB / 275.4 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.008715, allocations: 3.984 kB / 275.4 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.008716, allocations: 0 / 275.4 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001676/0.008884, allocations: 271.2 kB / 275.7 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.029e-05/0.008894, allocations: 7.953 kB / 275.7 MB, free: 14.53 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.008e-05/0.008904, allocations: 0 / 275.7 MB, free: 14.53 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.031e-05/0.008944, allocations: 4 kB / 275.7 MB, free: 14.53 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.705e-05/0.008971, allocations: 19.95 kB / 275.7 MB, free: 14.51 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.581e-06/0.008977, allocations: 3.984 kB / 275.7 MB, free: 14.5 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.894e-05/0.009016, allocations: 131.2 kB / 275.8 MB, free: 14.38 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009016, allocations: 0 / 275.8 MB, free: 14.38 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001754/0.009191, allocations: 28 kB / 275.9 MB, free: 14.35 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 9.093e-05/0.009282, allocations: 99.25 kB / 276 MB, free: 14.24 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001024/0.009385, allocations: 67.83 kB / 276 MB, free: 14.17 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.009387, allocations: 4 kB / 276 MB, free: 14.17 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.234e-05/0.009419, allocations: 35.61 kB / 276.1 MB, free: 14.13 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002071/0.009626, allocations: 15.98 kB / 276.1 MB, free: 14.11 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000614/0.01024, allocations: 382 kB / 276.4 MB, free: 13.7 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.226e-05/0.01028, allocations: 67.34 kB / 276.5 MB, free: 13.62 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.723e-05/0.01032, allocations: 12.97 kB / 276.5 MB, free: 13.6 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.731e-05/0.01038, allocations: 78.2 kB / 276.6 MB, free: 13.52 MB / 266.7 MB Notification: Performance of SimCode: time 9.01e-07/0.01038, allocations: 0 / 276.6 MB, free: 13.52 MB / 266.7 MB Notification: Performance of Templates: time 0.002767/0.01314, allocations: 0.9305 MB / 277.5 MB, free: 12.61 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.6972412769682705]