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.001935/0.001935, allocations: 99.53 kB / 20.97 MB, free: 3.453 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.002047/0.002047, allocations: 160.8 kB / 24.27 MB, free: 156 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 1.592/1.592, allocations: 177 MB / 204.5 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] 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.3579/0.3579, allocations: 34.25 MB / 295.2 MB, free: 0.6406 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.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 2.084e-06/2.084e-06, allocations: 0 / 377.2 MB, free: 2.938 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.015e-05/3.223e-05, allocations: 4 kB / 377.2 MB, free: 2.934 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001873/0.001906, allocations: 489 kB / 377.7 MB, free: 2.453 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006145/0.00252, allocations: 215.5 kB / 377.9 MB, free: 2.242 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.414e-05/0.002544, allocations: 3.938 kB / 377.9 MB, free: 2.238 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.115e-05/0.002555, allocations: 4 kB / 377.9 MB, free: 2.234 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.04e-06/0.002561, allocations: 4 kB / 377.9 MB, free: 2.23 MB / 346.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.0003185/0.002879, allocations: 47.75 kB / 377.9 MB, free: 2.184 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.266e-05/0.002932, allocations: 4 kB / 377.9 MB, free: 2.18 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.775e-05/0.002969, allocations: 0 / 377.9 MB, free: 2.18 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.916e-05/0.002999, allocations: 0 / 377.9 MB, free: 2.18 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.622e-05/0.003025, allocations: 0 / 377.9 MB, free: 2.18 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.833e-06/0.003032, allocations: 0 / 377.9 MB, free: 2.18 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001415/0.003173, allocations: 47.95 kB / 378 MB, free: 2.133 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 7.985e-06/0.003181, allocations: 3.938 kB / 378 MB, free: 2.129 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.254e-05/0.003204, allocations: 3.984 kB / 378 MB, free: 2.125 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001543/0.003358, allocations: 55.81 kB / 378 MB, free: 2.07 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.003362, allocations: 8 kB / 378.1 MB, free: 2.062 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.21e-07/0.003362, allocations: 0 / 378.1 MB, free: 2.062 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.549e-06/0.003367, allocations: 0 / 378.1 MB, free: 2.062 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.0004563/0.003823, allocations: 378 kB / 378.4 MB, free: 1.648 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.003864, allocations: 8.031 kB / 378.4 MB, free: 1.641 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.483e-05/0.003909, allocations: 0.9375 kB / 378.4 MB, free: 1.641 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001075/0.004017, allocations: 112.6 kB / 378.5 MB, free: 1.504 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.244e-05/0.004029, allocations: 384 / 378.5 MB, free: 1.504 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.03e-05/0.004039, allocations: 4.359 kB / 378.5 MB, free: 1.5 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001153/0.004155, allocations: 59.91 kB / 378.6 MB, free: 1.43 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.936e-06/0.004164, allocations: 4.188 kB / 378.6 MB, free: 1.426 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.735e-06/0.004171, allocations: 384 / 378.6 MB, free: 1.426 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-06/0.004175, allocations: 384 / 378.6 MB, free: 1.426 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.133e-05/0.004217, allocations: 33.64 kB / 378.6 MB, free: 1.387 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001579/0.004375, allocations: 108.6 kB / 378.7 MB, free: 1.246 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9e-05/0.004465, allocations: 56.78 kB / 378.8 MB, free: 1.172 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.984e-05/0.004505, allocations: 33.39 kB / 378.8 MB, free: 1.129 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.021e-05/0.004515, allocations: 0 / 378.8 MB, free: 1.129 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.226e-05/0.004587, allocations: 67.09 kB / 378.9 MB, free: 1.047 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 6.81e-07/0.004588, allocations: 0 / 378.9 MB, free: 1.047 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.000242/0.00483, allocations: 122.8 kB / 379 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.47e-05/0.004894, allocations: 77.11 kB / 379.1 MB, free: 0.8086 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.89e-05/0.004983, allocations: 142.2 kB / 379.2 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.005001, allocations: 29.7 kB / 379.3 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.304e-05/0.005074, allocations: 126.9 kB / 379.4 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.7e-05/0.005091, allocations: 0 / 379.4 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.954e-05/0.005131, allocations: 23.38 kB / 379.4 MB, free: 472 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002984/0.005429, allocations: 496.1 kB / 379.9 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.908e-05/0.005458, allocations: 29.64 kB / 379.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.468e-05/0.005503, allocations: 37.62 kB / 380 MB, free: 15.89 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.813e-05/0.005571, allocations: 63.28 kB / 380 MB, free: 15.81 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.005573, allocations: 4 kB / 380 MB, free: 15.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000102/0.005675, allocations: 85.11 kB / 380.1 MB, free: 15.7 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.255e-05/0.005718, allocations: 37.69 kB / 380.1 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.005722, allocations: 0 / 380.1 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.005735, allocations: 0 / 380.1 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.61e-07/0.005736, allocations: 0 / 380.1 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.005741, allocations: 0 / 380.1 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.925e-05/0.00576, allocations: 7.938 kB / 380.2 MB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.731e-06/0.005766, allocations: 0 / 380.2 MB, free: 15.65 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 0.0001325/0.005899, allocations: 182.3 kB / 380.3 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.371e-05/0.005912, allocations: 11.89 kB / 380.3 MB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.428e-06/0.005922, allocations: 3 kB / 380.3 MB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-06/0.005923, allocations: 0 / 380.3 MB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.005926, allocations: 0 / 380.3 MB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.005932, allocations: 3.984 kB / 380.3 MB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001086/0.00604, allocations: 116.6 kB / 380.5 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.006041, allocations: 0 / 380.5 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.006042, allocations: 0 / 380.5 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-06/0.006043, allocations: 0 / 380.5 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.981e-06/0.006049, allocations: 4 kB / 380.5 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.006052, allocations: 4 kB / 380.5 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.006053, allocations: 0 / 380.5 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001506/0.006203, allocations: 135.8 kB / 380.6 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.298e-06/0.006208, allocations: 0 / 380.6 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.151e-05/0.006219, allocations: 0 / 380.6 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.1e-05/0.00623, allocations: 4 kB / 380.6 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.65e-05/0.006247, allocations: 0 / 380.6 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.159e-06/0.006252, allocations: 3.984 kB / 380.6 MB, free: 15.11 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.799e-05/0.00632, allocations: 127.2 kB / 380.7 MB, free: 14.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.00632, allocations: 0 / 380.7 MB, free: 14.98 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002328/0.006553, allocations: 19.97 kB / 380.8 MB, free: 14.96 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.0006294/0.007182, allocations: 212.7 kB / 381 MB, free: 14.78 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001982/0.00738, allocations: 122.5 kB / 381.1 MB, free: 14.63 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.007382, allocations: 0 / 381.1 MB, free: 14.63 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.171e-05/0.007454, allocations: 92.78 kB / 381.2 MB, free: 14.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001192/0.007573, allocations: 4 kB / 381.2 MB, free: 14.51 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002366/0.00781, allocations: 117.7 kB / 381.3 MB, free: 14.36 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.516e-05/0.007875, allocations: 55.34 kB / 381.3 MB, free: 14.29 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.94e-06/0.00788, allocations: 0 / 381.3 MB, free: 14.29 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.4e-05/0.007894, allocations: 16.62 kB / 381.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of SimCode: time 4.01e-07/0.007894, allocations: 0 / 381.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of Templates: time 0.003657/0.01155, allocations: 0.6258 MB / 382 MB, free: 13.64 MB / 362.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 -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.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.909961469937116]