Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001122/0.001122, allocations: 91.5 kB / 21.2 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001745/0.001745, allocations: 160.5 kB / 24.55 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9039/0.9039, allocations: 177 MB / 204.8 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2543/0.2543, allocations: 34.86 MB / 296.3 MB, free: 0.5234 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.302e-06/1.302e-06, allocations: 0 / 378.7 MB, free: 2.141 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.53e-05/1.66e-05, allocations: 2.312 kB / 378.7 MB, free: 2.137 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0009694/0.000986, allocations: 0.4911 MB / 379.2 MB, free: 1.645 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008889/0.001875, allocations: 0.9039 MB / 380.1 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.705e-05/0.001902, allocations: 4 kB / 380.1 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.128e-05/0.001923, allocations: 0 / 380.1 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002079/0.002131, allocations: 11.94 kB / 380.1 MB, free: 0.7227 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:333:3-373: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.0004461/0.002577, allocations: 64.7 kB / 380.2 MB, free: 0.668 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.443e-05/0.002632, allocations: 0 / 380.2 MB, free: 0.668 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.884e-05/0.002661, allocations: 4 kB / 380.2 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.669e-05/0.002687, allocations: 7.922 kB / 380.2 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.923e-05/0.002736, allocations: 0 / 380.2 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.145e-06/0.002745, allocations: 0 / 380.2 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001073/0.002852, allocations: 59.88 kB / 380.3 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 7.344e-06/0.002859, allocations: 4 kB / 380.3 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.73e-05/0.002877, allocations: 4 kB / 380.3 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001325/0.003009, allocations: 55.86 kB / 380.3 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.653e-06/0.003011, allocations: 0 / 380.3 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.003011, allocations: 0 / 380.3 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.687e-06/0.003015, allocations: 4 kB / 380.3 MB, free: 0.5312 MB / 346.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.0002814/0.003296, allocations: 381.9 kB / 380.7 MB, free: 116 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.003331, allocations: 8.031 kB / 380.7 MB, free: 108 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.431e-05/0.003366, allocations: 0.9375 kB / 380.7 MB, free: 108 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.61e-05/0.003452, allocations: 112.6 kB / 380.8 MB, free: 15.97 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.959e-06/0.003462, allocations: 384 / 380.8 MB, free: 15.97 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.354e-06/0.003469, allocations: 4.375 kB / 380.8 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.105e-05/0.00354, allocations: 55.97 kB / 380.9 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.003548, allocations: 4.188 kB / 380.9 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.624e-06/0.003556, allocations: 384 / 380.9 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.003563, allocations: 384 / 380.9 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.931e-05/0.003582, allocations: 37.62 kB / 380.9 MB, free: 15.85 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.443e-05/0.003666, allocations: 112.9 kB / 381 MB, free: 15.71 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.074e-05/0.003717, allocations: 60.73 kB / 381.1 MB, free: 15.63 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.909e-05/0.003736, allocations: 37.39 kB / 381.1 MB, free: 15.58 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.278e-06/0.003741, allocations: 0 / 381.1 MB, free: 15.58 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.326e-05/0.003774, allocations: 67.16 kB / 381.2 MB, free: 15.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 7.41e-07/0.003775, allocations: 0 / 381.2 MB, free: 15.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001595/0.003934, allocations: 122.8 kB / 381.3 MB, free: 15.36 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.913e-05/0.003983, allocations: 81.05 kB / 381.4 MB, free: 15.26 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.81e-05/0.004051, allocations: 161.9 kB / 381.6 MB, free: 15.08 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.637e-05/0.004078, allocations: 25.7 kB / 381.6 MB, free: 15.05 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.698e-05/0.004105, allocations: 126.9 kB / 381.7 MB, free: 14.92 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.449e-05/0.004119, allocations: 3.984 kB / 381.7 MB, free: 14.92 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.213e-05/0.004141, allocations: 19.38 kB / 381.7 MB, free: 14.89 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.004267, allocations: 496.4 kB / 382.2 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.392e-05/0.004281, allocations: 29.7 kB / 382.2 MB, free: 14.36 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.242e-05/0.004294, allocations: 29.7 kB / 382.3 MB, free: 14.32 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.148e-05/0.004325, allocations: 67.08 kB / 382.3 MB, free: 14.24 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.004327, allocations: 0 / 382.3 MB, free: 14.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.276e-05/0.004379, allocations: 89.11 kB / 382.4 MB, free: 14.14 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.004401, allocations: 33.64 kB / 382.5 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.004405, allocations: 0 / 382.5 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.004417, allocations: 0 / 382.5 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.436e-06/0.00442, allocations: 0 / 382.5 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.588e-06/0.004425, allocations: 8.094 kB / 382.5 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.101e-05/0.004436, allocations: 7.922 kB / 382.5 MB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.281e-06/0.004442, allocations: 3.984 kB / 382.5 MB, free: 14.08 MB / 362.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 6.021e-05/0.004502, allocations: 182.3 kB / 382.7 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.428e-06/0.004507, allocations: 0 / 382.7 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.544e-06/0.004514, allocations: 3 kB / 382.7 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-06/0.004516, allocations: 0 / 382.7 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.004519, allocations: 0 / 382.7 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.004522, allocations: 7.938 kB / 382.7 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.115e-05/0.004573, allocations: 108.6 kB / 382.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.82e-07/0.004574, allocations: 4 kB / 382.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.1e-07/0.004574, allocations: 0 / 382.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.21e-07/0.004575, allocations: 0 / 382.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.282e-06/0.004581, allocations: 7.938 kB / 382.8 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.31e-07/0.004582, allocations: 0 / 382.8 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.004583, allocations: 0 / 382.8 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001346/0.004717, allocations: 135.7 kB / 382.9 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.168e-06/0.004721, allocations: 4 kB / 382.9 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.187e-05/0.004733, allocations: 0 / 382.9 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.769e-06/0.004738, allocations: 4 kB / 382.9 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.089e-05/0.004749, allocations: 8.031 kB / 382.9 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.512e-06/0.00475, allocations: 0 / 382.9 MB, free: 13.54 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.655e-05/0.004777, allocations: 123.2 kB / 383.1 MB, free: 13.42 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004777, allocations: 0 / 383.1 MB, free: 13.42 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001369/0.004914, allocations: 23.86 kB / 383.1 MB, free: 13.39 MB / 362.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.0003052/0.005219, allocations: 195 kB / 383.3 MB, free: 13.22 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.604e-05/0.005305, allocations: 122.5 kB / 383.4 MB, free: 13.07 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.005307, allocations: 0 / 383.4 MB, free: 13.07 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.557e-05/0.005332, allocations: 88.8 kB / 383.5 MB, free: 12.96 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.333e-05/0.005425, allocations: 16.05 kB / 383.5 MB, free: 12.95 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001614/0.005587, allocations: 119 kB / 383.6 MB, free: 12.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.537e-05/0.005612, allocations: 51.36 kB / 383.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.418e-06/0.005617, allocations: 0 / 383.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.089e-05/0.005628, allocations: 12.5 kB / 383.7 MB, free: 12.71 MB / 362.7 MB Notification: Performance of SimCode: time 4.01e-07/0.005628, allocations: 0 / 383.7 MB, free: 12.71 MB / 362.7 MB Notification: Performance of Templates: time 0.002193/0.007821, allocations: 0.7639 MB / 384.4 MB, free: 11.96 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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: 2.8579280921258032]