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.001974/0.001974, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002387/0.002387, allocations: 203.6 kB / 23.73 MB, free: 4.379 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.598/1.598, 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.2388/0.2388, allocations: 46.96 MB / 360.9 MB, free: 4.047 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.002772/0.002772, allocations: 71.84 kB / 0.4966 GB, free: 7.25 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3359/0.3386, allocations: 66.04 MB / 0.5611 GB, free: 4.203 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001653/0.3403, allocations: 481.1 kB / 0.5615 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007088/0.341, allocations: 225.6 kB / 0.5617 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.785e-05/0.341, allocations: 0 / 0.5617 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.021e-05/0.341, allocations: 0 / 0.5617 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.264e-06/0.3411, allocations: 0 / 0.5617 GB, free: 3.512 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.0003496/0.3414, allocations: 47.83 kB / 0.5618 GB, free: 3.465 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.46e-05/0.3415, allocations: 4 kB / 0.5618 GB, free: 3.461 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.691e-05/0.3415, allocations: 4 kB / 0.5618 GB, free: 3.457 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.309e-05/0.3415, allocations: 7.922 kB / 0.5618 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.034e-05/0.3416, allocations: 0 / 0.5618 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.486e-06/0.3416, allocations: 0 / 0.5618 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001477/0.3417, allocations: 55.95 kB / 0.5618 GB, free: 3.395 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.037e-05/0.3417, allocations: 0 / 0.5618 GB, free: 3.395 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.52e-05/0.3418, allocations: 0 / 0.5618 GB, free: 3.395 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001373/0.3419, allocations: 43.75 kB / 0.5619 GB, free: 3.355 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.3419, allocations: 0 / 0.5619 GB, free: 3.355 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3419, allocations: 0 / 0.5619 GB, free: 3.355 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.159e-05/0.3419, allocations: 4 kB / 0.5619 GB, free: 3.352 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.0003931/0.3423, allocations: 274.6 kB / 0.5622 GB, free: 3.051 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.3424, allocations: 11.97 kB / 0.5622 GB, free: 3.039 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.336e-05/0.3424, allocations: 4.875 kB / 0.5622 GB, free: 3.035 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.513e-05/0.3425, allocations: 114.5 kB / 0.5623 GB, free: 2.898 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.166e-06/0.3425, allocations: 384 / 0.5623 GB, free: 2.898 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.033e-05/0.3425, allocations: 384 / 0.5623 GB, free: 2.898 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001181/0.3426, allocations: 55.97 kB / 0.5623 GB, free: 2.832 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.3426, allocations: 192 / 0.5623 GB, free: 2.832 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.3426, allocations: 3.938 kB / 0.5623 GB, free: 2.828 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.63e-06/0.3426, allocations: 0 / 0.5623 GB, free: 2.828 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.563e-05/0.3427, allocations: 33.7 kB / 0.5624 GB, free: 2.789 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001283/0.3428, allocations: 105.2 kB / 0.5625 GB, free: 2.656 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.298e-05/0.3429, allocations: 56.19 kB / 0.5625 GB, free: 2.586 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.102e-05/0.3429, allocations: 30.56 kB / 0.5625 GB, free: 2.547 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.795e-06/0.3429, allocations: 0 / 0.5625 GB, free: 2.547 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.195e-05/0.343, allocations: 60.33 kB / 0.5626 GB, free: 2.473 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.343, allocations: 0 / 0.5626 GB, free: 2.473 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002127/0.3432, allocations: 122.7 kB / 0.5627 GB, free: 2.328 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/0.3433, allocations: 81.05 kB / 0.5628 GB, free: 2.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.659e-05/0.3434, allocations: 93.94 kB / 0.5629 GB, free: 2.129 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.625e-05/0.3434, allocations: 29.7 kB / 0.5629 GB, free: 2.094 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.866e-05/0.3435, allocations: 80.14 kB / 0.563 GB, free: 2.012 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.07e-05/0.3435, allocations: 4 kB / 0.563 GB, free: 2.008 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.944e-05/0.3435, allocations: 9.719 kB / 0.563 GB, free: 1.992 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002098/0.3437, allocations: 310.8 kB / 0.5633 GB, free: 1.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.016e-05/0.3437, allocations: 37.69 kB / 0.5633 GB, free: 1.637 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.799e-05/0.3438, allocations: 25.7 kB / 0.5634 GB, free: 1.605 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001221/0.3439, allocations: 60.27 kB / 0.5634 GB, free: 1.531 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3439, allocations: 0 / 0.5634 GB, free: 1.531 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001079/0.344, allocations: 97.16 kB / 0.5635 GB, free: 1.418 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.361e-05/0.344, allocations: 29.7 kB / 0.5635 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.344, allocations: 0 / 0.5635 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.3441, allocations: 3.938 kB / 0.5635 GB, free: 1.379 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.035e-06/0.3441, allocations: 7.938 kB / 0.5636 GB, free: 1.371 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.04e-06/0.3441, allocations: 0 / 0.5636 GB, free: 1.371 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.572e-05/0.3441, allocations: 0 / 0.5636 GB, free: 1.371 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.506e-06/0.3441, allocations: 0 / 0.5636 GB, free: 1.371 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.611e-05/0.3442, allocations: 139.5 kB / 0.5637 GB, free: 1.219 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.176e-06/0.3442, allocations: 0 / 0.5637 GB, free: 1.219 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.331e-05/0.3442, allocations: 11.02 kB / 0.5637 GB, free: 1.207 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.3442, allocations: 3.938 kB / 0.5637 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.3442, allocations: 0 / 0.5637 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.3442, allocations: 0 / 0.5637 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.843e-05/0.3443, allocations: 97.33 kB / 0.5638 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.3443, allocations: 0 / 0.5638 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.3443, allocations: 0 / 0.5638 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.3443, allocations: 0 / 0.5638 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.652e-06/0.3443, allocations: 0 / 0.5638 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.3443, allocations: 4 kB / 0.5638 GB, free: 1.074 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.3443, allocations: 3.938 kB / 0.5638 GB, free: 1.07 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001258/0.3444, allocations: 124.5 kB / 0.5639 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.604e-06/0.3444, allocations: 7.984 kB / 0.5639 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.241e-05/0.3445, allocations: 0 / 0.5639 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.243e-05/0.3445, allocations: 3.984 kB / 0.5639 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.934e-05/0.3445, allocations: 11.88 kB / 0.5639 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.598e-06/0.3445, allocations: 4 kB / 0.5639 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.98e-05/0.3445, allocations: 75.28 kB / 0.564 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3445, allocations: 0 / 0.564 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000264/0.3448, allocations: 15.94 kB / 0.564 GB, free: 0.8008 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.0005005/0.3453, allocations: 197.1 kB / 0.5642 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001464/0.3454, allocations: 114.8 kB / 0.5643 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3454, allocations: 0 / 0.5643 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.04e-05/0.3455, allocations: 85.09 kB / 0.5644 GB, free: 404 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001393/0.3456, allocations: 9.297 kB / 0.5644 GB, free: 400 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002323/0.3459, allocations: 114.6 kB / 0.5645 GB, free: 252 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.494e-05/0.3459, allocations: 55.34 kB / 0.5646 GB, free: 176 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.342e-06/0.3459, allocations: 3.938 kB / 0.5646 GB, free: 172 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.801e-05/0.346, allocations: 11.44 kB / 0.5646 GB, free: 160 kB / 398.1 MB Notification: Performance of SimCode: time 3.91e-07/0.346, allocations: 0 / 0.5646 GB, free: 160 kB / 398.1 MB Notification: Performance of Templates: time 0.003858/0.3498, allocations: 0.5846 MB / 0.5652 GB, free: 15.58 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.1652600057423115]