Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001432/0.001432, allocations: 80.41 kB / 22.21 MB, free: 2.289 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.001688/0.001688, allocations: 166 kB / 25.61 MB, free: 8.582 MB / 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.96/0.96, allocations: 177.1 MB / 206 MB, free: 4.523 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.1659/0.1659, allocations: 34.25 MB / 296.8 MB, free: 13.91 MB / 282.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.1.0_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.704e-06/1.704e-06, allocations: 0 / 379.2 MB, free: 23.44 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.855e-05/3.026e-05, allocations: 3.625 kB / 379.3 MB, free: 23.44 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001495/0.001525, allocations: 497 kB / 379.7 MB, free: 22.95 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001039/0.002564, allocations: 0.9079 MB / 380.6 MB, free: 22.04 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.17e-05/0.002596, allocations: 3.938 kB / 380.7 MB, free: 22.04 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.748e-05/0.002614, allocations: 0 / 380.7 MB, free: 22.04 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001973/0.002811, allocations: 4 kB / 380.7 MB, free: 22.03 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:322:3-362: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.0005483/0.003359, allocations: 67.59 kB / 380.7 MB, free: 21.97 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 5.417e-05/0.003413, allocations: 4 kB / 380.7 MB, free: 21.97 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.67e-05/0.00345, allocations: 4 kB / 380.7 MB, free: 21.96 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.06e-05/0.003481, allocations: 7.984 kB / 380.7 MB, free: 21.96 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.515e-05/0.003526, allocations: 0 / 380.7 MB, free: 21.96 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.06e-05/0.003536, allocations: 0 / 380.7 MB, free: 21.96 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000119/0.003655, allocations: 51.94 kB / 380.8 MB, free: 21.91 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.111e-05/0.003667, allocations: 3.938 kB / 380.8 MB, free: 21.9 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.589e-05/0.003682, allocations: 4 kB / 380.8 MB, free: 21.9 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001558/0.003838, allocations: 55.81 kB / 380.8 MB, free: 21.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.335e-06/0.003841, allocations: 0 / 380.8 MB, free: 21.84 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.003842, allocations: 0 / 380.8 MB, free: 21.84 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.003846, allocations: 4 kB / 380.9 MB, free: 21.84 MB / 314.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.000247/0.004093, allocations: 385.9 kB / 381.2 MB, free: 21.42 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.223e-05/0.004126, allocations: 12.03 kB / 381.2 MB, free: 21.41 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.957e-05/0.004155, allocations: 0.9375 kB / 381.2 MB, free: 21.41 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.666e-05/0.004232, allocations: 112.6 kB / 381.4 MB, free: 21.27 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.605e-05/0.004248, allocations: 384 / 381.4 MB, free: 21.27 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.502e-06/0.004254, allocations: 384 / 381.4 MB, free: 21.27 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.399e-05/0.004318, allocations: 55.97 kB / 381.4 MB, free: 21.2 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.216e-06/0.004327, allocations: 4.125 kB / 381.4 MB, free: 21.2 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.12e-06/0.004332, allocations: 384 / 381.4 MB, free: 21.2 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.89e-06/0.004337, allocations: 4.375 kB / 381.4 MB, free: 21.2 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.272e-05/0.004349, allocations: 29.64 kB / 381.4 MB, free: 21.16 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.057e-05/0.00442, allocations: 97.25 kB / 381.5 MB, free: 21.04 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.027e-05/0.00446, allocations: 60.8 kB / 381.6 MB, free: 20.96 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.145e-05/0.004472, allocations: 33.39 kB / 381.6 MB, free: 20.92 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.306e-06/0.004475, allocations: 3.938 kB / 381.6 MB, free: 20.91 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.276e-05/0.004498, allocations: 59.16 kB / 381.7 MB, free: 20.84 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.004499, allocations: 4 kB / 381.7 MB, free: 20.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001503/0.004649, allocations: 118.7 kB / 381.8 MB, free: 20.7 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.416e-05/0.004673, allocations: 77.23 kB / 381.9 MB, free: 20.6 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.701e-05/0.00472, allocations: 153.9 kB / 382 MB, free: 20.43 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.292e-06/0.004726, allocations: 29.7 kB / 382.1 MB, free: 20.4 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.216e-05/0.004739, allocations: 126.9 kB / 382.2 MB, free: 20.27 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.38e-05/0.004752, allocations: 8.297 kB / 382.2 MB, free: 20.26 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.714e-05/0.004779, allocations: 23.36 kB / 382.2 MB, free: 20.23 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.374e-05/0.004833, allocations: 0.4922 MB / 382.7 MB, free: 19.73 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.057e-05/0.004844, allocations: 25.7 kB / 382.7 MB, free: 19.7 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.077e-06/0.004853, allocations: 25.7 kB / 382.8 MB, free: 19.66 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.784e-05/0.004881, allocations: 67.22 kB / 382.8 MB, free: 19.58 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.004883, allocations: 4 kB / 382.8 MB, free: 19.58 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.333e-05/0.004946, allocations: 89.09 kB / 382.9 MB, free: 19.47 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/0.00497, allocations: 33.7 kB / 383 MB, free: 19.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.004975, allocations: 0 / 383 MB, free: 19.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.609e-06/0.004985, allocations: 0 / 383 MB, free: 19.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.011e-06/0.004986, allocations: 0 / 383 MB, free: 19.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.324e-06/0.004988, allocations: 0 / 383 MB, free: 19.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.694e-05/0.005005, allocations: 4 kB / 383 MB, free: 19.43 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.765e-06/0.005013, allocations: 7.938 kB / 383 MB, free: 19.42 MB / 314.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 4.859e-05/0.005061, allocations: 182.3 kB / 383.1 MB, free: 19.23 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.197e-06/0.005071, allocations: 11.98 kB / 383.2 MB, free: 19.21 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.061e-05/0.005081, allocations: 3 kB / 383.2 MB, free: 19.21 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.005083, allocations: 0 / 383.2 MB, free: 19.21 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-06/0.005084, allocations: 0 / 383.2 MB, free: 19.21 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.005087, allocations: 0 / 383.2 MB, free: 19.21 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.763e-05/0.005135, allocations: 101.1 kB / 383.3 MB, free: 19.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.005136, allocations: 0 / 383.3 MB, free: 19.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.005136, allocations: 0 / 383.3 MB, free: 19.09 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.005138, allocations: 0 / 383.3 MB, free: 19.09 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.208e-06/0.005142, allocations: 0 / 383.3 MB, free: 19.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.005143, allocations: 0 / 383.3 MB, free: 19.09 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.005144, allocations: 4 kB / 383.3 MB, free: 19.09 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.208e-05/0.005226, allocations: 139.7 kB / 383.4 MB, free: 18.91 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.314e-06/0.005234, allocations: 3.984 kB / 383.4 MB, free: 18.91 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.197e-05/0.005246, allocations: 3.984 kB / 383.4 MB, free: 18.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.097e-06/0.005255, allocations: 0 / 383.4 MB, free: 18.91 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.969e-06/0.005265, allocations: 4 kB / 383.4 MB, free: 18.9 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-06/0.005268, allocations: 0 / 383.4 MB, free: 18.9 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.679e-05/0.005285, allocations: 119.2 kB / 383.5 MB, free: 18.79 MB / 314.7 MB Notification: Performance of sort global known variables: time 1e-07/0.005285, allocations: 0 / 383.5 MB, free: 18.79 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002276/0.005512, allocations: 20.06 kB / 383.5 MB, free: 18.77 MB / 314.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.0004153/0.005928, allocations: 207.5 kB / 383.7 MB, free: 18.59 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 8.41e-05/0.006012, allocations: 122.5 kB / 383.9 MB, free: 18.44 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.006013, allocations: 0 / 383.9 MB, free: 18.44 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.271e-05/0.006036, allocations: 92.78 kB / 384 MB, free: 18.33 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001334/0.006169, allocations: 3.938 kB / 384 MB, free: 18.32 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001491/0.006319, allocations: 117 kB / 384.1 MB, free: 18.18 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.034e-05/0.006339, allocations: 59.2 kB / 384.1 MB, free: 18.1 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.941e-06/0.006345, allocations: 0 / 384.1 MB, free: 18.1 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.874e-05/0.006384, allocations: 78.31 kB / 384.2 MB, free: 18.02 MB / 314.7 MB Notification: Performance of SimCode: time 6.51e-07/0.006384, allocations: 0 / 384.2 MB, free: 18.02 MB / 314.7 MB Notification: Performance of Templates: time 0.002972/0.009356, allocations: 0.7762 MB / 385 MB, free: 17.25 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.216111175250262]