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.001253/0.001253, allocations: 114 kB / 18.46 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.001491/0.001491, allocations: 185.9 kB / 19.39 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.35/1.35, allocations: 222.9 MB / 243.1 MB, free: 15.04 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.2104/0.2104, allocations: 44.18 MB / 337.4 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00221/0.00221, allocations: 63.89 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3884/0.3907, allocations: 60.82 MB / 0.5196 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001531/0.3922, allocations: 486.9 kB / 0.52 GB, free: 3.309 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004826/0.3927, allocations: 209.8 kB / 0.5202 GB, free: 3.184 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.147e-05/0.3928, allocations: 0 / 0.5202 GB, free: 3.184 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.727e-05/0.3928, allocations: 0 / 0.5202 GB, free: 3.184 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.084e-06/0.3928, allocations: 0 / 0.5202 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.0003347/0.3932, allocations: 44.75 kB / 0.5203 GB, free: 3.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.743e-05/0.3932, allocations: 5.125 kB / 0.5203 GB, free: 3.156 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.974e-05/0.3933, allocations: 1.656 kB / 0.5203 GB, free: 3.156 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.565e-05/0.3933, allocations: 1.812 kB / 0.5203 GB, free: 3.156 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.337e-05/0.3933, allocations: 8.891 kB / 0.5203 GB, free: 3.148 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.731e-06/0.3933, allocations: 0 / 0.5203 GB, free: 3.148 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001341/0.3935, allocations: 53.81 kB / 0.5203 GB, free: 3.129 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.634e-06/0.3935, allocations: 1.125 kB / 0.5203 GB, free: 3.129 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.72e-05/0.3935, allocations: 5.875 kB / 0.5203 GB, free: 3.125 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001242/0.3936, allocations: 37.27 kB / 0.5204 GB, free: 3.117 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.696e-06/0.3936, allocations: 1.281 kB / 0.5204 GB, free: 3.117 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3937, allocations: 0 / 0.5204 GB, free: 3.117 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.3937, allocations: 0 / 0.5204 GB, free: 3.117 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.000261/0.3939, allocations: 353 kB / 0.5207 GB, free: 2.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/0.394, allocations: 13.28 kB / 0.5207 GB, free: 2.727 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.828e-05/0.394, allocations: 2.812 kB / 0.5207 GB, free: 2.727 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.158e-05/0.3941, allocations: 165.2 kB / 0.5209 GB, free: 2.527 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.175e-05/0.3941, allocations: 384 / 0.5209 GB, free: 2.527 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.676e-06/0.3941, allocations: 5.484 kB / 0.5209 GB, free: 2.523 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.125e-05/0.3942, allocations: 30 kB / 0.5209 GB, free: 2.492 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.3942, allocations: 192 / 0.5209 GB, free: 2.492 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.3942, allocations: 5.031 kB / 0.5209 GB, free: 2.488 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.3943, allocations: 0.75 kB / 0.5209 GB, free: 2.488 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.062e-05/0.3943, allocations: 5.219 kB / 0.5209 GB, free: 2.484 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000108/0.3944, allocations: 161.3 kB / 0.5211 GB, free: 2.281 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.301e-05/0.3944, allocations: 16.41 kB / 0.5211 GB, free: 2.258 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.318e-05/0.3945, allocations: 7.125 kB / 0.5211 GB, free: 2.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.386e-06/0.3945, allocations: 1.25 kB / 0.5211 GB, free: 2.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.498e-05/0.3945, allocations: 58.11 kB / 0.5212 GB, free: 2.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.3945, allocations: 0 / 0.5212 GB, free: 2.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001603/0.3947, allocations: 76.53 kB / 0.5212 GB, free: 2.102 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.26e-05/0.3947, allocations: 78.2 kB / 0.5213 GB, free: 2.008 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.444e-05/0.3947, allocations: 94.41 kB / 0.5214 GB, free: 1.906 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.676e-06/0.3948, allocations: 26.89 kB / 0.5214 GB, free: 1.875 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.156e-05/0.3948, allocations: 80.14 kB / 0.5215 GB, free: 1.793 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.566e-05/0.3948, allocations: 1.062 kB / 0.5215 GB, free: 1.793 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.368e-05/0.3948, allocations: 13.2 kB / 0.5215 GB, free: 1.777 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.064e-05/0.3949, allocations: 315.5 kB / 0.5218 GB, free: 1.461 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.102e-05/0.3949, allocations: 5.219 kB / 0.5218 GB, free: 1.457 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.07e-06/0.3949, allocations: 1.156 kB / 0.5218 GB, free: 1.457 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.433e-05/0.3949, allocations: 61.16 kB / 0.5219 GB, free: 1.387 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3949, allocations: 0 / 0.5219 GB, free: 1.387 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.721e-05/0.395, allocations: 63.95 kB / 0.5219 GB, free: 1.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.855e-05/0.395, allocations: 34.84 kB / 0.522 GB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.395, allocations: 0 / 0.522 GB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.3951, allocations: 6.125 kB / 0.522 GB, free: 1.285 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.92e-07/0.3951, allocations: 8.031 kB / 0.522 GB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.208e-05/0.3951, allocations: 3.984 kB / 0.522 GB, free: 1.273 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.75e-05/0.3951, allocations: 5.375 kB / 0.522 GB, free: 1.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.766e-06/0.3951, allocations: 1.266 kB / 0.522 GB, free: 1.27 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.29e-05/0.3952, allocations: 134.9 kB / 0.5221 GB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.809e-06/0.3952, allocations: 5.625 kB / 0.5221 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.023e-05/0.3952, allocations: 7.641 kB / 0.5221 GB, free: 1.113 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.3952, allocations: 3.938 kB / 0.5221 GB, free: 1.109 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.3952, allocations: 1.219 kB / 0.5221 GB, free: 1.109 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.058e-05/0.3953, allocations: 82.42 kB / 0.5222 GB, free: 1.012 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.212e-05/0.3953, allocations: 1.125 kB / 0.5222 GB, free: 1.012 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.008e-05/0.3953, allocations: 1.844 kB / 0.5222 GB, free: 1.012 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.114e-05/0.3953, allocations: 0 / 0.5222 GB, free: 1.012 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 8.513e-05/0.3954, allocations: 197.5 kB / 0.5224 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 8.921e-05/0.3955, allocations: 239.1 kB / 0.5226 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.758e-05/0.3955, allocations: 7.5 kB / 0.5226 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.282e-05/0.3955, allocations: 75.28 kB / 0.5227 GB, free: 496 kB / 382.1 MB Notification: Performance of Backend: time 2.91e-07/0.3955, allocations: 0 / 0.5227 GB, free: 496 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006533/0.3962, allocations: 240.3 kB / 0.5229 GB, free: 324 kB / 382.1 MB Notification: Performance of SimCode: time 0.0003537/0.3966, allocations: 0.5759 MB / 0.5235 GB, free: 15.69 MB / 398.1 MB Notification: Performance of Templates: time 0.003322/0.3999, allocations: 0.5953 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