Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.002268/0.002268, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.002123/0.002123, allocations: 169.3 kB / 24.28 MB, free: 152 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.58/1.58, allocations: 177.1 MB / 204.6 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3657/0.3657, allocations: 32.8 MB / 293.9 MB, free: 1.215 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.0_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 375.2 MB, free: 5.023 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.567e-05/2.7e-05, allocations: 5.406 kB / 375.2 MB, free: 5.02 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001456/0.001483, allocations: 0.4931 MB / 375.7 MB, free: 4.523 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.000566/0.002049, allocations: 215.5 kB / 375.9 MB, free: 4.312 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.936e-05/0.002068, allocations: 0 / 375.9 MB, free: 4.312 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 9.418e-06/0.002078, allocations: 0 / 375.9 MB, free: 4.312 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.038e-06/0.002082, allocations: 0 / 375.9 MB, free: 4.312 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:290:3-321: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.0002621/0.002344, allocations: 43.81 kB / 376 MB, free: 4.27 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.338e-05/0.002387, allocations: 4 kB / 376 MB, free: 4.266 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.019e-05/0.002418, allocations: 4 kB / 376 MB, free: 4.262 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.7e-05/0.002445, allocations: 0 / 376 MB, free: 4.262 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.537e-05/0.00247, allocations: 3.984 kB / 376 MB, free: 4.258 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.402e-06/0.002476, allocations: 3.938 kB / 376 MB, free: 4.254 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001169/0.002593, allocations: 43.97 kB / 376 MB, free: 4.211 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.847e-06/0.002602, allocations: 3.938 kB / 376 MB, free: 4.207 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.785e-05/0.00262, allocations: 3.984 kB / 376 MB, free: 4.203 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001372/0.002757, allocations: 55.86 kB / 376.1 MB, free: 4.148 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.774e-06/0.002759, allocations: 0 / 376.1 MB, free: 4.148 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.91e-07/0.002759, allocations: 0 / 376.1 MB, free: 4.148 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.076e-06/0.002762, allocations: 4 kB / 376.1 MB, free: 4.145 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.0003977/0.00316, allocations: 374 kB / 376.5 MB, free: 3.734 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.003198, allocations: 12.02 kB / 376.5 MB, free: 3.723 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.829e-05/0.003236, allocations: 4.938 kB / 376.5 MB, free: 3.719 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001041/0.00334, allocations: 108.6 kB / 376.6 MB, free: 3.586 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.369e-05/0.003354, allocations: 4.375 kB / 376.6 MB, free: 3.582 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.328e-06/0.003363, allocations: 4.312 kB / 376.6 MB, free: 3.578 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001113/0.003474, allocations: 59.97 kB / 376.7 MB, free: 3.508 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.315e-06/0.003483, allocations: 192 / 376.7 MB, free: 3.508 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.243e-06/0.00349, allocations: 384 / 376.7 MB, free: 3.508 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.003494, allocations: 384 / 376.7 MB, free: 3.508 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.948e-05/0.003533, allocations: 37.64 kB / 376.7 MB, free: 3.465 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001444/0.003678, allocations: 108.6 kB / 376.8 MB, free: 3.324 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.922e-05/0.003757, allocations: 52.8 kB / 376.9 MB, free: 3.254 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.603e-05/0.003793, allocations: 41.27 kB / 376.9 MB, free: 3.203 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.04e-05/0.003803, allocations: 4.062 kB / 376.9 MB, free: 3.199 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.843e-05/0.003862, allocations: 63.09 kB / 377 MB, free: 3.121 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.003863, allocations: 0 / 377 MB, free: 3.121 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002172/0.00408, allocations: 114.8 kB / 377.1 MB, free: 2.984 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.181e-05/0.004142, allocations: 81.11 kB / 377.2 MB, free: 2.887 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.986e-05/0.004232, allocations: 146.4 kB / 377.3 MB, free: 2.73 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.31e-05/0.004255, allocations: 29.7 kB / 377.3 MB, free: 2.695 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.526e-05/0.00432, allocations: 126.9 kB / 377.4 MB, free: 2.566 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.568e-05/0.004336, allocations: 0 / 377.4 MB, free: 2.566 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.681e-05/0.004373, allocations: 19.38 kB / 377.5 MB, free: 2.539 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002681/0.004641, allocations: 0.4883 MB / 378 MB, free: 2.039 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.351e-05/0.004674, allocations: 29.64 kB / 378 MB, free: 2.004 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.38e-05/0.004698, allocations: 29.7 kB / 378 MB, free: 1.969 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.697e-05/0.004765, allocations: 67.09 kB / 378.1 MB, free: 1.887 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.004766, allocations: 0 / 378.1 MB, free: 1.887 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001002/0.004867, allocations: 93.16 kB / 378.2 MB, free: 1.777 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.404e-05/0.004901, allocations: 29.7 kB / 378.2 MB, free: 1.742 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.506e-06/0.004904, allocations: 0 / 378.2 MB, free: 1.742 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.004919, allocations: 3.984 kB / 378.2 MB, free: 1.738 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.71e-07/0.00492, allocations: 0 / 378.2 MB, free: 1.738 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.757e-06/0.004924, allocations: 0 / 378.2 MB, free: 1.738 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.446e-05/0.004938, allocations: 7.938 kB / 378.2 MB, free: 1.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.42e-06/0.004944, allocations: 0 / 378.2 MB, free: 1.73 MB / 346.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 0.0001297/0.005073, allocations: 194.2 kB / 378.4 MB, free: 1.523 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.06e-05/0.005084, allocations: 3.953 kB / 378.4 MB, free: 1.52 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.472e-06/0.00509, allocations: 7.031 kB / 378.4 MB, free: 1.516 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.005092, allocations: 0 / 378.4 MB, free: 1.516 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.005094, allocations: 0 / 378.4 MB, free: 1.516 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.005096, allocations: 0 / 378.4 MB, free: 1.516 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001/0.005196, allocations: 112.6 kB / 378.5 MB, free: 1.371 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.005197, allocations: 0 / 378.5 MB, free: 1.371 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-07/0.005198, allocations: 0 / 378.5 MB, free: 1.371 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-06/0.005199, allocations: 0 / 378.5 MB, free: 1.371 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.64e-06/0.005205, allocations: 0 / 378.5 MB, free: 1.371 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.01e-07/0.005205, allocations: 0 / 378.5 MB, free: 1.371 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.005208, allocations: 11.92 kB / 378.5 MB, free: 1.359 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001405/0.005349, allocations: 131.8 kB / 378.7 MB, free: 1.195 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.982e-06/0.005355, allocations: 3.984 kB / 378.7 MB, free: 1.191 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.293e-05/0.005368, allocations: 4 kB / 378.7 MB, free: 1.188 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.256e-06/0.005376, allocations: 4 kB / 378.7 MB, free: 1.184 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.246e-05/0.005398, allocations: 3.938 kB / 378.7 MB, free: 1.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-06/0.005401, allocations: 0 / 378.7 MB, free: 1.18 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.519e-05/0.005466, allocations: 123.2 kB / 378.8 MB, free: 1.059 MB / 346.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005466, allocations: 0 / 378.8 MB, free: 1.059 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002163/0.005683, allocations: 19.94 kB / 378.8 MB, free: 1.039 MB / 346.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.0005933/0.006276, allocations: 208.3 kB / 379 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001536/0.00643, allocations: 122.5 kB / 379.1 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.006431, allocations: 0 / 379.1 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.666e-05/0.006498, allocations: 92.8 kB / 379.2 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001101/0.006608, allocations: 4 kB / 379.2 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000207/0.006815, allocations: 113.6 kB / 379.3 MB, free: 460 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.156e-05/0.006866, allocations: 55.36 kB / 379.4 MB, free: 384 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.187e-06/0.006871, allocations: 3.938 kB / 379.4 MB, free: 380 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.346e-05/0.006884, allocations: 8.5 kB / 379.4 MB, free: 372 kB / 346.7 MB Notification: Performance of SimCode: time 4.21e-07/0.006884, allocations: 0 / 379.4 MB, free: 372 kB / 346.7 MB Notification: Performance of Templates: time 0.003431/0.01032, allocations: 0.6211 MB / 380 MB, free: 15.75 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 4.798874818021432]