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.0009833/0.0009834, allocations: 99.66 kB / 16.99 MB, free: 6.398 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.0009486/0.0009488, allocations: 183.8 kB / 17.87 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 223.2 MB / 241.8 MB, free: 388 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2109/0.2109, allocations: 44.22 MB / 337.1 MB, free: 2.914 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003242/0.0003242, allocations: 14.03 kB / 409.5 MB, free: 27.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1368, allocations: 61.91 MB / 471.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.0006677/0.1376, allocations: 205.2 kB / 471.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005075/0.1381, allocations: 207.2 kB / 471.8 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.449e-05/0.1381, allocations: 0 / 471.8 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.204e-05/0.1381, allocations: 0 / 471.8 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.195e-06/0.1381, allocations: 0 / 471.8 MB, free: 13.37 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.0002798/0.1384, allocations: 31.97 kB / 471.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.662e-05/0.1385, allocations: 3.938 kB / 471.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.015e-05/0.1385, allocations: 0 / 471.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.391e-05/0.1386, allocations: 3.984 kB / 471.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.001e-05/0.1386, allocations: 7.938 kB / 471.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.192e-06/0.1386, allocations: 0 / 471.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.395e-05/0.1387, allocations: 43.95 kB / 471.9 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.735e-06/0.1387, allocations: 0 / 471.9 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.293e-05/0.1388, allocations: 25.7 kB / 472 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.412e-05/0.1389, allocations: 23.97 kB / 472 MB, free: 13.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.1389, allocations: 0 / 472 MB, free: 13.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.925e-06/0.1389, allocations: 0 / 472 MB, free: 13.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.1389, allocations: 0 / 472 MB, free: 13.22 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.0003588/0.1392, allocations: 353.1 kB / 472.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.1393, allocations: 12.03 kB / 472.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.263e-05/0.1393, allocations: 0 / 472.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.985e-05/0.1394, allocations: 167.1 kB / 472.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.241e-05/0.1395, allocations: 0 / 472.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.069e-05/0.1395, allocations: 0 / 472.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.897e-05/0.1396, allocations: 33.66 kB / 472.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.944e-06/0.1396, allocations: 0 / 472.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.1396, allocations: 0 / 472.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.1396, allocations: 3.938 kB / 472.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.996e-05/0.1396, allocations: 3.984 kB / 472.5 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001459/0.1398, allocations: 153.7 kB / 472.7 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.603e-05/0.1398, allocations: 18.58 kB / 472.7 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.414e-06/0.1399, allocations: 0 / 472.7 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.025e-05/0.1399, allocations: 64.3 kB / 472.8 MB, free: 12.26 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.11e-07/0.1399, allocations: 0 / 472.8 MB, free: 12.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001979/0.1401, allocations: 71.28 kB / 472.8 MB, free: 12.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.514e-05/0.1402, allocations: 77.11 kB / 472.9 MB, free: 12.08 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.318e-05/0.1402, allocations: 97.98 kB / 473 MB, free: 11.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.949e-05/0.1403, allocations: 25.7 kB / 473 MB, free: 11.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.868e-05/0.1403, allocations: 80.14 kB / 473.1 MB, free: 11.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.016e-05/0.1403, allocations: 0 / 473.1 MB, free: 11.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.334e-06/0.1403, allocations: 0 / 473.1 MB, free: 11.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.1405, allocations: 314.8 kB / 473.4 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.416e-06/0.1405, allocations: 0 / 473.4 MB, free: 11.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.29e-06/0.1405, allocations: 0 / 473.4 MB, free: 11.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.114e-05/0.1405, allocations: 25.77 kB / 473.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.1405, allocations: 8 kB / 473.5 MB, free: 11.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.671e-05/0.1406, allocations: 67.33 kB / 473.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.887e-05/0.1407, allocations: 33.7 kB / 473.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.1407, allocations: 0 / 473.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.1407, allocations: 3.953 kB / 473.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.032e-06/0.1407, allocations: 3.938 kB / 473.6 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.129e-06/0.1407, allocations: 0 / 473.6 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.797e-05/0.1407, allocations: 0 / 473.6 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.284e-06/0.1408, allocations: 0 / 473.6 MB, free: 11.38 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001036/0.1409, allocations: 144.1 kB / 473.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.272e-06/0.1409, allocations: 0 / 473.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.246e-05/0.1409, allocations: 7.078 kB / 473.7 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.1409, allocations: 0 / 473.7 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.1409, allocations: 11.95 kB / 473.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-06/0.1409, allocations: 0 / 473.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.23e-05/0.141, allocations: 141.7 kB / 473.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.141, allocations: 0 / 473.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.268e-05/0.141, allocations: 3.984 kB / 473.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.1411, allocations: 0 / 473.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.926e-06/0.1411, allocations: 8 kB / 473.9 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.1411, allocations: 0 / 473.9 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1411, allocations: 0 / 473.9 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.299e-05/0.1412, allocations: 90.73 kB / 474 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.777e-05/0.1412, allocations: 85.09 kB / 474 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.279e-05/0.1412, allocations: 0 / 474 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.052e-05/0.1413, allocations: 4 kB / 474 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.083e-05/0.1413, allocations: 4.031 kB / 474 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/0.1413, allocations: 4 kB / 474.1 MB, free: 10.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.969e-05/0.1413, allocations: 79.23 kB / 474.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1413, allocations: 3.938 kB / 474.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002394/0.1416, allocations: 16 kB / 474.1 MB, free: 10.68 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000417/0.142, allocations: 207 kB / 474.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001014/0.1421, allocations: 63.39 kB / 474.4 MB, free: 10.44 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1421, allocations: 8.062 kB / 474.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.141e-05/0.1422, allocations: 59.28 kB / 474.5 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.329e-05/0.1423, allocations: 4 kB / 474.5 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001835/0.1425, allocations: 70.77 kB / 474.6 MB, free: 10.26 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002677/0.1427, allocations: 0.677 MB / 475.2 MB, free: 9.559 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.6e-06/0.1427, allocations: 0 / 475.2 MB, free: 9.559 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.137e-05/0.1428, allocations: 7.438 kB / 475.2 MB, free: 9.551 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.1428, allocations: 0 / 475.2 MB, free: 9.551 MB / 350.1 MB Notification: Performance of Templates: time 0.003001/0.1458, allocations: 0.5625 MB / 475.8 MB, free: 8.988 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestWriteFile/TestWriteFile.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches