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.001643/0.001643, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002007/0.002007, allocations: 211.5 kB / 23.73 MB, free: 4.387 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.518/1.518, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.2447/0.2447, allocations: 46.96 MB / 360.9 MB, free: 4.027 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.002035/0.002035, allocations: 67.91 kB / 0.4966 GB, free: 7.219 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.327/0.3291, allocations: 66.04 MB / 0.5611 GB, free: 4.164 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001697/0.3308, allocations: 485 kB / 0.5615 GB, free: 3.688 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006519/0.3314, allocations: 225.7 kB / 0.5617 GB, free: 3.469 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.245e-05/0.3314, allocations: 0 / 0.5617 GB, free: 3.469 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.481e-05/0.3315, allocations: 0 / 0.5617 GB, free: 3.469 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.451e-06/0.3315, allocations: 0 / 0.5617 GB, free: 3.469 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.0003026/0.3318, allocations: 47.83 kB / 0.5618 GB, free: 3.422 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.833e-05/0.3318, allocations: 0 / 0.5618 GB, free: 3.422 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.268e-05/0.3319, allocations: 0 / 0.5618 GB, free: 3.422 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.71e-05/0.3319, allocations: 4 kB / 0.5618 GB, free: 3.418 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.061e-05/0.3319, allocations: 4 kB / 0.5618 GB, free: 3.414 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.32e-06/0.3319, allocations: 0 / 0.5618 GB, free: 3.414 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001239/0.332, allocations: 47.95 kB / 0.5618 GB, free: 3.367 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.798e-06/0.332, allocations: 11.92 kB / 0.5618 GB, free: 3.355 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.708e-05/0.332, allocations: 3.938 kB / 0.5618 GB, free: 3.352 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001216/0.3322, allocations: 43.73 kB / 0.5619 GB, free: 3.312 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.3322, allocations: 0 / 0.5619 GB, free: 3.312 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3322, allocations: 0 / 0.5619 GB, free: 3.312 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.3322, allocations: 0 / 0.5619 GB, free: 3.312 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.00034/0.3325, allocations: 278.6 kB / 0.5622 GB, free: 3.008 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.3326, allocations: 8.031 kB / 0.5622 GB, free: 3 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.913e-05/0.3326, allocations: 4.938 kB / 0.5622 GB, free: 2.996 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.526e-05/0.3327, allocations: 102.5 kB / 0.5623 GB, free: 2.871 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.321e-05/0.3327, allocations: 8.312 kB / 0.5623 GB, free: 2.863 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.224e-06/0.3327, allocations: 384 / 0.5623 GB, free: 2.863 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001056/0.3328, allocations: 55.97 kB / 0.5623 GB, free: 2.797 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.3328, allocations: 192 / 0.5623 GB, free: 2.797 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.3328, allocations: 3.938 kB / 0.5623 GB, free: 2.793 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.3328, allocations: 0 / 0.5623 GB, free: 2.793 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.517e-05/0.3329, allocations: 29.69 kB / 0.5624 GB, free: 2.758 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001273/0.333, allocations: 109.2 kB / 0.5625 GB, free: 2.621 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.038e-05/0.3331, allocations: 48.22 kB / 0.5625 GB, free: 2.559 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.499e-05/0.3331, allocations: 34.66 kB / 0.5625 GB, free: 2.516 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.248e-06/0.3331, allocations: 0 / 0.5625 GB, free: 2.516 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.888e-05/0.3332, allocations: 56.27 kB / 0.5626 GB, free: 2.445 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.3332, allocations: 0 / 0.5626 GB, free: 2.445 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001948/0.3334, allocations: 122.7 kB / 0.5627 GB, free: 2.301 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.216e-05/0.3334, allocations: 81.11 kB / 0.5628 GB, free: 2.203 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.868e-05/0.3335, allocations: 93.81 kB / 0.5629 GB, free: 2.102 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.535e-05/0.3335, allocations: 25.7 kB / 0.5629 GB, free: 2.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.287e-05/0.3335, allocations: 80.14 kB / 0.563 GB, free: 1.988 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.74e-05/0.3335, allocations: 4.125 kB / 0.563 GB, free: 1.984 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.375e-05/0.3336, allocations: 21.7 kB / 0.563 GB, free: 1.957 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.3337, allocations: 314.8 kB / 0.5633 GB, free: 1.641 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.312e-05/0.3337, allocations: 25.7 kB / 0.5633 GB, free: 1.609 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.066e-05/0.3338, allocations: 29.7 kB / 0.5634 GB, free: 1.574 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.006e-05/0.3338, allocations: 60.27 kB / 0.5634 GB, free: 1.5 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.3338, allocations: 0 / 0.5634 GB, free: 1.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.461e-05/0.3339, allocations: 89.09 kB / 0.5635 GB, free: 1.395 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.96e-05/0.3339, allocations: 33.7 kB / 0.5635 GB, free: 1.355 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.3339, allocations: 4.094 kB / 0.5635 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.088e-05/0.334, allocations: 0 / 0.5635 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.996e-06/0.334, allocations: 3.938 kB / 0.5635 GB, free: 1.348 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.334, allocations: 3.984 kB / 0.5635 GB, free: 1.344 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.642e-05/0.334, allocations: 4 kB / 0.5635 GB, free: 1.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.284e-06/0.334, allocations: 7.875 kB / 0.5636 GB, free: 1.332 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.622e-05/0.3341, allocations: 135.5 kB / 0.5637 GB, free: 1.184 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.056e-05/0.3341, allocations: 4 kB / 0.5637 GB, free: 1.18 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.477e-06/0.3341, allocations: 3 kB / 0.5637 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.3341, allocations: 3.938 kB / 0.5637 GB, free: 1.172 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.3341, allocations: 7.984 kB / 0.5637 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.3341, allocations: 0 / 0.5637 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.656e-05/0.3342, allocations: 101.3 kB / 0.5638 GB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.3342, allocations: 0 / 0.5638 GB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.3342, allocations: 0 / 0.5638 GB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.172e-06/0.3342, allocations: 0 / 0.5638 GB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-06/0.3342, allocations: 11.92 kB / 0.5638 GB, free: 1.023 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.51e-07/0.3342, allocations: 0 / 0.5638 GB, free: 1.023 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.3342, allocations: 3.938 kB / 0.5638 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001162/0.3343, allocations: 116.5 kB / 0.5639 GB, free: 0.875 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.714e-06/0.3343, allocations: 12.02 kB / 0.5639 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.064e-05/0.3344, allocations: 0 / 0.5639 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.155e-06/0.3344, allocations: 0 / 0.5639 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.385e-05/0.3344, allocations: 7.875 kB / 0.5639 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-06/0.3344, allocations: 0 / 0.5639 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.347e-05/0.3344, allocations: 79.28 kB / 0.564 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3344, allocations: 0 / 0.564 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002237/0.3346, allocations: 19.94 kB / 0.564 GB, free: 0.7578 MB / 398.1 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.0004269/0.3351, allocations: 185.2 kB / 0.5642 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001166/0.3352, allocations: 114.8 kB / 0.5643 GB, free: 476 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.3352, allocations: 0 / 0.5643 GB, free: 476 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.879e-05/0.3352, allocations: 85.17 kB / 0.5644 GB, free: 372 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001158/0.3354, allocations: 0 / 0.5644 GB, free: 372 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001899/0.3355, allocations: 114.7 kB / 0.5645 GB, free: 224 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.551e-05/0.3356, allocations: 55.36 kB / 0.5646 GB, free: 148 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.94e-06/0.3356, allocations: 0 / 0.5646 GB, free: 148 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.776e-05/0.3356, allocations: 7.438 kB / 0.5646 GB, free: 140 kB / 398.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3356, allocations: 3.938 kB / 0.5646 GB, free: 136 kB / 398.1 MB Notification: Performance of Templates: time 0.003189/0.3388, allocations: 0.5847 MB / 0.5652 GB, free: 15.55 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins/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.103414710611105]