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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001754/0.001754, allocations: 101.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002182/0.002182, allocations: 194 kB / 18.77 MB, free: 4.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.418/2.418, allocations: 222.9 MB / 242.4 MB, free: 15.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4539/0.4539, allocations: 44.17 MB / 336.8 MB, free: 3.027 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002608/0.002608, allocations: 64.97 kB / 408.3 MB, free: 27.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1701/0.1727, allocations: 60.83 MB / 469.2 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.002757/0.1756, allocations: 0.5333 MB / 469.7 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007899/0.1764, allocations: 209.9 kB / 469.9 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.532e-05/0.1764, allocations: 0 / 469.9 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.295e-05/0.1764, allocations: 4 kB / 469.9 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.094e-05/0.1765, allocations: 0 / 469.9 MB, free: 14.13 MB / 350.1 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.0003265/0.1768, allocations: 39.89 kB / 470 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.552e-05/0.1769, allocations: 7.938 kB / 470 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.284e-05/0.1769, allocations: 0 / 470 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.35e-05/0.177, allocations: 7.938 kB / 470 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.587e-05/0.177, allocations: 0 / 470 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.165e-06/0.177, allocations: 0 / 470 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001584/0.1772, allocations: 47.95 kB / 470 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.075e-05/0.1772, allocations: 3.984 kB / 470 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.599e-05/0.1772, allocations: 4 kB / 470 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001169/0.1774, allocations: 27.95 kB / 470.1 MB, free: 13.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.1774, allocations: 0 / 470.1 MB, free: 13.99 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1774, allocations: 0 / 470.1 MB, free: 13.99 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.1774, allocations: 7.938 kB / 470.1 MB, free: 13.98 MB / 350.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.0004397/0.1778, allocations: 349.3 kB / 470.4 MB, free: 13.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.1779, allocations: 8.031 kB / 470.4 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.438e-05/0.178, allocations: 4.938 kB / 470.4 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001308/0.1781, allocations: 168.3 kB / 470.6 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.265e-05/0.1781, allocations: 384 / 470.6 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.085e-05/0.1781, allocations: 4.359 kB / 470.6 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001073/0.1782, allocations: 30.27 kB / 470.6 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.624e-05/0.1783, allocations: 8.109 kB / 470.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.1783, allocations: 7.938 kB / 470.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.1783, allocations: 0 / 470.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.91e-05/0.1783, allocations: 0 / 470.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001689/0.1785, allocations: 145.7 kB / 470.8 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.227e-05/0.1786, allocations: 14.58 kB / 470.8 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.063e-05/0.1786, allocations: 8.859 kB / 470.8 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.598e-06/0.1786, allocations: 4.094 kB / 470.8 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.179e-05/0.1787, allocations: 64.25 kB / 470.9 MB, free: 13.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.1787, allocations: 0 / 470.9 MB, free: 13.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002148/0.1789, allocations: 67.28 kB / 470.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.558e-05/0.179, allocations: 77.11 kB / 471 MB, free: 12.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.989e-05/0.179, allocations: 89.86 kB / 471.1 MB, free: 12.74 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.635e-05/0.1791, allocations: 25.7 kB / 471.1 MB, free: 12.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.838e-05/0.1791, allocations: 84.14 kB / 471.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.289e-05/0.1791, allocations: 0 / 471.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.902e-05/0.1792, allocations: 21.83 kB / 471.2 MB, free: 12.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.1794, allocations: 310.8 kB / 471.5 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.197e-05/0.1794, allocations: 0 / 471.5 MB, free: 12.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.268e-06/0.1794, allocations: 4 kB / 471.5 MB, free: 12.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.461e-05/0.1795, allocations: 64.2 kB / 471.6 MB, free: 12.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1795, allocations: 0 / 471.6 MB, free: 12.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.097e-05/0.1796, allocations: 63.39 kB / 471.6 MB, free: 12.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.704e-05/0.1796, allocations: 37.8 kB / 471.7 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.1796, allocations: 0 / 471.7 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.034e-05/0.1797, allocations: 3.938 kB / 471.7 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.273e-06/0.1797, allocations: 0 / 471.7 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.1797, allocations: 4 kB / 471.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.969e-05/0.1797, allocations: 0 / 471.7 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.057e-05/0.1797, allocations: 4 kB / 471.7 MB, free: 12.07 MB / 350.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 0.0001052/0.1799, allocations: 131.5 kB / 471.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.294e-05/0.1799, allocations: 0 / 471.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.144e-05/0.1799, allocations: 22.94 kB / 471.8 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.1799, allocations: 4 kB / 471.9 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.1799, allocations: 3.938 kB / 471.9 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.1799, allocations: 0 / 471.9 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001435/0.1801, allocations: 145.7 kB / 472 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1801, allocations: 0 / 472 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.82e-07/0.1801, allocations: 0 / 472 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.1801, allocations: 0 / 472 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.1801, allocations: 7.938 kB / 472 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.1801, allocations: 7.922 kB / 472 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.1802, allocations: 0 / 472 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001208/0.1803, allocations: 90.84 kB / 472.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.474e-05/0.1804, allocations: 81.09 kB / 472.2 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.896e-05/0.1804, allocations: 3.938 kB / 472.2 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.211e-05/0.1804, allocations: 0 / 472.2 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.31e-05/0.1804, allocations: 0 / 472.2 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.352e-06/0.1804, allocations: 4 kB / 472.2 MB, free: 11.47 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.674e-05/0.1805, allocations: 75.28 kB / 472.3 MB, free: 11.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1805, allocations: 4.031 kB / 472.3 MB, free: 11.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003256/0.1808, allocations: 16 kB / 472.3 MB, free: 11.38 MB / 350.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.0005607/0.1814, allocations: 202 kB / 472.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001264/0.1815, allocations: 63.34 kB / 472.5 MB, free: 11.13 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1816, allocations: 0 / 472.5 MB, free: 11.13 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.424e-05/0.1816, allocations: 59.39 kB / 472.6 MB, free: 11.06 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001786/0.1818, allocations: 0 / 472.6 MB, free: 11.06 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002299/0.182, allocations: 116.4 kB / 472.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003246/0.1824, allocations: 0.6692 MB / 473.4 MB, free: 10.22 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.228e-05/0.1824, allocations: 7.438 kB / 473.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1824, allocations: 0 / 473.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of Templates: time 0.003207/0.1856, allocations: 0.76 MB / 474.2 MB, free: 9.453 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.makefile (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) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches