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.00177/0.00177, allocations: 88.44 kB / 20.68 MB, free: 1.023 MB / 14.72 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.002048/0.002048, allocations: 159 kB / 23.95 MB, free: 4.152 MB / 14.72 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.535/1.535, allocations: 177 MB / 204.1 MB, free: 9.164 MB / 190.1 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.2403/0.2403, allocations: 34.27 MB / 294.8 MB, free: 14.52 MB / 286.1 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.994e-06/1.994e-06, allocations: 0 / 442.6 MB, free: 5.336 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.007e-05/3.206e-05, allocations: 2.281 kB / 442.6 MB, free: 5.332 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.00156/0.001593, allocations: 491.9 kB / 443.1 MB, free: 4.855 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006029/0.002195, allocations: 223.3 kB / 443.3 MB, free: 4.637 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.42e-05/0.00222, allocations: 0 / 443.3 MB, free: 4.637 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.21e-05/0.002232, allocations: 0 / 443.3 MB, free: 4.637 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 6.262e-06/0.002238, allocations: 0 / 443.3 MB, free: 4.637 MB / 366.1 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.0003598/0.002598, allocations: 47.77 kB / 443.4 MB, free: 4.59 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 5.632e-05/0.002654, allocations: 3.984 kB / 443.4 MB, free: 4.586 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.146e-05/0.002706, allocations: 0 / 443.4 MB, free: 4.586 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.23e-05/0.002738, allocations: 4 kB / 443.4 MB, free: 4.582 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.75e-05/0.002765, allocations: 0 / 443.4 MB, free: 4.582 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.595e-06/0.002773, allocations: 0 / 443.4 MB, free: 4.582 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001413/0.002914, allocations: 55.89 kB / 443.4 MB, free: 4.527 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.327e-05/0.002928, allocations: 3.938 kB / 443.4 MB, free: 4.523 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.773e-05/0.002955, allocations: 0 / 443.4 MB, free: 4.523 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001504/0.003106, allocations: 51.86 kB / 443.5 MB, free: 4.473 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.364e-06/0.003108, allocations: 0 / 443.5 MB, free: 4.473 MB / 366.1 MB Notification: Performance of FrontEnd: time 7.52e-07/0.003109, allocations: 3.938 kB / 443.5 MB, free: 4.469 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.003113, allocations: 0 / 443.5 MB, free: 4.469 MB / 366.1 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.0003686/0.003482, allocations: 276 kB / 443.8 MB, free: 4.16 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.003524, allocations: 12.03 kB / 443.8 MB, free: 4.148 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.832e-05/0.003562, allocations: 0.9375 kB / 443.8 MB, free: 4.148 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.476e-05/0.003657, allocations: 105.8 kB / 443.9 MB, free: 4.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.375e-05/0.003671, allocations: 4.375 kB / 443.9 MB, free: 4.016 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.823e-06/0.003678, allocations: 4.375 kB / 443.9 MB, free: 4.012 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001072/0.003785, allocations: 55.91 kB / 443.9 MB, free: 3.945 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.003796, allocations: 4.188 kB / 443.9 MB, free: 3.941 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.105e-06/0.003804, allocations: 384 / 443.9 MB, free: 3.941 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.003809, allocations: 384 / 443.9 MB, free: 3.941 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.802e-05/0.003847, allocations: 33.64 kB / 444 MB, free: 3.902 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001259/0.003973, allocations: 97.33 kB / 444.1 MB, free: 3.777 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.467e-05/0.004047, allocations: 52.25 kB / 444.1 MB, free: 3.711 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.604e-05/0.004083, allocations: 38.59 kB / 444.2 MB, free: 3.664 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.747e-06/0.004092, allocations: 4 kB / 444.2 MB, free: 3.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.181e-05/0.004144, allocations: 60.2 kB / 444.2 MB, free: 3.586 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.004145, allocations: 0 / 444.2 MB, free: 3.586 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002045/0.004349, allocations: 118.8 kB / 444.3 MB, free: 3.445 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.388e-05/0.004423, allocations: 81.11 kB / 444.4 MB, free: 3.348 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.308e-05/0.004476, allocations: 89.86 kB / 444.5 MB, free: 3.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.706e-05/0.004493, allocations: 25.7 kB / 444.5 MB, free: 3.219 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.008e-05/0.004534, allocations: 80.14 kB / 444.6 MB, free: 3.137 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.917e-05/0.004553, allocations: 3.953 kB / 444.6 MB, free: 3.133 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.722e-05/0.00459, allocations: 17.72 kB / 444.6 MB, free: 3.109 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.004736, allocations: 318.9 kB / 444.9 MB, free: 2.789 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.181e-05/0.004768, allocations: 29.69 kB / 445 MB, free: 2.754 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.751e-05/0.004795, allocations: 33.64 kB / 445 MB, free: 2.715 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.016e-05/0.004856, allocations: 60.27 kB / 445.1 MB, free: 2.641 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.004857, allocations: 0 / 445.1 MB, free: 2.641 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.723e-05/0.004955, allocations: 85.11 kB / 445.1 MB, free: 2.539 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.98e-05/0.004994, allocations: 37.69 kB / 445.2 MB, free: 2.496 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.005001, allocations: 4 kB / 445.2 MB, free: 2.492 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.005014, allocations: 0 / 445.2 MB, free: 2.492 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.22e-07/0.005015, allocations: 4.094 kB / 445.2 MB, free: 2.488 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.005022, allocations: 3.984 kB / 445.2 MB, free: 2.484 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.596e-05/0.005038, allocations: 3.938 kB / 445.2 MB, free: 2.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.891e-06/0.005043, allocations: 4 kB / 445.2 MB, free: 2.477 MB / 366.1 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 9.279e-05/0.005136, allocations: 131.5 kB / 445.3 MB, free: 2.332 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.204e-05/0.005148, allocations: 4 kB / 445.3 MB, free: 2.328 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.675e-05/0.005165, allocations: 10.98 kB / 445.3 MB, free: 2.316 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.005167, allocations: 3.938 kB / 445.3 MB, free: 2.312 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.00517, allocations: 3.938 kB / 445.3 MB, free: 2.309 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.005172, allocations: 0 / 445.3 MB, free: 2.309 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.938e-05/0.005262, allocations: 101.3 kB / 445.4 MB, free: 2.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.005265, allocations: 4 kB / 445.5 MB, free: 2.176 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.005265, allocations: 0 / 445.5 MB, free: 2.176 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.005267, allocations: 0 / 445.5 MB, free: 2.176 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.971e-06/0.005273, allocations: 0 / 445.5 MB, free: 2.176 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.005274, allocations: 0 / 445.5 MB, free: 2.176 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.005275, allocations: 3.938 kB / 445.5 MB, free: 2.172 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000131/0.005406, allocations: 124.5 kB / 445.6 MB, free: 2.02 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.727e-06/0.005409, allocations: 0 / 445.6 MB, free: 2.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.151e-05/0.005421, allocations: 4 kB / 445.6 MB, free: 2.016 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.586e-06/0.00543, allocations: 0 / 445.6 MB, free: 2.016 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.546e-05/0.005445, allocations: 8.016 kB / 445.6 MB, free: 2.008 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.186e-06/0.005448, allocations: 0 / 445.6 MB, free: 2.008 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.049e-05/0.005509, allocations: 79.28 kB / 445.7 MB, free: 1.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.005509, allocations: 0 / 445.7 MB, free: 1.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002243/0.005733, allocations: 15.94 kB / 445.7 MB, free: 1.914 MB / 366.1 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.0004861/0.006219, allocations: 203.3 kB / 445.9 MB, free: 1.727 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001524/0.006372, allocations: 106.8 kB / 446 MB, free: 1.598 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.006373, allocations: 0 / 446 MB, free: 1.598 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.653e-05/0.00644, allocations: 85.09 kB / 446.1 MB, free: 1.496 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000126/0.006566, allocations: 8.062 kB / 446.1 MB, free: 1.488 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002179/0.006784, allocations: 106.6 kB / 446.2 MB, free: 1.352 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.471e-05/0.006838, allocations: 55.34 kB / 446.2 MB, free: 1.277 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.212e-06/0.006845, allocations: 0 / 446.2 MB, free: 1.277 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.486e-05/0.006859, allocations: 12.5 kB / 446.2 MB, free: 1.266 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.00686, allocations: 0 / 446.2 MB, free: 1.266 MB / 366.1 MB Notification: Performance of Templates: time 0.003642/0.0105, allocations: 0.6113 MB / 446.9 MB, free: 0.6602 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 480] 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.895759705454111]