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.001004/0.001004, allocations: 83.58 kB / 21.19 MB, free: 3.379 MB / 18.57 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.001012/0.001012, allocations: 165 kB / 24.56 MB, free: 12 kB / 18.57 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.026/1.026, allocations: 177.1 MB / 205 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 179] 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.2527/0.2527, allocations: 34.26 MB / 295.7 MB, free: 0.7539 MB / 266.7 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 2.034e-06/2.034e-06, allocations: 0 / 378 MB, free: 2.691 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.965e-05/2.168e-05, allocations: 2.312 kB / 378 MB, free: 2.688 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0009667/0.0009883, allocations: 488.3 kB / 378.5 MB, free: 2.211 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004103/0.001399, allocations: 223.5 kB / 378.7 MB, free: 1.992 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.024e-05/0.001419, allocations: 0 / 378.7 MB, free: 1.992 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.06e-05/0.001439, allocations: 0 / 378.7 MB, free: 1.992 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.051e-06/0.001446, allocations: 0 / 378.7 MB, free: 1.992 MB / 346.7 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.000261/0.001707, allocations: 55.69 kB / 378.8 MB, free: 1.938 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.813e-05/0.001755, allocations: 4 kB / 378.8 MB, free: 1.934 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.589e-05/0.001791, allocations: 4 kB / 378.8 MB, free: 1.93 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.565e-05/0.001816, allocations: 0 / 378.8 MB, free: 1.93 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.402e-05/0.00184, allocations: 0 / 378.8 MB, free: 1.93 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.923e-06/0.001847, allocations: 0 / 378.8 MB, free: 1.93 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001074/0.001955, allocations: 51.89 kB / 378.8 MB, free: 1.879 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.749e-06/0.001964, allocations: 4 kB / 378.8 MB, free: 1.875 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.354e-05/0.001988, allocations: 3.984 kB / 378.8 MB, free: 1.871 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001213/0.002109, allocations: 47.88 kB / 378.9 MB, free: 1.824 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.002113, allocations: 0 / 378.9 MB, free: 1.824 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.61e-07/0.002114, allocations: 0 / 378.9 MB, free: 1.824 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.002122, allocations: 3.938 kB / 378.9 MB, free: 1.82 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.0002803/0.002402, allocations: 382 kB / 379.3 MB, free: 1.402 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.002438, allocations: 8.031 kB / 379.3 MB, free: 1.395 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.287e-05/0.002471, allocations: 4.875 kB / 379.3 MB, free: 1.391 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.782e-05/0.002528, allocations: 108.6 kB / 379.4 MB, free: 1.258 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.053e-05/0.002539, allocations: 384 / 379.4 MB, free: 1.258 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.194e-05/0.002551, allocations: 8.359 kB / 379.4 MB, free: 1.25 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.542e-05/0.002636, allocations: 59.95 kB / 379.4 MB, free: 1.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.337e-06/0.002646, allocations: 192 / 379.4 MB, free: 1.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.406e-06/0.002654, allocations: 384 / 379.4 MB, free: 1.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.002662, allocations: 384 / 379.4 MB, free: 1.18 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.801e-05/0.00268, allocations: 29.64 kB / 379.5 MB, free: 1.145 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.005e-05/0.00277, allocations: 108.6 kB / 379.6 MB, free: 1.004 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.386e-05/0.002814, allocations: 56.8 kB / 379.6 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.062e-05/0.002835, allocations: 41.38 kB / 379.7 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.897e-06/0.002838, allocations: 0 / 379.7 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.42e-05/0.002873, allocations: 63.09 kB / 379.7 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 7.81e-07/0.002873, allocations: 4 kB / 379.7 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001646/0.003038, allocations: 118.8 kB / 379.9 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.378e-05/0.003082, allocations: 81.05 kB / 379.9 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.215e-05/0.003124, allocations: 142.2 kB / 380.1 MB, free: 416 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.747e-06/0.003133, allocations: 25.7 kB / 380.1 MB, free: 384 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.752e-05/0.00316, allocations: 126.9 kB / 380.2 MB, free: 252 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.478e-05/0.003175, allocations: 352 / 380.2 MB, free: 252 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.291e-05/0.003198, allocations: 19.38 kB / 380.2 MB, free: 224 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.003319, allocations: 496.1 kB / 380.7 MB, free: 15.72 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.106e-05/0.00334, allocations: 33.83 kB / 380.8 MB, free: 15.68 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.436e-05/0.003354, allocations: 29.7 kB / 380.8 MB, free: 15.65 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.196e-05/0.003396, allocations: 67.08 kB / 380.9 MB, free: 15.57 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.003398, allocations: 3.938 kB / 380.9 MB, free: 15.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.813e-05/0.003456, allocations: 93 kB / 380.9 MB, free: 15.45 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/0.003478, allocations: 29.7 kB / 381 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.003483, allocations: 3.984 kB / 381 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.003498, allocations: 0 / 381 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.769e-06/0.003503, allocations: 4 kB / 381 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.003507, allocations: 4.094 kB / 381 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.01e-05/0.003517, allocations: 3.938 kB / 381 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.709e-06/0.003522, allocations: 0 / 381 MB, free: 15.4 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 6.181e-05/0.003584, allocations: 186.3 kB / 381.2 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.997e-06/0.003588, allocations: 0 / 381.2 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.023e-05/0.003598, allocations: 3 kB / 381.2 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-06/0.003599, allocations: 0 / 381.2 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.003602, allocations: 0 / 381.2 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.003604, allocations: 4 kB / 381.2 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.9e-05/0.003653, allocations: 116.6 kB / 381.3 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.31e-07/0.003654, allocations: 4 kB / 381.3 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-07/0.003654, allocations: 0 / 381.3 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.62e-07/0.003655, allocations: 0 / 381.3 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.251e-06/0.003661, allocations: 4 kB / 381.3 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.2e-07/0.003662, allocations: 0 / 381.3 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.003662, allocations: 0 / 381.3 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.224e-05/0.003735, allocations: 135.7 kB / 381.4 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.327e-06/0.003738, allocations: 0 / 381.4 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.23e-05/0.00375, allocations: 4 kB / 381.4 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.438e-06/0.003755, allocations: 0 / 381.4 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.248e-05/0.003767, allocations: 0 / 381.4 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.192e-06/0.003768, allocations: 4.031 kB / 381.4 MB, free: 14.87 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.729e-05/0.003796, allocations: 123.2 kB / 381.6 MB, free: 14.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.003796, allocations: 0 / 381.6 MB, free: 14.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000142/0.003938, allocations: 23.92 kB / 381.6 MB, free: 14.72 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.0003586/0.004296, allocations: 223.1 kB / 381.8 MB, free: 14.53 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.362e-05/0.00439, allocations: 118.5 kB / 381.9 MB, free: 14.39 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.312e-06/0.004391, allocations: 0 / 381.9 MB, free: 14.39 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.181e-05/0.004423, allocations: 96.72 kB / 382 MB, free: 14.27 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.927e-05/0.004512, allocations: 4 kB / 382 MB, free: 14.27 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000166/0.004678, allocations: 117.8 kB / 382.1 MB, free: 14.11 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.712e-05/0.004705, allocations: 51.36 kB / 382.2 MB, free: 14.04 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.53e-06/0.004711, allocations: 3.984 kB / 382.2 MB, free: 14.04 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.278e-05/0.004724, allocations: 12.5 kB / 382.2 MB, free: 14.03 MB / 362.7 MB Notification: Performance of SimCode: time 4.1e-07/0.004724, allocations: 0 / 382.2 MB, free: 14.03 MB / 362.7 MB Notification: Performance of Templates: time 0.002472/0.007197, allocations: 0.619 MB / 382.8 MB, free: 13.41 MB / 362.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_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.0903967642225325]