Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.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.0006783/0.0006783, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001102/0.001781, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.0006862/0.0006862, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008989/0.001585, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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.9291/0.9291, allocations: 177.4 MB / 189.9 MB, free: 4.824 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08905/1.018, allocations: 53.86 MB / 243.7 MB, free: 14.9 MB / 250.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.2515/0.2515, allocations: 34.85 MB / 279.3 MB, free: 14.91 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02332/0.2748, allocations: 13.23 MB / 292.6 MB, free: 6.461 MB / 282.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.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 293.8 MB, free: 5.211 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.476e-05/1.633e-05, allocations: 6.25 kB / 293.8 MB, free: 5.203 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001226/0.001243, allocations: 0.5258 MB / 294.4 MB, free: 4.68 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003605/0.001603, allocations: 231.7 kB / 294.6 MB, free: 4.457 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.157e-05/0.001615, allocations: 0 / 294.6 MB, free: 4.457 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.496e-06/0.001618, allocations: 0 / 294.6 MB, free: 4.457 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.01e-07/0.001619, allocations: 4 kB / 294.6 MB, free: 4.453 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:300:3-331: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.0001437/0.001763, allocations: 47.72 kB / 294.6 MB, free: 4.406 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.677e-05/0.00182, allocations: 7.984 kB / 294.6 MB, free: 4.398 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.277e-05/0.001852, allocations: 0 / 294.6 MB, free: 4.398 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.15e-05/0.001884, allocations: 4 kB / 294.6 MB, free: 4.395 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.875e-05/0.001913, allocations: 0 / 294.6 MB, free: 4.395 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.593e-06/0.001919, allocations: 0 / 294.6 MB, free: 4.395 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001261/0.002045, allocations: 55.88 kB / 294.7 MB, free: 4.34 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.533e-06/0.002052, allocations: 0 / 294.7 MB, free: 4.34 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.261e-05/0.002064, allocations: 3.938 kB / 294.7 MB, free: 4.336 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001072/0.002172, allocations: 43.84 kB / 294.8 MB, free: 4.293 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.435e-05/0.002186, allocations: 4 kB / 294.8 MB, free: 4.289 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.002187, allocations: 0 / 294.8 MB, free: 4.289 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.627e-05/0.002203, allocations: 0 / 294.8 MB, free: 4.289 MB / 282.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.0002761/0.002479, allocations: 262.3 kB / 295 MB, free: 4 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.002515, allocations: 8.922 kB / 295 MB, free: 3.992 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.317e-05/0.002548, allocations: 0.9375 kB / 295 MB, free: 3.992 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.234e-05/0.002611, allocations: 105.8 kB / 295.1 MB, free: 3.863 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.117e-06/0.00262, allocations: 4.375 kB / 295.1 MB, free: 3.859 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.021e-06/0.002626, allocations: 384 / 295.1 MB, free: 3.859 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.169e-05/0.002698, allocations: 55.97 kB / 295.2 MB, free: 3.793 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-06/0.002704, allocations: 4.125 kB / 295.2 MB, free: 3.789 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.22e-06/0.002709, allocations: 4.375 kB / 295.2 MB, free: 3.785 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.129e-06/0.002714, allocations: 4.312 kB / 295.2 MB, free: 3.781 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.355e-05/0.002738, allocations: 37.62 kB / 295.2 MB, free: 3.738 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.581e-05/0.002804, allocations: 53.05 kB / 295.3 MB, free: 3.672 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.229e-05/0.002846, allocations: 44.31 kB / 295.3 MB, free: 3.613 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.602e-05/0.002862, allocations: 30.56 kB / 295.4 MB, free: 3.574 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.387e-06/0.002866, allocations: 0 / 295.4 MB, free: 3.574 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.817e-05/0.002904, allocations: 64.33 kB / 295.4 MB, free: 3.496 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 6.12e-07/0.002904, allocations: 0 / 295.4 MB, free: 3.496 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001175/0.003022, allocations: 122.7 kB / 295.5 MB, free: 3.352 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.612e-05/0.003058, allocations: 77.11 kB / 295.6 MB, free: 3.258 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.333e-05/0.003091, allocations: 89.86 kB / 295.7 MB, free: 3.16 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.398e-06/0.003101, allocations: 25.7 kB / 295.7 MB, free: 3.129 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.199e-05/0.003123, allocations: 80.14 kB / 295.8 MB, free: 3.047 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.502e-05/0.003138, allocations: 0.6875 kB / 295.8 MB, free: 3.047 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.721e-05/0.003165, allocations: 13.72 kB / 295.8 MB, free: 3.027 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.955e-05/0.003254, allocations: 326.8 kB / 296.1 MB, free: 2.699 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.803e-05/0.003272, allocations: 29.7 kB / 296.2 MB, free: 2.664 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.292e-05/0.003285, allocations: 25.7 kB / 296.2 MB, free: 2.633 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.621e-05/0.003332, allocations: 72.39 kB / 296.3 MB, free: 2.547 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.003333, allocations: 0 / 296.3 MB, free: 2.547 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.099e-05/0.003394, allocations: 93.09 kB / 296.4 MB, free: 2.438 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.823e-05/0.003432, allocations: 32.2 kB / 296.4 MB, free: 2.402 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.003437, allocations: 0 / 296.4 MB, free: 2.402 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.817e-06/0.003446, allocations: 0 / 296.4 MB, free: 2.402 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.779e-06/0.003451, allocations: 0 / 296.4 MB, free: 2.402 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.787e-06/0.003454, allocations: 4 kB / 296.4 MB, free: 2.398 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.803e-05/0.003472, allocations: 0 / 296.4 MB, free: 2.398 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.575e-06/0.00348, allocations: 0 / 296.4 MB, free: 2.398 MB / 282.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.845e-05/0.003548, allocations: 147.5 kB / 296.5 MB, free: 2.238 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.202e-06/0.003555, allocations: 0 / 296.5 MB, free: 2.238 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.057e-05/0.003565, allocations: 6.984 kB / 296.5 MB, free: 2.234 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.003567, allocations: 0 / 296.5 MB, free: 2.234 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-06/0.003568, allocations: 0 / 296.5 MB, free: 2.234 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.00357, allocations: 0 / 296.5 MB, free: 2.234 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.164e-05/0.003622, allocations: 65.84 kB / 296.6 MB, free: 2.152 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.003623, allocations: 3.938 kB / 296.6 MB, free: 2.148 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.003623, allocations: 3.938 kB / 296.6 MB, free: 2.145 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.557e-06/0.003627, allocations: 0 / 296.6 MB, free: 2.145 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.00363, allocations: 7.984 kB / 296.6 MB, free: 2.137 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.656e-06/0.003634, allocations: 4 kB / 296.6 MB, free: 2.133 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.22e-07/0.003634, allocations: 0 / 296.6 MB, free: 2.133 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.003635, allocations: 0 / 296.6 MB, free: 2.133 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.472e-05/0.00371, allocations: 116.5 kB / 296.7 MB, free: 1.988 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.159e-05/0.003721, allocations: 4 kB / 296.7 MB, free: 1.984 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.534e-06/0.003729, allocations: 0 / 296.7 MB, free: 1.984 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.083e-06/0.003736, allocations: 0 / 296.7 MB, free: 1.984 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-06/0.003738, allocations: 0 / 296.7 MB, free: 1.984 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.841e-06/0.003744, allocations: 4.859 kB / 296.7 MB, free: 1.977 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.003744, allocations: 0 / 296.7 MB, free: 1.977 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000162/0.003906, allocations: 23.97 kB / 296.8 MB, free: 1.953 MB / 282.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.0004614/0.004367, allocations: 219 kB / 297 MB, free: 1.805 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 9.907e-05/0.004466, allocations: 123.6 kB / 297.1 MB, free: 1.656 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.004469, allocations: 0 / 297.1 MB, free: 1.656 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.261e-05/0.004502, allocations: 85.97 kB / 297.2 MB, free: 1.551 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.087e-05/0.004553, allocations: 7.938 kB / 297.2 MB, free: 1.543 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001515/0.004704, allocations: 109.4 kB / 297.3 MB, free: 1.402 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.074e-05/0.004735, allocations: 55.36 kB / 297.4 MB, free: 1.328 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.54e-06/0.004741, allocations: 128 / 297.4 MB, free: 1.328 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.912e-05/0.00478, allocations: 63.34 kB / 297.4 MB, free: 1.266 MB / 282.7 MB Notification: Performance of SimCode: time 4.11e-07/0.00478, allocations: 0 / 297.4 MB, free: 1.266 MB / 282.7 MB Notification: Performance of Templates: time 0.002446/0.007226, allocations: 0.6825 MB / 298.1 MB, free: 0.5859 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 2.734946547076106]