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.001439/0.001439, allocations: 113.8 kB / 17.78 MB, free: 5.309 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.001408/0.001408, allocations: 183.1 kB / 18.71 MB, free: 4.387 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.442/1.442, allocations: 222.9 MB / 242.4 MB, free: 15.19 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.235/0.235, allocations: 44.18 MB / 336.7 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 59.91 kB / 470.5 MB, free: 13.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4041/0.4057, allocations: 60.83 MB / 0.5189 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001544/0.4073, allocations: 494.1 kB / 0.5193 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004937/0.4078, allocations: 212.2 kB / 0.5195 GB, free: 3.184 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.796e-05/0.4078, allocations: 0 / 0.5195 GB, free: 3.184 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.843e-05/0.4078, allocations: 0 / 0.5195 GB, free: 3.184 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.751e-06/0.4079, allocations: 1.094 kB / 0.5195 GB, free: 3.184 MB / 382.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.0002852/0.4082, allocations: 44.88 kB / 0.5196 GB, free: 3.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.308e-05/0.4082, allocations: 5.344 kB / 0.5196 GB, free: 3.156 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.981e-05/0.4083, allocations: 2.844 kB / 0.5196 GB, free: 3.156 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.581e-05/0.4083, allocations: 0 / 0.5196 GB, free: 3.156 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.176e-05/0.4083, allocations: 5.156 kB / 0.5196 GB, free: 3.152 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.912e-06/0.4083, allocations: 0 / 0.5196 GB, free: 3.152 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001251/0.4085, allocations: 57.94 kB / 0.5197 GB, free: 3.129 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.562e-06/0.4085, allocations: 1.438 kB / 0.5197 GB, free: 3.129 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.795e-05/0.4085, allocations: 0.75 kB / 0.5197 GB, free: 3.129 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001137/0.4086, allocations: 43.28 kB / 0.5197 GB, free: 3.113 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.4086, allocations: 0 / 0.5197 GB, free: 3.113 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.4086, allocations: 0 / 0.5197 GB, free: 3.113 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.4086, allocations: 0 / 0.5197 GB, free: 3.113 MB / 382.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.0002504/0.4089, allocations: 353.4 kB / 0.52 GB, free: 2.723 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.4089, allocations: 12.5 kB / 0.5201 GB, free: 2.719 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.25e-05/0.409, allocations: 3.297 kB / 0.5201 GB, free: 2.719 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.064e-05/0.409, allocations: 161.2 kB / 0.5202 GB, free: 2.523 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.4091, allocations: 1.781 kB / 0.5202 GB, free: 2.523 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.382e-06/0.4091, allocations: 384 / 0.5202 GB, free: 2.523 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.382e-05/0.4091, allocations: 30.42 kB / 0.5202 GB, free: 2.492 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.212e-06/0.4092, allocations: 192 / 0.5202 GB, free: 2.492 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.297e-06/0.4092, allocations: 5.344 kB / 0.5202 GB, free: 2.488 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.4092, allocations: 0 / 0.5202 GB, free: 2.488 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.804e-05/0.4092, allocations: 10.09 kB / 0.5203 GB, free: 2.48 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.48e-05/0.4093, allocations: 152.4 kB / 0.5204 GB, free: 2.285 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.664e-05/0.4093, allocations: 16.47 kB / 0.5204 GB, free: 2.262 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.376e-05/0.4093, allocations: 6.578 kB / 0.5204 GB, free: 2.254 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.546e-06/0.4094, allocations: 1.188 kB / 0.5204 GB, free: 2.254 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.351e-05/0.4094, allocations: 62.08 kB / 0.5205 GB, free: 2.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.4094, allocations: 0 / 0.5205 GB, free: 2.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001631/0.4096, allocations: 77.08 kB / 0.5206 GB, free: 2.102 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.352e-05/0.4096, allocations: 78.48 kB / 0.5206 GB, free: 2.008 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.301e-05/0.4097, allocations: 90.56 kB / 0.5207 GB, free: 1.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.723e-06/0.4097, allocations: 27.17 kB / 0.5207 GB, free: 1.879 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.027e-06/0.4097, allocations: 80.14 kB / 0.5208 GB, free: 1.797 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.876e-05/0.4097, allocations: 0 / 0.5208 GB, free: 1.797 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.393e-05/0.4097, allocations: 13.36 kB / 0.5208 GB, free: 1.781 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.765e-05/0.4098, allocations: 315.5 kB / 0.5211 GB, free: 1.465 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.03e-05/0.4098, allocations: 5.188 kB / 0.5211 GB, free: 1.461 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.733e-06/0.4098, allocations: 1.969 kB / 0.5211 GB, free: 1.461 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.169e-05/0.4098, allocations: 61.17 kB / 0.5212 GB, free: 1.391 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.4098, allocations: 0 / 0.5212 GB, free: 1.391 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.321e-05/0.4099, allocations: 63.67 kB / 0.5213 GB, free: 1.324 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.4099, allocations: 31.98 kB / 0.5213 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.4099, allocations: 0.7031 kB / 0.5213 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.41, allocations: 3.938 kB / 0.5213 GB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.11e-07/0.41, allocations: 9.25 kB / 0.5213 GB, free: 1.281 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.41, allocations: 0.5625 kB / 0.5213 GB, free: 1.281 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.551e-05/0.41, allocations: 1.312 kB / 0.5213 GB, free: 1.281 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.446e-06/0.41, allocations: 4 kB / 0.5213 GB, free: 1.277 MB / 382.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 5.324e-05/0.4101, allocations: 139.7 kB / 0.5214 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.476e-06/0.4101, allocations: 1.156 kB / 0.5214 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.105e-05/0.4101, allocations: 11.58 kB / 0.5215 GB, free: 1.117 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.4101, allocations: 1.531 kB / 0.5215 GB, free: 1.117 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.4101, allocations: 0.7031 kB / 0.5215 GB, free: 1.117 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.4101, allocations: 4 kB / 0.5215 GB, free: 1.113 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.74e-05/0.4102, allocations: 144.8 kB / 0.5216 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.4102, allocations: 2.109 kB / 0.5216 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.4102, allocations: 0 / 0.5216 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.122e-06/0.4102, allocations: 0 / 0.5216 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.666e-06/0.4102, allocations: 5.938 kB / 0.5216 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.4102, allocations: 0 / 0.5216 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.4102, allocations: 1.531 kB / 0.5216 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.6e-05/0.4103, allocations: 95.62 kB / 0.5217 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.821e-05/0.4103, allocations: 83.38 kB / 0.5218 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.425e-05/0.4104, allocations: 5.156 kB / 0.5218 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.018e-05/0.4104, allocations: 4.547 kB / 0.5218 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.165e-05/0.4104, allocations: 1.125 kB / 0.5218 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.721e-06/0.4104, allocations: 6.125 kB / 0.5218 GB, free: 0.707 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.156e-05/0.4104, allocations: 75.28 kB / 0.5219 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4104, allocations: 0 / 0.5219 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000241/0.4107, allocations: 16.91 kB / 0.5219 GB, free: 0.6289 MB / 382.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.0003453/0.411, allocations: 205.2 kB / 0.5221 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 7.795e-05/0.4111, allocations: 65.12 kB / 0.5221 GB, free: 444 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.4111, allocations: 0.875 kB / 0.5221 GB, free: 444 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.888e-05/0.4111, allocations: 59.84 kB / 0.5222 GB, free: 376 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000121/0.4113, allocations: 2.469 kB / 0.5222 GB, free: 376 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001533/0.4114, allocations: 86.08 kB / 0.5223 GB, free: 272 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002182/0.4116, allocations: 0.6746 MB / 0.5229 GB, free: 15.57 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.711e-06/0.4117, allocations: 0 / 0.5229 GB, free: 15.57 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.196e-06/0.4117, allocations: 8.531 kB / 0.5229 GB, free: 15.56 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.4117, allocations: 0 / 0.5229 GB, free: 15.56 MB / 398.1 MB Notification: Performance of Templates: time 0.003037/0.4147, allocations: 0.5823 MB / 0.5235 GB, free: 15.45 MB / 398.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches