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.001266/0.001266, allocations: 113.4 kB / 18.45 MB, free: 4.598 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.001106/0.001106, allocations: 185.1 kB / 19.38 MB, free: 3.676 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.269/1.269, allocations: 222.9 MB / 243.1 MB, free: 15.08 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.1987/0.1987, allocations: 44.18 MB / 337.4 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 59.91 kB / 471.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3126/0.314, allocations: 60.82 MB / 0.5195 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001417/0.3155, allocations: 0.4903 MB / 0.52 GB, free: 3.316 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004855/0.316, allocations: 203.9 kB / 0.5202 GB, free: 3.195 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.291e-05/0.316, allocations: 0.9688 kB / 0.5202 GB, free: 3.195 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.972e-05/0.3161, allocations: 0 / 0.5202 GB, free: 3.195 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.191e-06/0.3161, allocations: 0 / 0.5202 GB, free: 3.195 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.000274/0.3164, allocations: 56.97 kB / 0.5203 GB, free: 3.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.698e-05/0.3164, allocations: 6.656 kB / 0.5203 GB, free: 3.156 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.676e-05/0.3165, allocations: 0.9375 kB / 0.5203 GB, free: 3.156 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.625e-05/0.3165, allocations: 4.703 kB / 0.5203 GB, free: 3.152 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.084e-05/0.3165, allocations: 1.25 kB / 0.5203 GB, free: 3.152 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.901e-06/0.3165, allocations: 0 / 0.5203 GB, free: 3.152 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001264/0.3167, allocations: 51.72 kB / 0.5203 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.933e-06/0.3167, allocations: 0 / 0.5203 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.807e-05/0.3167, allocations: 1.094 kB / 0.5203 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001066/0.3168, allocations: 46.11 kB / 0.5204 GB, free: 3.117 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.3168, allocations: 0 / 0.5204 GB, free: 3.117 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3168, allocations: 4 kB / 0.5204 GB, free: 3.113 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.3168, allocations: 1.859 kB / 0.5204 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.0002213/0.3171, allocations: 351.3 kB / 0.5207 GB, free: 2.723 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.093e-05/0.3171, allocations: 9.812 kB / 0.5207 GB, free: 2.723 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.569e-05/0.3171, allocations: 3.266 kB / 0.5207 GB, free: 2.723 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.653e-05/0.3172, allocations: 161.1 kB / 0.5209 GB, free: 2.527 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.814e-06/0.3172, allocations: 384 / 0.5209 GB, free: 2.527 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.062e-05/0.3172, allocations: 1.625 kB / 0.5209 GB, free: 2.527 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.162e-05/0.3173, allocations: 37.72 kB / 0.5209 GB, free: 2.488 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.3173, allocations: 0.8438 kB / 0.5209 GB, free: 2.488 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.067e-06/0.3173, allocations: 3.938 kB / 0.5209 GB, free: 2.484 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.3173, allocations: 1 kB / 0.5209 GB, free: 2.484 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.674e-05/0.3173, allocations: 1.766 kB / 0.5209 GB, free: 2.484 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.396e-05/0.3174, allocations: 148.3 kB / 0.5211 GB, free: 2.293 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.875e-05/0.3175, allocations: 17.5 kB / 0.5211 GB, free: 2.27 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.123e-05/0.3175, allocations: 5.891 kB / 0.5211 GB, free: 2.262 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.26e-06/0.3175, allocations: 8.641 kB / 0.5211 GB, free: 2.254 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.57e-05/0.3175, allocations: 59.05 kB / 0.5211 GB, free: 2.184 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.3175, allocations: 0 / 0.5211 GB, free: 2.184 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001448/0.3177, allocations: 68.48 kB / 0.5212 GB, free: 2.113 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.616e-05/0.3177, allocations: 79 kB / 0.5213 GB, free: 2.02 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.745e-05/0.3177, allocations: 89.86 kB / 0.5214 GB, free: 1.922 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.5e-06/0.3177, allocations: 26.61 kB / 0.5214 GB, free: 1.891 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.709e-06/0.3178, allocations: 80.88 kB / 0.5215 GB, free: 1.809 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.75e-05/0.3178, allocations: 5.094 kB / 0.5215 GB, free: 1.805 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.307e-05/0.3178, allocations: 12.52 kB / 0.5215 GB, free: 1.789 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.282e-05/0.3179, allocations: 312.7 kB / 0.5218 GB, free: 1.477 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.315e-06/0.3179, allocations: 0 / 0.5218 GB, free: 1.477 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.949e-06/0.3179, allocations: 5.188 kB / 0.5218 GB, free: 1.473 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.997e-05/0.3179, allocations: 64.98 kB / 0.5219 GB, free: 1.398 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.3179, allocations: 5.156 kB / 0.5219 GB, free: 1.395 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.964e-05/0.318, allocations: 63.28 kB / 0.5219 GB, free: 1.328 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.318, allocations: 32.12 kB / 0.522 GB, free: 1.297 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.318, allocations: 0.9062 kB / 0.522 GB, free: 1.297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.75e-05/0.318, allocations: 3.938 kB / 0.522 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.174e-06/0.318, allocations: 5.922 kB / 0.522 GB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.877e-06/0.318, allocations: 0 / 0.522 GB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.496e-05/0.3181, allocations: 1.031 kB / 0.522 GB, free: 1.289 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.081e-06/0.3181, allocations: 0 / 0.522 GB, free: 1.289 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.721e-05/0.3181, allocations: 140 kB / 0.5221 GB, free: 1.141 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.605e-06/0.3181, allocations: 5.922 kB / 0.5221 GB, free: 1.137 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.388e-06/0.3182, allocations: 11.02 kB / 0.5221 GB, free: 1.125 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.3182, allocations: 4.688 kB / 0.5221 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.3182, allocations: 1.219 kB / 0.5221 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.3182, allocations: 0 / 0.5221 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.576e-05/0.3182, allocations: 145.4 kB / 0.5223 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3182, allocations: 5.125 kB / 0.5223 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.3182, allocations: 0 / 0.5223 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.92e-07/0.3182, allocations: 0 / 0.5223 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.603e-06/0.3183, allocations: 5.766 kB / 0.5223 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3183, allocations: 1.094 kB / 0.5223 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3183, allocations: 7.984 kB / 0.5223 GB, free: 0.918 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.313e-05/0.3183, allocations: 88.12 kB / 0.5224 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.413e-05/0.3184, allocations: 79.38 kB / 0.5224 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.113e-05/0.3184, allocations: 5 kB / 0.5224 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.016e-05/0.3184, allocations: 1.703 kB / 0.5224 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.211e-05/0.3184, allocations: 0 / 0.5224 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-06/0.3184, allocations: 1.812 kB / 0.5224 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.146e-05/0.3184, allocations: 80.75 kB / 0.5225 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3184, allocations: 0 / 0.5225 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002166/0.3186, allocations: 20.19 kB / 0.5225 GB, free: 0.6367 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.0003303/0.319, allocations: 213.1 kB / 0.5227 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 7.514e-05/0.3191, allocations: 58.36 kB / 0.5228 GB, free: 456 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.3191, allocations: 0 / 0.5228 GB, free: 456 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.725e-05/0.3191, allocations: 63.8 kB / 0.5229 GB, free: 384 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001204/0.3192, allocations: 6.547 kB / 0.5229 GB, free: 380 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001518/0.3194, allocations: 107.2 kB / 0.523 GB, free: 248 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002126/0.3196, allocations: 0.675 MB / 0.5236 GB, free: 15.54 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.467e-06/0.3196, allocations: 8.5 kB / 0.5236 GB, free: 15.54 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3196, allocations: 0 / 0.5236 GB, free: 15.54 MB / 398.1 MB Notification: Performance of Templates: time 0.002191/0.3218, allocations: 0.7564 MB / 0.5244 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/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