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.0011/0.0011, allocations: 110.4 kB / 18.45 MB, free: 4.594 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.0009952/0.0009952, allocations: 187.2 kB / 19.38 MB, free: 3.672 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.373/1.373, allocations: 222.9 MB / 243.1 MB, free: 15.07 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.2065/0.2065, allocations: 44.18 MB / 337.4 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 63.91 kB / 471.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.3038, allocations: 60.83 MB / 0.5196 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001367/0.3052, allocations: 495 kB / 0.52 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004432/0.3057, allocations: 208.7 kB / 0.5202 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.921e-05/0.3057, allocations: 0 / 0.5202 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.125e-05/0.3057, allocations: 0 / 0.5202 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.949e-06/0.3057, allocations: 0 / 0.5202 GB, free: 3.18 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.0002607/0.306, allocations: 45.05 kB / 0.5203 GB, free: 3.156 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.911e-05/0.306, allocations: 5.969 kB / 0.5203 GB, free: 3.152 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.924e-05/0.3061, allocations: 1.875 kB / 0.5203 GB, free: 3.152 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.33e-05/0.3061, allocations: 1.062 kB / 0.5203 GB, free: 3.152 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.949e-05/0.3061, allocations: 4.75 kB / 0.5203 GB, free: 3.148 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.851e-06/0.3061, allocations: 1.156 kB / 0.5203 GB, free: 3.148 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000114/0.3063, allocations: 58.14 kB / 0.5203 GB, free: 3.125 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.102e-06/0.3063, allocations: 0 / 0.5203 GB, free: 3.125 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.681e-05/0.3063, allocations: 1.094 kB / 0.5203 GB, free: 3.125 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001053/0.3064, allocations: 46.64 kB / 0.5204 GB, free: 3.109 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.3064, allocations: 0 / 0.5204 GB, free: 3.109 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3064, allocations: 1.125 kB / 0.5204 GB, free: 3.109 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.697e-06/0.3064, allocations: 0 / 0.5204 GB, free: 3.109 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.0002309/0.3067, allocations: 349.3 kB / 0.5207 GB, free: 2.727 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.3067, allocations: 8.719 kB / 0.5207 GB, free: 2.727 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.878e-05/0.3067, allocations: 1.5 kB / 0.5207 GB, free: 2.727 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.686e-05/0.3068, allocations: 170.2 kB / 0.5209 GB, free: 2.523 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.079e-05/0.3068, allocations: 5.172 kB / 0.5209 GB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.003e-05/0.3068, allocations: 1.75 kB / 0.5209 GB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.723e-05/0.3069, allocations: 34.69 kB / 0.5209 GB, free: 2.484 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.252e-06/0.3069, allocations: 192 / 0.5209 GB, free: 2.484 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.144e-06/0.3069, allocations: 3.938 kB / 0.5209 GB, free: 2.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-06/0.3069, allocations: 0 / 0.5209 GB, free: 2.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.523e-05/0.3069, allocations: 1.656 kB / 0.5209 GB, free: 2.48 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.516e-05/0.307, allocations: 152.4 kB / 0.5211 GB, free: 2.285 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.931e-05/0.3071, allocations: 17.83 kB / 0.5211 GB, free: 2.262 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.245e-05/0.3071, allocations: 10.27 kB / 0.5211 GB, free: 2.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.752e-06/0.3071, allocations: 0 / 0.5211 GB, free: 2.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.571e-05/0.3071, allocations: 58.06 kB / 0.5212 GB, free: 2.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.3071, allocations: 0 / 0.5212 GB, free: 2.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001304/0.3073, allocations: 74.45 kB / 0.5212 GB, free: 2.105 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.742e-05/0.3073, allocations: 82.58 kB / 0.5213 GB, free: 2.008 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.757e-05/0.3073, allocations: 90.38 kB / 0.5214 GB, free: 1.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.741e-06/0.3073, allocations: 25.7 kB / 0.5214 GB, free: 1.879 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.777e-06/0.3073, allocations: 84.14 kB / 0.5215 GB, free: 1.793 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.205e-05/0.3074, allocations: 1.312 kB / 0.5215 GB, free: 1.793 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.208e-05/0.3074, allocations: 12.75 kB / 0.5215 GB, free: 1.777 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.499e-05/0.3074, allocations: 311.6 kB / 0.5218 GB, free: 1.465 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.867e-06/0.3074, allocations: 6.109 kB / 0.5218 GB, free: 1.461 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.2e-06/0.3074, allocations: 5.375 kB / 0.5218 GB, free: 1.457 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.855e-05/0.3075, allocations: 60.89 kB / 0.5219 GB, free: 1.387 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.3075, allocations: 0 / 0.5219 GB, free: 1.387 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.034e-05/0.3075, allocations: 67.47 kB / 0.5219 GB, free: 1.316 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.3076, allocations: 32.09 kB / 0.522 GB, free: 1.285 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.3076, allocations: 1.312 kB / 0.522 GB, free: 1.285 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.3076, allocations: 3.938 kB / 0.522 GB, free: 1.281 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.352e-06/0.3076, allocations: 4.5 kB / 0.522 GB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-06/0.3076, allocations: 1.344 kB / 0.522 GB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.279e-05/0.3076, allocations: 4.094 kB / 0.522 GB, free: 1.273 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.034e-06/0.3076, allocations: 1.812 kB / 0.522 GB, free: 1.273 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 4.252e-05/0.3077, allocations: 134.1 kB / 0.5221 GB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.205e-06/0.3077, allocations: 5.812 kB / 0.5221 GB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.396e-06/0.3077, allocations: 9.016 kB / 0.5221 GB, free: 1.117 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.3077, allocations: 3.938 kB / 0.5221 GB, free: 1.113 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.3077, allocations: 0 / 0.5221 GB, free: 1.113 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.492e-05/0.3077, allocations: 78.98 kB / 0.5222 GB, free: 1.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.099e-05/0.3078, allocations: 1.734 kB / 0.5222 GB, free: 1.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.005e-06/0.3078, allocations: 4 kB / 0.5222 GB, free: 1.016 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.704e-05/0.3078, allocations: 9.422 kB / 0.5222 GB, free: 1.008 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 7.108e-05/0.3079, allocations: 193.6 kB / 0.5224 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 7.975e-05/0.308, allocations: 239.6 kB / 0.5226 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.469e-05/0.308, allocations: 6.078 kB / 0.5226 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.155e-05/0.308, allocations: 79.34 kB / 0.5227 GB, free: 492 kB / 382.1 MB Notification: Performance of Backend: time 3.81e-07/0.308, allocations: 0 / 0.5227 GB, free: 492 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005561/0.3086, allocations: 242.3 kB / 0.523 GB, free: 320 kB / 382.1 MB Notification: Performance of SimCode: time 0.0002766/0.3088, allocations: 0.5723 MB / 0.5235 GB, free: 15.69 MB / 398.1 MB Notification: Performance of Templates: time 0.002957/0.3118, allocations: 0.5964 MB / 0.5241 GB, free: 15.57 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/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