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.001075/0.001075, allocations: 91.5 kB / 21.19 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.001577/0.001577, allocations: 156.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 1.049/1.049, allocations: 177 MB / 204.8 MB, free: 5.605 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.2722/0.2722, allocations: 34.86 MB / 296.3 MB, free: 0.5547 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 1.363e-06/1.363e-06, allocations: 0 / 378.7 MB, free: 2.152 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.486e-05/2.622e-05, allocations: 6.25 kB / 378.7 MB, free: 2.145 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001174/0.001201, allocations: 0.4901 MB / 379.2 MB, free: 1.652 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004237/0.001624, allocations: 223.5 kB / 379.4 MB, free: 1.434 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.972e-05/0.001644, allocations: 0 / 379.4 MB, free: 1.434 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.608e-05/0.00166, allocations: 0 / 379.4 MB, free: 1.434 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.051e-06/0.001666, allocations: 4 kB / 379.4 MB, free: 1.43 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.0002653/0.001932, allocations: 43.77 kB / 379.5 MB, free: 1.387 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.052e-05/0.001982, allocations: 7.984 kB / 379.5 MB, free: 1.379 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.131e-05/0.002013, allocations: 0 / 379.5 MB, free: 1.379 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.386e-05/0.002037, allocations: 0 / 379.5 MB, free: 1.379 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.477e-05/0.002062, allocations: 7.984 kB / 379.5 MB, free: 1.371 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.304e-06/0.002069, allocations: 0 / 379.5 MB, free: 1.371 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001105/0.00218, allocations: 43.91 kB / 379.5 MB, free: 1.328 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.853e-06/0.002187, allocations: 0 / 379.5 MB, free: 1.328 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.1e-05/0.002208, allocations: 7.984 kB / 379.6 MB, free: 1.32 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001123/0.00232, allocations: 63.73 kB / 379.6 MB, free: 1.258 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.002322, allocations: 4 kB / 379.6 MB, free: 1.254 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.81e-07/0.002323, allocations: 0 / 379.6 MB, free: 1.254 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.002328, allocations: 0 / 379.6 MB, free: 1.254 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.0002563/0.002584, allocations: 370 kB / 380 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.002621, allocations: 12.02 kB / 380 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.119e-05/0.002653, allocations: 4.938 kB / 380 MB, free: 0.832 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.318e-05/0.002706, allocations: 104.6 kB / 380.1 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.057e-06/0.002715, allocations: 384 / 380.1 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.737e-06/0.002723, allocations: 384 / 380.1 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.913e-05/0.002803, allocations: 59.97 kB / 380.2 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.002811, allocations: 192 / 380.2 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.775e-06/0.002818, allocations: 4.375 kB / 380.2 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.002825, allocations: 384 / 380.2 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.13e-05/0.002846, allocations: 37.58 kB / 380.2 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.346e-05/0.00293, allocations: 108.6 kB / 380.3 MB, free: 456 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.184e-05/0.002971, allocations: 52.8 kB / 380.4 MB, free: 384 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.825e-05/0.00299, allocations: 33.39 kB / 380.4 MB, free: 340 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.36e-06/0.002995, allocations: 4.062 kB / 380.4 MB, free: 336 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.427e-05/0.003029, allocations: 63.09 kB / 380.5 MB, free: 256 kB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.00303, allocations: 0 / 380.5 MB, free: 256 kB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001591/0.003189, allocations: 122.7 kB / 380.6 MB, free: 108 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.635e-05/0.003226, allocations: 77.11 kB / 380.6 MB, free: 12 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.377e-05/0.003279, allocations: 150.2 kB / 380.8 MB, free: 15.85 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.015e-06/0.003287, allocations: 25.7 kB / 380.8 MB, free: 15.82 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.726e-05/0.003315, allocations: 126.9 kB / 380.9 MB, free: 15.69 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.622e-05/0.003331, allocations: 4.344 kB / 380.9 MB, free: 15.69 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.194e-05/0.003353, allocations: 19.38 kB / 381 MB, free: 15.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.003471, allocations: 0.4883 MB / 381.5 MB, free: 15.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.617e-05/0.003497, allocations: 25.7 kB / 381.5 MB, free: 15.13 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.727e-05/0.003514, allocations: 29.7 kB / 381.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.107e-05/0.003565, allocations: 67.28 kB / 381.6 MB, free: 15.01 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.003567, allocations: 3.938 kB / 381.6 MB, free: 15.01 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.816e-05/0.003645, allocations: 97.05 kB / 381.7 MB, free: 14.89 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.289e-05/0.003678, allocations: 36.36 kB / 381.7 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.003684, allocations: 0 / 381.7 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.083e-05/0.003705, allocations: 0 / 381.7 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.108e-06/0.003709, allocations: 0 / 381.7 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.902e-06/0.003715, allocations: 0 / 381.7 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.268e-05/0.003728, allocations: 3.938 kB / 381.7 MB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.884e-06/0.003735, allocations: 4 kB / 381.7 MB, free: 14.85 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 8.376e-05/0.003819, allocations: 186.3 kB / 381.9 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.017e-06/0.003828, allocations: 4 kB / 381.9 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.214e-05/0.00384, allocations: 3 kB / 381.9 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.003843, allocations: 0 / 381.9 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.003846, allocations: 0 / 381.9 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.003849, allocations: 0 / 381.9 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.919e-05/0.003918, allocations: 116.6 kB / 382 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.003919, allocations: 0 / 382 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.82e-07/0.00392, allocations: 0 / 382 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.003922, allocations: 0 / 382 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.861e-06/0.003928, allocations: 0 / 382 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.00393, allocations: 11.92 kB / 382 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.003931, allocations: 0 / 382 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001087/0.00404, allocations: 135.8 kB / 382.2 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.432e-06/0.004046, allocations: 3.984 kB / 382.2 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.349e-05/0.00406, allocations: 0 / 382.2 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.64e-06/0.004065, allocations: 0 / 382.2 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.246e-05/0.004078, allocations: 0 / 382.2 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.825e-06/0.004081, allocations: 7.938 kB / 382.2 MB, free: 14.3 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.655e-05/0.004117, allocations: 127.2 kB / 382.3 MB, free: 14.18 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004117, allocations: 0 / 382.3 MB, free: 14.18 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001632/0.00428, allocations: 19.97 kB / 382.3 MB, free: 14.16 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.000423/0.004703, allocations: 205.1 kB / 382.5 MB, free: 13.98 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001065/0.00481, allocations: 130.4 kB / 382.6 MB, free: 13.82 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.004812, allocations: 0 / 382.6 MB, free: 13.82 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.126e-05/0.004844, allocations: 88.8 kB / 382.7 MB, free: 13.71 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.357e-05/0.004937, allocations: 2.531 kB / 382.7 MB, free: 13.71 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000184/0.005121, allocations: 121.6 kB / 382.9 MB, free: 13.56 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.861e-05/0.00515, allocations: 55.36 kB / 382.9 MB, free: 13.48 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.879e-06/0.005155, allocations: 0 / 382.9 MB, free: 13.48 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.237e-05/0.005167, allocations: 12.62 kB / 382.9 MB, free: 13.47 MB / 362.7 MB Notification: Performance of SimCode: time 5.81e-07/0.005168, allocations: 0 / 382.9 MB, free: 13.47 MB / 362.7 MB Notification: Performance of Templates: time 0.002269/0.007436, allocations: 0.6221 MB / 383.5 MB, free: 12.85 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","",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.187964180018753]