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.0008204/0.0008204, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.003186/0.003186, allocations: 160.5 kB / 24.7 MB, free: 9.426 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.8544/0.8544, allocations: 177.1 MB / 205 MB, free: 5.742 MB / 186.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.2758/0.2758, allocations: 32.79 MB / 294.2 MB, free: 1.215 MB / 266.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 1.423e-06/1.423e-06, allocations: 0 / 440.8 MB, free: 3.793 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.004e-05/3.146e-05, allocations: 8.328 kB / 440.8 MB, free: 3.785 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0009917/0.001023, allocations: 496.9 kB / 441.3 MB, free: 3.301 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008274/0.001851, allocations: 0.8688 MB / 442.2 MB, free: 2.43 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.384e-05/0.001874, allocations: 0 / 442.2 MB, free: 2.43 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.524e-05/0.00189, allocations: 0 / 442.2 MB, free: 2.43 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001974/0.002087, allocations: 11.94 kB / 442.2 MB, free: 2.418 MB / 410.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.0005229/0.00261, allocations: 70.41 kB / 442.2 MB, free: 2.352 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.586e-05/0.002666, allocations: 0 / 442.2 MB, free: 2.352 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.564e-05/0.002701, allocations: 4 kB / 442.3 MB, free: 2.348 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.871e-05/0.00273, allocations: 3.938 kB / 442.3 MB, free: 2.344 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.424e-05/0.002774, allocations: 0 / 442.3 MB, free: 2.344 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.556e-06/0.002783, allocations: 0 / 442.3 MB, free: 2.344 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001093/0.002892, allocations: 55.94 kB / 442.3 MB, free: 2.289 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 8.306e-06/0.002901, allocations: 4 kB / 442.3 MB, free: 2.285 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.956e-05/0.00292, allocations: 3.984 kB / 442.3 MB, free: 2.281 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001546/0.003075, allocations: 55.8 kB / 442.4 MB, free: 2.227 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.003078, allocations: 4 kB / 442.4 MB, free: 2.223 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.003079, allocations: 4 kB / 442.4 MB, free: 2.219 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.028e-06/0.003083, allocations: 4 kB / 442.4 MB, free: 2.215 MB / 410.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.0002801/0.003364, allocations: 276 kB / 442.7 MB, free: 1.906 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.003398, allocations: 8.031 kB / 442.7 MB, free: 1.898 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.197e-05/0.00343, allocations: 4.891 kB / 442.7 MB, free: 1.895 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.505e-05/0.003505, allocations: 105.8 kB / 442.8 MB, free: 1.766 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.065e-05/0.003516, allocations: 384 / 442.8 MB, free: 1.766 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.003e-06/0.003523, allocations: 4.312 kB / 442.8 MB, free: 1.762 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.021e-05/0.003603, allocations: 59.97 kB / 442.8 MB, free: 1.691 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.362e-06/0.003609, allocations: 4.125 kB / 442.8 MB, free: 1.688 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-06/0.003618, allocations: 4.375 kB / 442.8 MB, free: 1.684 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.003622, allocations: 384 / 442.8 MB, free: 1.684 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.385e-05/0.003646, allocations: 37.62 kB / 442.9 MB, free: 1.641 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.142e-05/0.003737, allocations: 93.33 kB / 443 MB, free: 1.52 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.328e-05/0.00378, allocations: 44.31 kB / 443 MB, free: 1.461 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.876e-05/0.003799, allocations: 34.56 kB / 443 MB, free: 1.418 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.274e-06/0.003806, allocations: 0 / 443 MB, free: 1.418 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.758e-05/0.003844, allocations: 60.33 kB / 443.1 MB, free: 1.344 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 6.41e-07/0.003844, allocations: 0 / 443.1 MB, free: 1.344 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001631/0.004008, allocations: 118.7 kB / 443.2 MB, free: 1.203 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.598e-05/0.004044, allocations: 81.23 kB / 443.3 MB, free: 1.105 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.156e-05/0.004105, allocations: 105.8 kB / 443.4 MB, free: 0.9922 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.185e-06/0.004113, allocations: 25.7 kB / 443.4 MB, free: 0.9609 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.059e-05/0.004134, allocations: 80.14 kB / 443.5 MB, free: 0.8789 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.488e-05/0.004149, allocations: 0 / 443.5 MB, free: 0.8789 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.115e-05/0.00417, allocations: 13.72 kB / 443.5 MB, free: 0.8594 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.512e-05/0.004245, allocations: 310.8 kB / 443.8 MB, free: 0.5469 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.686e-05/0.004262, allocations: 29.7 kB / 443.9 MB, free: 0.5117 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.511e-05/0.004277, allocations: 37.64 kB / 443.9 MB, free: 480 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.624e-05/0.004313, allocations: 72.38 kB / 444 MB, free: 392 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.004315, allocations: 0 / 444 MB, free: 392 kB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.221e-05/0.004367, allocations: 85.11 kB / 444 MB, free: 288 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.03e-05/0.004397, allocations: 35.89 kB / 444.1 MB, free: 248 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.004402, allocations: 0 / 444.1 MB, free: 248 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.119e-05/0.004413, allocations: 0 / 444.1 MB, free: 248 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.072e-06/0.004414, allocations: 0 / 444.1 MB, free: 248 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.004421, allocations: 4 kB / 444.1 MB, free: 244 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.355e-05/0.004435, allocations: 7.922 kB / 444.1 MB, free: 236 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.164e-06/0.004442, allocations: 0 / 444.1 MB, free: 236 kB / 410.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.068e-05/0.004503, allocations: 139.6 kB / 444.2 MB, free: 80 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.868e-06/0.004506, allocations: 0 / 444.2 MB, free: 80 kB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.016e-05/0.004517, allocations: 3 kB / 444.2 MB, free: 72 kB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.004518, allocations: 0 / 444.2 MB, free: 72 kB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.004523, allocations: 0 / 444.2 MB, free: 72 kB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.004526, allocations: 3.938 kB / 444.2 MB, free: 68 kB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1789/0.1834, allocations: 100.8 kB / 444.3 MB, free: 46.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.1834, allocations: 0 / 444.3 MB, free: 46.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.232e-06/0.1834, allocations: 0 / 444.3 MB, free: 46.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.1834, allocations: 2.531 kB / 444.3 MB, free: 46.55 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.1834, allocations: 5.266 kB / 444.3 MB, free: 46.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.1834, allocations: 3.25 kB / 444.3 MB, free: 46.55 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1834, allocations: 1.656 kB / 444.3 MB, free: 46.55 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.685e-05/0.1835, allocations: 120.8 kB / 444.5 MB, free: 46.42 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.269e-06/0.1835, allocations: 2.75 kB / 444.5 MB, free: 46.42 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.598e-06/0.1836, allocations: 0 / 444.5 MB, free: 46.42 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.288e-06/0.1836, allocations: 3.094 kB / 444.5 MB, free: 46.42 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.202e-05/0.1836, allocations: 1.031 kB / 444.5 MB, free: 46.42 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.158e-06/0.1836, allocations: 7.797 kB / 444.5 MB, free: 46.42 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.184e-05/0.1836, allocations: 78.47 kB / 444.6 MB, free: 46.35 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1836, allocations: 3.125 kB / 444.6 MB, free: 46.35 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001614/0.1837, allocations: 17.27 kB / 444.6 MB, free: 46.35 MB / 410.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.0003362/0.1841, allocations: 197.4 kB / 444.8 MB, free: 46.26 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.764e-05/0.1842, allocations: 117.8 kB / 444.9 MB, free: 46.14 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.1842, allocations: 2.438 kB / 444.9 MB, free: 46.14 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.319e-05/0.1842, allocations: 80.58 kB / 445 MB, free: 46.04 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000102/0.1843, allocations: 3.531 kB / 445 MB, free: 46.04 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001484/0.1844, allocations: 142.2 kB / 445.1 MB, free: 45.89 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.442e-05/0.1845, allocations: 56.8 kB / 445.2 MB, free: 45.82 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.417e-06/0.1845, allocations: 12 kB / 445.2 MB, free: 45.82 MB / 410.7 MB Notification: Performance of SimCode: time 5.31e-07/0.1845, allocations: 0 / 445.2 MB, free: 45.82 MB / 410.7 MB Notification: Performance of Templates: time 0.001861/0.1863, allocations: 0.8283 MB / 446 MB, free: 45.78 MB / 410.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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 5.007543710060418]