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.0008642/0.0008642, allocations: 81.91 kB / 21.42 MB, free: 3.07 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.00105/0.00105, allocations: 165.2 kB / 24.82 MB, free: 9.324 MB / 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.003/1.003, allocations: 177 MB / 205.1 MB, free: 5.445 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.2621/0.2621, allocations: 34.87 MB / 296.6 MB, free: 0.5078 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.343e-06/1.343e-06, allocations: 0 / 379.2 MB, free: 1.863 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.065e-05/2.199e-05, allocations: 2.312 kB / 379.2 MB, free: 1.859 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.00112/0.001142, allocations: 493 kB / 379.7 MB, free: 1.375 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003384/0.00148, allocations: 227.4 kB / 379.9 MB, free: 1.152 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.61e-05/0.001496, allocations: 0 / 379.9 MB, free: 1.152 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 9.788e-06/0.001506, allocations: 0 / 379.9 MB, free: 1.152 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.188e-06/0.00151, allocations: 0 / 379.9 MB, free: 1.152 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.0001971/0.001707, allocations: 51.75 kB / 380 MB, free: 1.102 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 3.393e-05/0.001741, allocations: 4 kB / 380 MB, free: 1.098 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.335e-05/0.001765, allocations: 0 / 380 MB, free: 1.098 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.195e-05/0.001787, allocations: 3.938 kB / 380 MB, free: 1.094 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.915e-05/0.001806, allocations: 4 kB / 380 MB, free: 1.09 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.761e-06/0.001812, allocations: 0 / 380 MB, free: 1.09 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.736e-05/0.001899, allocations: 47.89 kB / 380 MB, free: 1.043 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.561e-06/0.001905, allocations: 0 / 380 MB, free: 1.043 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.265e-05/0.001917, allocations: 4 kB / 380 MB, free: 1.039 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 8.079e-05/0.001998, allocations: 55.8 kB / 380.1 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.633e-06/0.002, allocations: 0 / 380.1 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.002, allocations: 4 kB / 380.1 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.775e-06/0.002003, allocations: 0 / 380.1 MB, free: 0.9805 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.000204/0.002207, allocations: 378 kB / 380.4 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.887e-05/0.002236, allocations: 12.03 kB / 380.5 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.075e-05/0.002257, allocations: 4.938 kB / 380.5 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.426e-05/0.002301, allocations: 108.6 kB / 380.6 MB, free: 428 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.835e-06/0.002309, allocations: 4.312 kB / 380.6 MB, free: 424 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.959e-06/0.002314, allocations: 4.375 kB / 380.6 MB, free: 420 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.827e-05/0.002362, allocations: 51.97 kB / 380.6 MB, free: 356 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.959e-06/0.002367, allocations: 192 / 380.6 MB, free: 356 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.777e-06/0.002371, allocations: 4.375 kB / 380.6 MB, free: 352 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.346e-06/0.002374, allocations: 384 / 380.6 MB, free: 352 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.366e-05/0.002388, allocations: 33.64 kB / 380.7 MB, free: 312 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.728e-05/0.002445, allocations: 93.25 kB / 380.8 MB, free: 192 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.501e-05/0.00248, allocations: 56.73 kB / 380.8 MB, free: 116 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.29e-05/0.002493, allocations: 33.39 kB / 380.8 MB, free: 72 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.358e-06/0.002497, allocations: 4.062 kB / 380.8 MB, free: 68 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.499e-05/0.002542, allocations: 63.09 kB / 380.9 MB, free: 15.99 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.002543, allocations: 0 / 380.9 MB, free: 15.99 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001107/0.002654, allocations: 114.8 kB / 381 MB, free: 15.85 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.762e-05/0.002681, allocations: 81.23 kB / 381.1 MB, free: 15.75 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.987e-05/0.002721, allocations: 150.2 kB / 381.2 MB, free: 15.59 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.324e-06/0.002729, allocations: 25.7 kB / 381.3 MB, free: 15.56 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.415e-05/0.002753, allocations: 126.9 kB / 381.4 MB, free: 15.43 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.007e-05/0.002763, allocations: 352 / 381.4 MB, free: 15.43 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.019e-05/0.002783, allocations: 19.38 kB / 381.4 MB, free: 15.41 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.002885, allocations: 500 kB / 381.9 MB, free: 14.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.289e-05/0.002898, allocations: 37.62 kB / 381.9 MB, free: 14.86 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.357e-06/0.002907, allocations: 25.7 kB / 382 MB, free: 14.83 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.01e-05/0.002937, allocations: 63.16 kB / 382 MB, free: 14.75 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.002938, allocations: 4 kB / 382 MB, free: 14.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.171e-05/0.00298, allocations: 89.06 kB / 382.1 MB, free: 14.64 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.003003, allocations: 37.69 kB / 382.2 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.003006, allocations: 0 / 382.2 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.983e-06/0.003013, allocations: 0 / 382.2 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.42e-07/0.003014, allocations: 0 / 382.2 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.843e-06/0.003016, allocations: 0 / 382.2 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.196e-06/0.003024, allocations: 3.938 kB / 382.2 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.747e-06/0.003028, allocations: 0 / 382.2 MB, free: 14.6 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 5.892e-05/0.003087, allocations: 190.2 kB / 382.3 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.369e-06/0.003091, allocations: 4 kB / 382.3 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.573e-06/0.003098, allocations: 3 kB / 382.3 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.0031, allocations: 3.984 kB / 382.4 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-06/0.003101, allocations: 0 / 382.4 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.843e-06/0.003103, allocations: 0 / 382.4 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.94e-05/0.003152, allocations: 97.2 kB / 382.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.003154, allocations: 4 kB / 382.5 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.11e-07/0.003154, allocations: 0 / 382.5 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.11e-07/0.003155, allocations: 0 / 382.5 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.826e-06/0.003158, allocations: 0 / 382.5 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.1e-07/0.003158, allocations: 4 kB / 382.5 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.61e-07/0.003159, allocations: 0 / 382.5 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.172e-05/0.00322, allocations: 131.8 kB / 382.6 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.589e-06/0.003225, allocations: 7.984 kB / 382.6 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.943e-06/0.003232, allocations: 3.938 kB / 382.6 MB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.899e-06/0.003237, allocations: 4 kB / 382.6 MB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.952e-06/0.003243, allocations: 0 / 382.6 MB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.198e-06/0.003247, allocations: 11.98 kB / 382.6 MB, free: 14.07 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.364e-05/0.003271, allocations: 123.2 kB / 382.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.003271, allocations: 0 / 382.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001221/0.003393, allocations: 15.94 kB / 382.7 MB, free: 13.93 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.0002619/0.003655, allocations: 201 kB / 382.9 MB, free: 13.76 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 6.93e-05/0.003724, allocations: 118.5 kB / 383.1 MB, free: 13.61 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.312e-06/0.003725, allocations: 0 / 383.1 MB, free: 13.61 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.755e-05/0.003753, allocations: 96.78 kB / 383.2 MB, free: 13.5 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.091e-05/0.003824, allocations: 3.938 kB / 383.2 MB, free: 13.49 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001116/0.003935, allocations: 117.6 kB / 383.3 MB, free: 13.34 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.163e-05/0.003957, allocations: 59.28 kB / 383.3 MB, free: 13.26 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.158e-06/0.003961, allocations: 0 / 383.3 MB, free: 13.26 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.133e-05/0.003992, allocations: 74.33 kB / 383.4 MB, free: 13.19 MB / 362.7 MB Notification: Performance of SimCode: time 4.4e-07/0.003993, allocations: 4 kB / 383.4 MB, free: 13.18 MB / 362.7 MB Notification: Performance of Templates: time 0.00176/0.005752, allocations: 0.6844 MB / 384.1 MB, free: 12.5 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.0570990229025483]