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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001686/0.001686, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 222.9 MB / 241.6 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001114/0.001113, allocations: 101.1 kB / 291.9 MB, free: 10.97 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.368/0.368, allocations: 44.13 MB / 386.1 MB, free: 38.03 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009674/0.0009675, allocations: 56.11 kB / 457.7 MB, free: 2.336 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4378/0.4387, allocations: 60.8 MB / 0.5064 GB, free: 38.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.002083/0.4409, allocations: 0.549 MB / 0.5069 GB, free: 37.93 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008034/0.4417, allocations: 202.1 kB / 0.5071 GB, free: 37.81 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.594e-05/0.4417, allocations: 0 / 0.5071 GB, free: 37.81 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 2.321e-05/0.4418, allocations: 0 / 0.5071 GB, free: 37.81 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.933e-06/0.4418, allocations: 4 kB / 0.5071 GB, free: 37.8 MB / 378.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.0003371/0.4422, allocations: 36.86 kB / 0.5071 GB, free: 37.79 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.938e-05/0.4422, allocations: 4.172 kB / 0.5072 GB, free: 37.79 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.269e-05/0.4423, allocations: 1.062 kB / 0.5072 GB, free: 37.79 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.711e-05/0.4423, allocations: 1.062 kB / 0.5072 GB, free: 37.79 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.504e-05/0.4423, allocations: 5.156 kB / 0.5072 GB, free: 37.78 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.864e-06/0.4423, allocations: 3.984 kB / 0.5072 GB, free: 37.78 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000174/0.4425, allocations: 48.34 kB / 0.5072 GB, free: 37.76 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.215e-06/0.4425, allocations: 0 / 0.5072 GB, free: 37.76 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.376e-05/0.4426, allocations: 1 kB / 0.5072 GB, free: 37.76 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001363/0.4427, allocations: 42.48 kB / 0.5073 GB, free: 37.75 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.4427, allocations: 5.094 kB / 0.5073 GB, free: 37.74 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.4428, allocations: 0 / 0.5073 GB, free: 37.74 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.4428, allocations: 0 / 0.5073 GB, free: 37.74 MB / 378.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.0002784/0.4431, allocations: 352.4 kB / 0.5076 GB, free: 37.35 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.312e-05/0.4431, allocations: 10.34 kB / 0.5076 GB, free: 37.35 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.741e-05/0.4432, allocations: 0.9375 kB / 0.5076 GB, free: 37.35 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.479e-05/0.4432, allocations: 165.7 kB / 0.5078 GB, free: 37.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.602e-05/0.4433, allocations: 5.781 kB / 0.5078 GB, free: 37.15 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.833e-05/0.4433, allocations: 5.594 kB / 0.5078 GB, free: 37.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.393e-05/0.4434, allocations: 37.56 kB / 0.5078 GB, free: 37.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.4434, allocations: 192 / 0.5078 GB, free: 37.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.027e-05/0.4434, allocations: 4.594 kB / 0.5078 GB, free: 37.1 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.4434, allocations: 1.594 kB / 0.5078 GB, free: 37.1 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.899e-05/0.4435, allocations: 0 / 0.5078 GB, free: 37.1 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001113/0.4436, allocations: 146 kB / 0.508 GB, free: 36.91 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.048e-05/0.4436, allocations: 20.58 kB / 0.508 GB, free: 36.89 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.905e-05/0.4437, allocations: 13.98 kB / 0.508 GB, free: 36.87 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.829e-06/0.4437, allocations: 5.031 kB / 0.508 GB, free: 36.87 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.408e-05/0.4437, allocations: 58.05 kB / 0.508 GB, free: 36.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.512e-06/0.4437, allocations: 0 / 0.508 GB, free: 36.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001742/0.4439, allocations: 69.17 kB / 0.5081 GB, free: 36.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.957e-05/0.444, allocations: 79.06 kB / 0.5082 GB, free: 36.63 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.531e-05/0.444, allocations: 93.8 kB / 0.5083 GB, free: 36.53 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.716e-06/0.444, allocations: 27.52 kB / 0.5083 GB, free: 36.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.171e-05/0.4441, allocations: 84.27 kB / 0.5084 GB, free: 36.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.696e-05/0.4441, allocations: 4 kB / 0.5084 GB, free: 36.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.582e-05/0.4441, allocations: 12.48 kB / 0.5084 GB, free: 36.39 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.161e-05/0.4442, allocations: 312.5 kB / 0.5087 GB, free: 36.08 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.382e-05/0.4442, allocations: 1.125 kB / 0.5087 GB, free: 36.08 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.558e-06/0.4442, allocations: 1.859 kB / 0.5087 GB, free: 36.08 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.868e-05/0.4443, allocations: 60.45 kB / 0.5088 GB, free: 36.01 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.4443, allocations: 4.062 kB / 0.5088 GB, free: 36.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.217e-05/0.4444, allocations: 64.41 kB / 0.5088 GB, free: 35.94 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.938e-05/0.4444, allocations: 32.22 kB / 0.5089 GB, free: 35.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.4444, allocations: 0 / 0.5089 GB, free: 35.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.4444, allocations: 5 kB / 0.5089 GB, free: 35.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.253e-06/0.4445, allocations: 3.938 kB / 0.5089 GB, free: 35.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.4445, allocations: 1.781 kB / 0.5089 GB, free: 35.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.023e-05/0.4445, allocations: 0 / 0.5089 GB, free: 35.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.776e-06/0.4445, allocations: 5.047 kB / 0.5089 GB, free: 35.9 MB / 378.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 6.312e-05/0.4446, allocations: 139 kB / 0.509 GB, free: 35.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.324e-05/0.4446, allocations: 2.078 kB / 0.509 GB, free: 35.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.12e-05/0.4446, allocations: 10.66 kB / 0.509 GB, free: 35.74 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.4446, allocations: 5.391 kB / 0.509 GB, free: 35.74 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.4447, allocations: 0 / 0.509 GB, free: 35.74 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.4447, allocations: 4.688 kB / 0.509 GB, free: 35.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.268e-05/0.4447, allocations: 149.9 kB / 0.5092 GB, free: 35.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.4448, allocations: 0 / 0.5092 GB, free: 35.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.522e-06/0.4448, allocations: 0.6562 kB / 0.5092 GB, free: 35.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.4448, allocations: 1.094 kB / 0.5092 GB, free: 35.54 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.776e-06/0.4448, allocations: 13.09 kB / 0.5092 GB, free: 35.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.053e-06/0.4448, allocations: 4.734 kB / 0.5092 GB, free: 35.53 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.4448, allocations: 0 / 0.5092 GB, free: 35.53 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002345/0.445, allocations: 0.6308 MB / 0.5098 GB, free: 34.85 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.858e-05/0.4451, allocations: 84.52 kB / 0.5099 GB, free: 34.75 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.656e-05/0.4451, allocations: 0.5156 kB / 0.5099 GB, free: 34.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.265e-05/0.4451, allocations: 4.031 kB / 0.5099 GB, free: 34.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.544e-05/0.4452, allocations: 3.516 kB / 0.5099 GB, free: 34.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-06/0.4452, allocations: 0 / 0.5099 GB, free: 34.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.273e-05/0.4452, allocations: 75.28 kB / 0.51 GB, free: 34.68 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4452, allocations: 0 / 0.51 GB, free: 34.68 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000553/0.4458, allocations: 17.09 kB / 0.51 GB, free: 34.67 MB / 378.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.0004692/0.4462, allocations: 193.3 kB / 0.5102 GB, free: 34.56 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 8.426e-05/0.4463, allocations: 70.3 kB / 0.5102 GB, free: 34.49 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.4464, allocations: 0 / 0.5102 GB, free: 34.49 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.203e-05/0.4464, allocations: 55.78 kB / 0.5103 GB, free: 34.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002008/0.4466, allocations: 10.84 kB / 0.5103 GB, free: 34.42 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000213/0.4468, allocations: 181.7 kB / 0.5105 GB, free: 34.21 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001033/0.447, allocations: 0.6727 MB / 0.5111 GB, free: 33.52 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.474e-06/0.447, allocations: 0.7969 kB / 0.5111 GB, free: 33.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.288e-06/0.447, allocations: 7.438 kB / 0.5111 GB, free: 33.51 MB / 378.7 MB Notification: Performance of SimCode: time 2.7e-07/0.447, allocations: 4.125 kB / 0.5111 GB, free: 33.51 MB / 378.7 MB Notification: Performance of Templates: time 0.003522/0.4505, allocations: 0.5809 MB / 0.5117 GB, free: 33.4 MB / 378.7 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@2/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