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.0008255/0.0008255, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.003591/0.003591, allocations: 160.7 kB / 24.7 MB, free: 9.418 MB / 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 0.9012/0.9012, allocations: 177.1 MB / 205 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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.2734/0.2734, allocations: 32.79 MB / 294.2 MB, free: 1.215 MB / 266.7 MB " [Timeout remaining time 180] 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 2.475e-06/2.475e-06, allocations: 0 / 440.8 MB, free: 3.777 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.348e-05/2.596e-05, allocations: 2.281 kB / 440.8 MB, free: 3.773 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0009964/0.001022, allocations: 0.4884 MB / 441.3 MB, free: 3.289 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004857/0.001508, allocations: 215.5 kB / 441.5 MB, free: 3.078 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.995e-05/0.001528, allocations: 0 / 441.5 MB, free: 3.078 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.667e-05/0.001545, allocations: 0 / 441.5 MB, free: 3.078 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.442e-06/0.001551, allocations: 0 / 441.5 MB, free: 3.078 MB / 410.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.000278/0.001829, allocations: 51.7 kB / 441.6 MB, free: 3.027 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.506e-05/0.001884, allocations: 4 kB / 441.6 MB, free: 3.023 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.894e-05/0.001923, allocations: 3.984 kB / 441.6 MB, free: 3.02 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.724e-05/0.00195, allocations: 8 kB / 441.6 MB, free: 3.012 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.521e-05/0.001976, allocations: 0 / 441.6 MB, free: 3.012 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.033e-06/0.001983, allocations: 0 / 441.6 MB, free: 3.012 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001056/0.002088, allocations: 43.95 kB / 441.6 MB, free: 2.969 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.705e-06/0.002096, allocations: 0 / 441.6 MB, free: 2.969 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.993e-05/0.002116, allocations: 4 kB / 441.6 MB, free: 2.965 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001176/0.002234, allocations: 51.86 kB / 441.7 MB, free: 2.914 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.783e-06/0.002235, allocations: 0 / 441.7 MB, free: 2.914 MB / 410.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.002236, allocations: 0 / 441.7 MB, free: 2.914 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.002241, allocations: 0 / 441.7 MB, free: 2.914 MB / 410.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.0002865/0.002527, allocations: 280 kB / 441.9 MB, free: 2.602 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.002567, allocations: 16.03 kB / 442 MB, free: 2.586 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.978e-05/0.002597, allocations: 0.9375 kB / 442 MB, free: 2.586 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.106e-05/0.002658, allocations: 105.7 kB / 442.1 MB, free: 2.457 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/0.002669, allocations: 384 / 442.1 MB, free: 2.457 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.013e-05/0.002679, allocations: 8.312 kB / 442.1 MB, free: 2.449 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001092/0.002788, allocations: 59.89 kB / 442.1 MB, free: 2.379 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.002797, allocations: 192 / 442.1 MB, free: 2.379 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.092e-05/0.002808, allocations: 384 / 442.1 MB, free: 2.379 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.002815, allocations: 4.375 kB / 442.1 MB, free: 2.375 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.045e-05/0.002846, allocations: 29.64 kB / 442.2 MB, free: 2.34 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.803e-05/0.002934, allocations: 93.33 kB / 442.3 MB, free: 2.219 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.365e-05/0.002977, allocations: 52.31 kB / 442.3 MB, free: 2.152 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.054e-05/0.002998, allocations: 38.48 kB / 442.3 MB, free: 2.105 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.085e-06/0.003006, allocations: 4.062 kB / 442.3 MB, free: 2.102 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.287e-05/0.003039, allocations: 60.27 kB / 442.4 MB, free: 2.027 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 5.51e-07/0.003039, allocations: 0 / 442.4 MB, free: 2.027 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001577/0.003197, allocations: 118.8 kB / 442.5 MB, free: 1.887 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.747e-05/0.003234, allocations: 77.11 kB / 442.6 MB, free: 1.793 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.975e-05/0.003264, allocations: 89.86 kB / 442.7 MB, free: 1.695 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.488e-06/0.003274, allocations: 29.7 kB / 442.7 MB, free: 1.66 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.918e-05/0.003293, allocations: 84.27 kB / 442.8 MB, free: 1.574 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.484e-05/0.003308, allocations: 3.953 kB / 442.8 MB, free: 1.57 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.907e-05/0.003327, allocations: 9.719 kB / 442.8 MB, free: 1.555 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.789e-05/0.003415, allocations: 322.8 kB / 443.1 MB, free: 1.23 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.643e-05/0.003431, allocations: 29.64 kB / 443.2 MB, free: 1.195 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.289e-05/0.003444, allocations: 25.7 kB / 443.2 MB, free: 1.164 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.674e-05/0.003481, allocations: 64.25 kB / 443.2 MB, free: 1.086 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.003483, allocations: 0 / 443.2 MB, free: 1.086 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.029e-05/0.003533, allocations: 89.11 kB / 443.3 MB, free: 0.9805 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.41e-05/0.003557, allocations: 33.8 kB / 443.4 MB, free: 0.9414 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.003561, allocations: 4 kB / 443.4 MB, free: 0.9375 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.003573, allocations: 3.984 kB / 443.4 MB, free: 0.9336 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.623e-06/0.003575, allocations: 4 kB / 443.4 MB, free: 0.9297 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.509e-06/0.003579, allocations: 0 / 443.4 MB, free: 0.9297 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.161e-05/0.003591, allocations: 3.938 kB / 443.4 MB, free: 0.9258 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.53e-06/0.003597, allocations: 3.938 kB / 443.4 MB, free: 0.9219 MB / 410.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.6e-05/0.003653, allocations: 139.5 kB / 443.5 MB, free: 0.7695 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.747e-06/0.003656, allocations: 3.984 kB / 443.5 MB, free: 0.7656 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.518e-06/0.003666, allocations: 3 kB / 443.5 MB, free: 0.7578 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.003668, allocations: 4 kB / 443.5 MB, free: 0.7539 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.003672, allocations: 4 kB / 443.5 MB, free: 0.75 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.003674, allocations: 0 / 443.5 MB, free: 0.75 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.831e-05/0.003722, allocations: 101.2 kB / 443.6 MB, free: 0.6211 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.21e-07/0.003723, allocations: 0 / 443.6 MB, free: 0.6211 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.21e-07/0.003723, allocations: 0 / 443.6 MB, free: 0.6211 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.003726, allocations: 4 kB / 443.6 MB, free: 0.6172 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.141e-06/0.003732, allocations: 0 / 443.6 MB, free: 0.6172 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.21e-07/0.003732, allocations: 3.938 kB / 443.6 MB, free: 0.6133 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.01e-07/0.003733, allocations: 0 / 443.6 MB, free: 0.6133 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.86e-05/0.003801, allocations: 120.5 kB / 443.8 MB, free: 476 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.457e-06/0.003805, allocations: 4.031 kB / 443.8 MB, free: 472 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.117e-06/0.003814, allocations: 4 kB / 443.8 MB, free: 468 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.158e-06/0.003818, allocations: 0 / 443.8 MB, free: 468 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.334e-05/0.003831, allocations: 4 kB / 443.8 MB, free: 464 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.493e-06/0.003833, allocations: 0 / 443.8 MB, free: 464 kB / 410.7 MB Notification: Performance of sorting global known variables: time 2.053e-05/0.003853, allocations: 79.22 kB / 443.8 MB, free: 384 kB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.003853, allocations: 0 / 443.8 MB, free: 384 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001365/0.00399, allocations: 19.92 kB / 443.9 MB, free: 364 kB / 410.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.0002931/0.004283, allocations: 203.9 kB / 444.1 MB, free: 188 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.432e-05/0.004377, allocations: 110.8 kB / 444.2 MB, free: 52 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.004379, allocations: 4.062 kB / 444.2 MB, free: 48 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.169/0.1733, allocations: 84.34 kB / 444.3 MB, free: 46.37 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001166/0.1735, allocations: 2.938 kB / 444.3 MB, free: 46.37 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002061/0.1737, allocations: 129.4 kB / 444.4 MB, free: 46.22 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.72e-05/0.1737, allocations: 59.72 kB / 444.4 MB, free: 46.15 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.355e-05/0.1737, allocations: 11.41 kB / 444.5 MB, free: 46.15 MB / 410.7 MB Notification: Performance of SimCode: time 8.92e-07/0.1737, allocations: 0 / 444.5 MB, free: 46.15 MB / 410.7 MB Notification: Performance of Templates: time 0.001711/0.1754, allocations: 0.7573 MB / 445.2 MB, free: 46.11 MB / 410.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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) [Timeout 480] 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.736694958992302]