Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.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.0009778/0.0009778, allocations: 81.97 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.001112/0.001112, allocations: 163.9 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.9303/0.9303, allocations: 177.2 MB / 206.1 MB, free: 4.473 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.1291/0.1291, allocations: 32.8 MB / 295.4 MB, free: 15.38 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.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.072e-06/1.072e-06, allocations: 0 / 377.2 MB, free: 25.63 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.266e-05/1.374e-05, allocations: 2.312 kB / 377.2 MB, free: 25.62 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0008609/0.0008747, allocations: 0.5042 MB / 377.7 MB, free: 25.12 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003526/0.001227, allocations: 215.5 kB / 377.9 MB, free: 24.91 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.426e-05/0.001252, allocations: 0 / 377.9 MB, free: 24.91 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.461e-05/0.001266, allocations: 0 / 377.9 MB, free: 24.91 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 6.452e-06/0.001273, allocations: 4 kB / 377.9 MB, free: 24.91 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:290:3-321:16:writable] Warning: Pure function 'ModelicaTest.Utilities.WriteFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0002287/0.001501, allocations: 47.77 kB / 378 MB, free: 24.86 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 4.348e-05/0.001545, allocations: 0 / 378 MB, free: 24.86 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.395e-05/0.001579, allocations: 0 / 378 MB, free: 24.86 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.119e-05/0.0016, allocations: 4 kB / 378 MB, free: 24.86 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.42e-05/0.001624, allocations: 3.984 kB / 378 MB, free: 24.86 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.971e-06/0.00163, allocations: 0 / 378 MB, free: 24.86 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.527e-05/0.001715, allocations: 47.95 kB / 378 MB, free: 24.81 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 6.703e-06/0.001722, allocations: 3.938 kB / 378 MB, free: 24.8 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.343e-05/0.001735, allocations: 3.984 kB / 378.1 MB, free: 24.8 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 8.368e-05/0.001819, allocations: 51.81 kB / 378.1 MB, free: 24.75 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.943e-06/0.001821, allocations: 4 kB / 378.1 MB, free: 24.75 MB / 314.7 MB Notification: Performance of FrontEnd: time 7.22e-07/0.001822, allocations: 0 / 378.1 MB, free: 24.75 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.887e-06/0.001826, allocations: 0 / 378.1 MB, free: 24.75 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.0001808/0.002007, allocations: 378 kB / 378.5 MB, free: 24.33 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.809e-05/0.002035, allocations: 15.97 kB / 378.5 MB, free: 24.32 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.725e-05/0.002062, allocations: 0.9375 kB / 378.5 MB, free: 24.32 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.437e-05/0.002096, allocations: 108.6 kB / 378.6 MB, free: 24.18 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.026e-05/0.002106, allocations: 4.375 kB / 378.6 MB, free: 24.18 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.35e-06/0.002112, allocations: 384 / 378.6 MB, free: 24.18 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.026e-05/0.002162, allocations: 55.97 kB / 378.7 MB, free: 24.11 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.182e-06/0.002168, allocations: 4.188 kB / 378.7 MB, free: 24.11 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.689e-06/0.002173, allocations: 384 / 378.7 MB, free: 24.11 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.002178, allocations: 4.359 kB / 378.7 MB, free: 24.11 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.989e-06/0.002188, allocations: 33.58 kB / 378.7 MB, free: 24.07 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.1e-05/0.002239, allocations: 101.2 kB / 378.8 MB, free: 23.94 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.924e-05/0.002268, allocations: 52.7 kB / 378.9 MB, free: 23.87 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.747e-06/0.002277, allocations: 37.48 kB / 378.9 MB, free: 23.82 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.315e-06/0.002279, allocations: 0 / 378.9 MB, free: 23.82 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.837e-05/0.002297, allocations: 59.09 kB / 378.9 MB, free: 23.75 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 4.71e-07/0.002298, allocations: 0 / 378.9 MB, free: 23.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001072/0.002405, allocations: 122.7 kB / 379.1 MB, free: 23.61 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.076e-05/0.002426, allocations: 81.11 kB / 379.1 MB, free: 23.51 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.789e-05/0.002444, allocations: 142.2 kB / 379.3 MB, free: 23.36 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.148e-06/0.002448, allocations: 29.7 kB / 379.3 MB, free: 23.32 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.548e-06/0.002457, allocations: 126.9 kB / 379.4 MB, free: 23.19 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.253e-05/0.00247, allocations: 3.938 kB / 379.4 MB, free: 23.19 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.735e-05/0.002487, allocations: 19.38 kB / 379.5 MB, free: 23.16 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 3.8e-05/0.002525, allocations: 0.4883 MB / 379.9 MB, free: 22.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.015e-06/0.002533, allocations: 25.7 kB / 380 MB, free: 22.63 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.953e-06/0.00254, allocations: 29.7 kB / 380 MB, free: 22.59 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.34e-05/0.002564, allocations: 67.28 kB / 380.1 MB, free: 22.51 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.002565, allocations: 7.938 kB / 380.1 MB, free: 22.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.473e-05/0.0026, allocations: 89.09 kB / 380.2 MB, free: 22.4 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.002617, allocations: 29.7 kB / 380.2 MB, free: 22.36 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.156e-06/0.002621, allocations: 0 / 380.2 MB, free: 22.36 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.883e-06/0.002627, allocations: 0 / 380.2 MB, free: 22.36 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.91e-07/0.002628, allocations: 0 / 380.2 MB, free: 22.36 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.024e-06/0.00263, allocations: 0 / 380.2 MB, free: 22.36 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.01e-05/0.00264, allocations: 8 kB / 380.2 MB, free: 22.36 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.987e-06/0.002644, allocations: 0 / 380.2 MB, free: 22.36 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 3.341e-05/0.002678, allocations: 190.2 kB / 380.4 MB, free: 22.15 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.709e-06/0.002682, allocations: 4.344 kB / 380.4 MB, free: 22.15 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.432e-06/0.002689, allocations: 6.984 kB / 380.4 MB, free: 22.14 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.32e-07/0.00269, allocations: 0 / 380.4 MB, free: 22.14 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-06/0.002691, allocations: 0 / 380.4 MB, free: 22.14 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.002693, allocations: 0 / 380.4 MB, free: 22.14 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.152e-05/0.002725, allocations: 97.2 kB / 380.5 MB, free: 22.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.81e-07/0.002725, allocations: 0 / 380.5 MB, free: 22.02 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.6e-07/0.002725, allocations: 0 / 380.5 MB, free: 22.02 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.31e-07/0.002726, allocations: 0 / 380.5 MB, free: 22.02 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.206e-06/0.002729, allocations: 4 kB / 380.5 MB, free: 22.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.11e-07/0.00273, allocations: 7.875 kB / 380.5 MB, free: 22.01 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.00273, allocations: 0 / 380.5 MB, free: 22.01 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.41e-05/0.002774, allocations: 139.7 kB / 380.6 MB, free: 21.84 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.036e-06/0.002777, allocations: 0 / 380.6 MB, free: 21.84 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.576e-06/0.002786, allocations: 0 / 380.6 MB, free: 21.84 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.837e-06/0.00279, allocations: 0 / 380.6 MB, free: 21.84 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.286e-06/0.002798, allocations: 7.984 kB / 380.6 MB, free: 21.83 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.413e-06/0.002799, allocations: 0 / 380.6 MB, free: 21.83 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.217e-05/0.002812, allocations: 123.2 kB / 380.8 MB, free: 21.71 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.002812, allocations: 32 / 380.8 MB, free: 21.71 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001383/0.00295, allocations: 19.94 kB / 380.8 MB, free: 21.69 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.0002901/0.00324, allocations: 204.8 kB / 381 MB, free: 21.52 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 6.603e-05/0.003306, allocations: 126.4 kB / 381.1 MB, free: 21.37 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.71e-07/0.003307, allocations: 0 / 381.1 MB, free: 21.37 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.539e-05/0.003322, allocations: 88.8 kB / 381.2 MB, free: 21.26 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.48e-05/0.003407, allocations: 7.938 kB / 381.2 MB, free: 21.25 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001093/0.003517, allocations: 103.6 kB / 381.3 MB, free: 21.11 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.453e-05/0.003531, allocations: 59.2 kB / 381.4 MB, free: 21.04 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.458e-06/0.003536, allocations: 4.125 kB / 381.4 MB, free: 21.03 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.292e-05/0.003558, allocations: 70.2 kB / 381.4 MB, free: 20.96 MB / 314.7 MB Notification: Performance of SimCode: time 3.91e-07/0.003559, allocations: 0 / 381.4 MB, free: 20.96 MB / 314.7 MB Notification: Performance of Templates: time 0.001839/0.005398, allocations: 0.6953 MB / 382.1 MB, free: 20.27 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.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.0703687011264265]