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.001423/0.001423, allocations: 84 kB / 20.68 MB, free: 1.023 MB / 14.72 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.001477/0.001477, allocations: 163.6 kB / 23.95 MB, free: 4.156 MB / 14.72 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.594/1.594, allocations: 177.1 MB / 204.3 MB, free: 9.172 MB / 190.1 MB " [Timeout remaining time 178] 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.219/0.219, allocations: 34.28 MB / 294.9 MB, free: 14.57 MB / 286.1 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.563e-06/1.563e-06, allocations: 0 / 442.6 MB, free: 5.43 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.398e-05/2.554e-05, allocations: 2.281 kB / 442.6 MB, free: 5.426 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001428/0.001454, allocations: 492.5 kB / 443.1 MB, free: 4.949 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001312/0.002766, allocations: 0.8764 MB / 444 MB, free: 4.07 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.219e-05/0.002788, allocations: 3.938 kB / 444 MB, free: 4.066 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.574e-05/0.002803, allocations: 0 / 444 MB, free: 4.066 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000173/0.002976, allocations: 11.88 kB / 444 MB, free: 4.055 MB / 366.1 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.0005766/0.003553, allocations: 62.19 kB / 444.1 MB, free: 3.996 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 5.391e-05/0.003607, allocations: 8 kB / 444.1 MB, free: 3.988 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.545e-05/0.003642, allocations: 0 / 444.1 MB, free: 3.988 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.241e-05/0.003665, allocations: 0 / 444.1 MB, free: 3.988 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.911e-05/0.003724, allocations: 8 kB / 444.1 MB, free: 3.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.855e-06/0.003732, allocations: 0 / 444.1 MB, free: 3.98 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001376/0.003869, allocations: 59.81 kB / 444.1 MB, free: 3.922 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.927e-06/0.003878, allocations: 3.938 kB / 444.2 MB, free: 3.918 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 1.488e-05/0.003893, allocations: 0 / 444.2 MB, free: 3.918 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001683/0.004062, allocations: 63.84 kB / 444.2 MB, free: 3.855 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.004064, allocations: 0 / 444.2 MB, free: 3.855 MB / 366.1 MB Notification: Performance of FrontEnd: time 6.81e-07/0.004064, allocations: 0 / 444.2 MB, free: 3.855 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.307e-06/0.004068, allocations: 0 / 444.2 MB, free: 3.855 MB / 366.1 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.0003682/0.004436, allocations: 276 kB / 444.5 MB, free: 3.547 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.196e-05/0.004468, allocations: 8.031 kB / 444.5 MB, free: 3.539 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.033e-05/0.004498, allocations: 8.938 kB / 444.5 MB, free: 3.531 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001088/0.004607, allocations: 105.7 kB / 444.6 MB, free: 3.402 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.943e-06/0.004614, allocations: 384 / 444.6 MB, free: 3.402 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.104e-05/0.004625, allocations: 384 / 444.6 MB, free: 3.402 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.885e-05/0.004714, allocations: 55.97 kB / 444.7 MB, free: 3.336 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.814e-06/0.004722, allocations: 192 / 444.7 MB, free: 3.336 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.402e-06/0.004728, allocations: 384 / 444.7 MB, free: 3.336 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.326e-06/0.004731, allocations: 384 / 444.7 MB, free: 3.336 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.469e-05/0.004776, allocations: 45.56 kB / 444.7 MB, free: 3.285 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001144/0.00489, allocations: 97.27 kB / 444.8 MB, free: 3.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.525e-05/0.004946, allocations: 48.31 kB / 444.8 MB, free: 3.098 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.616e-05/0.004982, allocations: 30.56 kB / 444.9 MB, free: 3.059 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.82e-06/0.004988, allocations: 8 kB / 444.9 MB, free: 3.051 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.824e-05/0.005036, allocations: 60.27 kB / 444.9 MB, free: 2.977 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.005037, allocations: 0 / 444.9 MB, free: 2.977 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.000225/0.005262, allocations: 122.7 kB / 445.1 MB, free: 2.832 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.444e-05/0.005316, allocations: 81.11 kB / 445.1 MB, free: 2.734 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.703e-05/0.005393, allocations: 97.8 kB / 445.2 MB, free: 2.629 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.334e-05/0.005417, allocations: 29.69 kB / 445.3 MB, free: 2.594 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.783e-05/0.005455, allocations: 80.39 kB / 445.3 MB, free: 2.512 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.175e-05/0.005466, allocations: 4 kB / 445.4 MB, free: 2.508 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.84e-05/0.005495, allocations: 13.72 kB / 445.4 MB, free: 2.488 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.005641, allocations: 310.8 kB / 445.7 MB, free: 2.176 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.726e-05/0.005669, allocations: 29.7 kB / 445.7 MB, free: 2.141 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.872e-05/0.005697, allocations: 25.7 kB / 445.7 MB, free: 2.109 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.476e-05/0.005752, allocations: 68.2 kB / 445.8 MB, free: 2.027 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.005754, allocations: 0 / 445.8 MB, free: 2.027 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.704e-05/0.005851, allocations: 89.09 kB / 445.9 MB, free: 1.922 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.802e-05/0.005889, allocations: 29.7 kB / 445.9 MB, free: 1.887 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.005896, allocations: 8.094 kB / 445.9 MB, free: 1.879 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.005912, allocations: 0 / 445.9 MB, free: 1.879 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-07/0.005912, allocations: 0 / 445.9 MB, free: 1.879 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.637e-06/0.005916, allocations: 0 / 445.9 MB, free: 1.879 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.572e-05/0.005932, allocations: 3.938 kB / 445.9 MB, free: 1.875 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.455e-06/0.00594, allocations: 3.984 kB / 445.9 MB, free: 1.871 MB / 366.1 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 9.86e-05/0.006039, allocations: 139.5 kB / 446.1 MB, free: 1.719 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.945e-06/0.006047, allocations: 0 / 446.1 MB, free: 1.719 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.013e-05/0.006057, allocations: 3 kB / 446.1 MB, free: 1.715 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.006058, allocations: 0 / 446.1 MB, free: 1.715 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.006061, allocations: 8 kB / 446.1 MB, free: 1.707 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.177e-06/0.006065, allocations: 3.938 kB / 446.1 MB, free: 1.703 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.75e-05/0.006153, allocations: 97.31 kB / 446.2 MB, free: 1.578 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.006153, allocations: 0 / 446.2 MB, free: 1.578 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.324e-06/0.006156, allocations: 7.938 kB / 446.2 MB, free: 1.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.006159, allocations: 4 kB / 446.2 MB, free: 1.566 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.612e-06/0.006166, allocations: 0 / 446.2 MB, free: 1.566 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.006167, allocations: 0 / 446.2 MB, free: 1.566 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.006167, allocations: 3.938 kB / 446.2 MB, free: 1.562 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001272/0.006295, allocations: 128.4 kB / 446.3 MB, free: 1.406 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.607e-06/0.006298, allocations: 4.031 kB / 446.3 MB, free: 1.402 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.336e-05/0.006312, allocations: 4 kB / 446.3 MB, free: 1.398 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.616e-06/0.00632, allocations: 0 / 446.3 MB, free: 1.398 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.334e-05/0.006334, allocations: 0 / 446.3 MB, free: 1.398 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.006336, allocations: 0 / 446.3 MB, free: 1.398 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.669e-05/0.006383, allocations: 79.28 kB / 446.4 MB, free: 1.32 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.006383, allocations: 0 / 446.4 MB, free: 1.32 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002207/0.006604, allocations: 27.86 kB / 446.4 MB, free: 1.293 MB / 366.1 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.0004629/0.007067, allocations: 196.5 kB / 446.6 MB, free: 1.129 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001348/0.007201, allocations: 114.7 kB / 446.7 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.007203, allocations: 4.062 kB / 446.7 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.775e-05/0.007261, allocations: 85.11 kB / 446.8 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001329/0.007394, allocations: 4 kB / 446.8 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001959/0.00759, allocations: 110.5 kB / 446.9 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001059/0.007696, allocations: 55.36 kB / 447 MB, free: 0.668 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.33e-06/0.007701, allocations: 0 / 447 MB, free: 0.668 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.249e-05/0.007714, allocations: 8.5 kB / 447 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of SimCode: time 3.7e-07/0.007714, allocations: 0 / 447 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of Templates: time 0.1744/0.1821, allocations: 0.6678 MB / 447.7 MB, free: 19.36 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.914720471948385]