Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001867/0.001867, allocations: 106.8 kB / 21.2 MB, free: 0.6406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002338/0.002338, allocations: 215 kB / 24.49 MB, free: 3.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.599/1.599, allocations: 230.6 MB / 258.3 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2291/0.2291, allocations: 46.96 MB / 361.6 MB, free: 4.039 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002982/0.002982, allocations: 75.88 kB / 0.4973 GB, free: 7.25 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3332/0.3361, allocations: 66.04 MB / 0.5618 GB, free: 4.199 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001624/0.3378, allocations: 477.1 kB / 0.5623 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006093/0.3384, allocations: 229.6 kB / 0.5625 GB, free: 3.508 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.333e-05/0.3384, allocations: 3.938 kB / 0.5625 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.15e-05/0.3384, allocations: 0 / 0.5625 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.54e-06/0.3384, allocations: 0 / 0.5625 GB, free: 3.504 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:289:3-320: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.00029/0.3387, allocations: 47.83 kB / 0.5625 GB, free: 3.457 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.362e-05/0.3387, allocations: 0 / 0.5625 GB, free: 3.457 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.161e-05/0.3388, allocations: 0 / 0.5625 GB, free: 3.457 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.037e-05/0.3388, allocations: 8 kB / 0.5625 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.112e-05/0.3388, allocations: 0 / 0.5625 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.641e-06/0.3388, allocations: 0 / 0.5625 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001201/0.3389, allocations: 51.94 kB / 0.5626 GB, free: 3.398 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.578e-06/0.3389, allocations: 4 kB / 0.5626 GB, free: 3.395 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.898e-05/0.339, allocations: 4 kB / 0.5626 GB, free: 3.391 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001154/0.3391, allocations: 35.75 kB / 0.5626 GB, free: 3.359 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.3391, allocations: 0 / 0.5626 GB, free: 3.359 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3391, allocations: 0 / 0.5626 GB, free: 3.359 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.088e-06/0.3391, allocations: 0 / 0.5626 GB, free: 3.359 MB / 398.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.0003244/0.3394, allocations: 282.6 kB / 0.5629 GB, free: 3.051 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.3395, allocations: 12.03 kB / 0.5629 GB, free: 3.039 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.633e-05/0.3395, allocations: 4.875 kB / 0.5629 GB, free: 3.035 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.817e-05/0.3396, allocations: 106.5 kB / 0.563 GB, free: 2.906 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.3396, allocations: 384 / 0.563 GB, free: 2.906 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.167e-06/0.3396, allocations: 4.375 kB / 0.563 GB, free: 2.902 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001123/0.3397, allocations: 51.97 kB / 0.5631 GB, free: 2.84 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.3397, allocations: 4.188 kB / 0.5631 GB, free: 2.836 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.268e-06/0.3397, allocations: 7.875 kB / 0.5631 GB, free: 2.828 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.3397, allocations: 4 kB / 0.5631 GB, free: 2.824 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.117e-05/0.3398, allocations: 29.7 kB / 0.5631 GB, free: 2.789 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001158/0.3399, allocations: 109.3 kB / 0.5632 GB, free: 2.652 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.598e-05/0.3399, allocations: 44.22 kB / 0.5633 GB, free: 2.594 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.747e-05/0.34, allocations: 30.56 kB / 0.5633 GB, free: 2.555 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.604e-06/0.34, allocations: 4.062 kB / 0.5633 GB, free: 2.551 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.082e-05/0.34, allocations: 60.27 kB / 0.5633 GB, free: 2.477 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.283e-06/0.34, allocations: 0 / 0.5633 GB, free: 2.477 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001964/0.3402, allocations: 118.7 kB / 0.5635 GB, free: 2.336 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.361e-05/0.3403, allocations: 77.11 kB / 0.5635 GB, free: 2.242 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.967e-05/0.3403, allocations: 97.75 kB / 0.5636 GB, free: 2.137 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.564e-05/0.3403, allocations: 33.83 kB / 0.5637 GB, free: 2.098 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.608e-05/0.3404, allocations: 84.14 kB / 0.5637 GB, free: 2.012 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.219e-05/0.3404, allocations: 0 / 0.5637 GB, free: 2.012 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.758e-05/0.3404, allocations: 13.72 kB / 0.5638 GB, free: 1.992 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.3405, allocations: 314.8 kB / 0.5641 GB, free: 1.676 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.135e-05/0.3406, allocations: 25.7 kB / 0.5641 GB, free: 1.645 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.943e-05/0.3406, allocations: 25.7 kB / 0.5641 GB, free: 1.613 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.219e-05/0.3406, allocations: 64.27 kB / 0.5642 GB, free: 1.535 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.3406, allocations: 0 / 0.5642 GB, free: 1.535 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.686e-05/0.3407, allocations: 93.03 kB / 0.5643 GB, free: 1.426 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.282e-05/0.3408, allocations: 37.8 kB / 0.5643 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.246e-06/0.3408, allocations: 0 / 0.5643 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/0.3408, allocations: 0 / 0.5643 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.72e-07/0.3408, allocations: 3.938 kB / 0.5643 GB, free: 1.379 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.3408, allocations: 3.938 kB / 0.5643 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.207e-05/0.3408, allocations: 0 / 0.5643 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.859e-06/0.3408, allocations: 0 / 0.5643 GB, free: 1.375 MB / 398.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.272e-05/0.3409, allocations: 143.5 kB / 0.5644 GB, free: 1.219 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.238e-06/0.3409, allocations: 3.984 kB / 0.5644 GB, free: 1.215 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.22e-05/0.3409, allocations: 6.984 kB / 0.5644 GB, free: 1.207 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.483e-06/0.3409, allocations: 8 kB / 0.5645 GB, free: 1.199 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.3409, allocations: 3.938 kB / 0.5645 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.206e-06/0.3409, allocations: 0 / 0.5645 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.709e-06/0.3409, allocations: 0 / 0.5645 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.498e-06/0.3409, allocations: 0 / 0.5645 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.282e-05/0.3409, allocations: 4 kB / 0.5645 GB, free: 1.191 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001493/0.3411, allocations: 219.8 kB / 0.5647 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001868/0.3413, allocations: 270.1 kB / 0.5649 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.88e-05/0.3413, allocations: 29.7 kB / 0.565 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.697e-05/0.3414, allocations: 79.34 kB / 0.565 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of Backend: time 2.71e-07/0.3414, allocations: 3.938 kB / 0.565 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006916/0.342, allocations: 253.6 kB / 0.5653 GB, free: 304 kB / 398.1 MB Notification: Performance of SimCode: time 0.0004296/0.3425, allocations: 0.5834 MB / 0.5658 GB, free: 15.65 MB / 414.1 MB Notification: Performance of Templates: time 0.00331/0.3458, allocations: 0.6052 MB / 0.5664 GB, free: 15.05 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_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: 5.0646666629982064]