Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.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.001111/0.001111, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001896/0.003008, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.001103/0.001103, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00149/0.002593, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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 1.175/1.175, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1168/1.291, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.379/0.379, allocations: 32.8 MB / 276.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.04152/0.4205, allocations: 12.53 MB / 289.3 MB, free: 8.664 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.284e-06/2.284e-06, allocations: 0 / 290.6 MB, free: 7.668 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.722e-05/2.951e-05, allocations: 4.078 kB / 290.6 MB, free: 7.664 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.002219/0.002248, allocations: 0.5396 MB / 291.1 MB, free: 7.25 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001475/0.003723, allocations: 0.927 MB / 292 MB, free: 6.492 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.27e-05/0.003745, allocations: 1.781 kB / 292 MB, free: 6.492 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.159e-06/0.003751, allocations: 3.938 kB / 292 MB, free: 6.488 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 8.785e-05/0.003838, allocations: 5.656 kB / 292.1 MB, free: 6.484 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:323:3-363:15:writable] Warning: Pure function 'ModelicaTest.Utilities.ReadFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0006151/0.004454, allocations: 64.36 kB / 292.1 MB, free: 6.445 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 7.105e-05/0.004525, allocations: 2.562 kB / 292.1 MB, free: 6.445 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.96e-05/0.004564, allocations: 1.875 kB / 292.1 MB, free: 6.445 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.681e-05/0.004611, allocations: 2.375 kB / 292.1 MB, free: 6.445 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.502e-05/0.004676, allocations: 5.344 kB / 292.1 MB, free: 6.441 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.248e-05/0.004689, allocations: 0 / 292.1 MB, free: 6.441 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001928/0.004881, allocations: 68.94 kB / 292.2 MB, free: 6.406 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.999e-06/0.004891, allocations: 0 / 292.2 MB, free: 6.406 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.631e-05/0.004908, allocations: 1.094 kB / 292.2 MB, free: 6.406 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001948/0.005102, allocations: 52.84 kB / 292.2 MB, free: 6.379 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.878e-05/0.005121, allocations: 0 / 292.2 MB, free: 6.379 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.674e-06/0.005123, allocations: 1.469 kB / 292.3 MB, free: 6.379 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.658e-05/0.005139, allocations: 0 / 292.3 MB, free: 6.379 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003459/0.005485, allocations: 260.4 kB / 292.5 MB, free: 6.105 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.005526, allocations: 9.375 kB / 292.5 MB, free: 6.105 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.378e-05/0.005559, allocations: 2.188 kB / 292.5 MB, free: 6.105 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.589e-05/0.005655, allocations: 107.7 kB / 292.6 MB, free: 5.977 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.232e-05/0.005668, allocations: 384 / 292.6 MB, free: 5.977 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.104e-06/0.005675, allocations: 1.375 kB / 292.6 MB, free: 5.977 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.842e-05/0.005763, allocations: 66.98 kB / 292.7 MB, free: 5.902 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.005774, allocations: 0.7188 kB / 292.7 MB, free: 5.902 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.802e-06/0.005781, allocations: 0.9375 kB / 292.7 MB, free: 5.902 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.005787, allocations: 384 / 292.7 MB, free: 5.902 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.899e-05/0.005816, allocations: 32.33 kB / 292.7 MB, free: 5.867 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.104e-05/0.005897, allocations: 62.86 kB / 292.8 MB, free: 5.793 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.251e-05/0.00595, allocations: 43.59 kB / 292.8 MB, free: 5.738 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.962e-05/0.005969, allocations: 35.97 kB / 292.9 MB, free: 5.695 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.13e-06/0.005974, allocations: 1.094 kB / 292.9 MB, free: 5.695 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.318e-05/0.006018, allocations: 65.62 kB / 292.9 MB, free: 5.617 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 1.313e-06/0.006019, allocations: 0 / 292.9 MB, free: 5.617 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001386/0.006157, allocations: 109.8 kB / 293 MB, free: 5.492 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.453e-05/0.006202, allocations: 82.52 kB / 293.1 MB, free: 5.395 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.509e-05/0.006287, allocations: 100.3 kB / 293.2 MB, free: 5.285 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.154e-05/0.006299, allocations: 25.7 kB / 293.2 MB, free: 5.254 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.265e-05/0.006321, allocations: 81.33 kB / 293.3 MB, free: 5.172 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.9e-05/0.00634, allocations: 6.328 kB / 293.3 MB, free: 5.168 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.341e-05/0.006374, allocations: 19.23 kB / 293.3 MB, free: 5.145 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.229e-05/0.006466, allocations: 317.6 kB / 293.7 MB, free: 4.828 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.033e-05/0.006486, allocations: 25.7 kB / 293.7 MB, free: 4.797 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.502e-05/0.006501, allocations: 27.48 kB / 293.7 MB, free: 4.766 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.709e-05/0.006548, allocations: 68.81 kB / 293.8 MB, free: 4.688 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.00655, allocations: 0 / 293.8 MB, free: 4.688 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.405e-05/0.006624, allocations: 83.64 kB / 293.9 MB, free: 4.594 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.942e-05/0.006674, allocations: 35.56 kB / 293.9 MB, free: 4.559 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.006679, allocations: 0 / 293.9 MB, free: 4.559 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.247e-06/0.006689, allocations: 8.031 kB / 293.9 MB, free: 4.551 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.26e-06/0.006694, allocations: 0 / 293.9 MB, free: 4.551 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.845e-06/0.006697, allocations: 1.188 kB / 293.9 MB, free: 4.551 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.616e-05/0.006713, allocations: 0 / 293.9 MB, free: 4.551 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/0.00672, allocations: 1.375 kB / 293.9 MB, free: 4.551 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 8.709e-05/0.006807, allocations: 142 kB / 294 MB, free: 4.398 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.101e-05/0.006818, allocations: 2.625 kB / 294 MB, free: 4.398 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.36e-05/0.006831, allocations: 7 kB / 294 MB, free: 4.395 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.006834, allocations: 3.984 kB / 294 MB, free: 4.391 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.006837, allocations: 5.5 kB / 294.1 MB, free: 4.387 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.544e-06/0.00684, allocations: 4 kB / 294.1 MB, free: 4.383 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.437e-05/0.006904, allocations: 63.25 kB / 294.1 MB, free: 4.305 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.006907, allocations: 1.219 kB / 294.1 MB, free: 4.305 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.152e-06/0.006908, allocations: 0 / 294.1 MB, free: 4.305 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.612e-06/0.006915, allocations: 1.062 kB / 294.1 MB, free: 4.305 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.006918, allocations: 0 / 294.1 MB, free: 4.305 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.669e-06/0.006923, allocations: 1.438 kB / 294.1 MB, free: 4.305 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.123e-06/0.006924, allocations: 0 / 294.1 MB, free: 4.305 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.006926, allocations: 1.406 kB / 294.1 MB, free: 4.305 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001009/0.007027, allocations: 113.7 kB / 294.2 MB, free: 4.172 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.295e-05/0.00704, allocations: 5.344 kB / 294.2 MB, free: 4.168 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.109e-05/0.007051, allocations: 1.469 kB / 294.2 MB, free: 4.168 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.939e-06/0.007061, allocations: 3.984 kB / 294.2 MB, free: 4.164 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.089e-06/0.007066, allocations: 1.5 kB / 294.2 MB, free: 4.164 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.929e-06/0.007076, allocations: 4.859 kB / 294.3 MB, free: 4.156 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.007076, allocations: 1.156 kB / 294.3 MB, free: 4.156 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001944/0.007271, allocations: 17.56 kB / 294.3 MB, free: 4.152 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0005458/0.007817, allocations: 241.3 kB / 294.5 MB, free: 4.027 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000111/0.007928, allocations: 114 kB / 294.6 MB, free: 3.895 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.007932, allocations: 8 kB / 294.6 MB, free: 3.887 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.827e-05/0.00797, allocations: 93.94 kB / 294.7 MB, free: 3.777 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.494e-05/0.008045, allocations: 7.938 kB / 294.7 MB, free: 3.773 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001828/0.008228, allocations: 116 kB / 294.8 MB, free: 3.637 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.527e-05/0.008263, allocations: 51.36 kB / 294.9 MB, free: 3.566 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.584e-06/0.008271, allocations: 0 / 294.9 MB, free: 3.566 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.613e-05/0.008317, allocations: 53.38 kB / 294.9 MB, free: 3.52 MB / 282.7 MB Notification: Performance of SimCode: time 8.81e-07/0.008318, allocations: 0 / 294.9 MB, free: 3.52 MB / 282.7 MB Notification: Performance of Templates: time 0.003153/0.01147, allocations: 0.7768 MB / 295.7 MB, free: 2.848 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.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: 3.199382488615811]