Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001198/0.001198, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001483/0.001483, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.413/1.413, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2179/0.2179, allocations: 46.12 MB / 344.2 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 87.06 kB / 417.6 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1204, allocations: 62.45 MB / 480.1 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001931/0.1224, allocations: 487.6 kB / 480.5 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000511/0.1229, allocations: 214 kB / 480.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.14e-05/0.123, allocations: 0 / 480.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.255e-05/0.123, allocations: 0 / 480.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.48e-06/0.123, allocations: 0 / 480.8 MB, free: 4.578 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:289:3-320: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.000294/0.1233, allocations: 39.84 kB / 480.8 MB, free: 4.539 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.738e-05/0.1234, allocations: 11.98 kB / 480.8 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.236e-05/0.1234, allocations: 3.984 kB / 480.8 MB, free: 4.523 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.477e-05/0.1234, allocations: 0 / 480.8 MB, free: 4.523 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.372e-05/0.1235, allocations: 4 kB / 480.8 MB, free: 4.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.691e-06/0.1235, allocations: 4 kB / 480.8 MB, free: 4.516 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001121/0.1236, allocations: 47.95 kB / 480.9 MB, free: 4.469 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.443e-06/0.1236, allocations: 0 / 480.9 MB, free: 4.469 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.066e-05/0.1236, allocations: 4 kB / 480.9 MB, free: 4.465 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001069/0.1238, allocations: 39.94 kB / 480.9 MB, free: 4.426 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.1238, allocations: 0 / 480.9 MB, free: 4.426 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1238, allocations: 3.938 kB / 480.9 MB, free: 4.422 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5e-06/0.1238, allocations: 0 / 480.9 MB, free: 4.422 MB / 350.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.0003159/0.1241, allocations: 353.3 kB / 481.3 MB, free: 4.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.1242, allocations: 15.97 kB / 481.3 MB, free: 4.004 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.965e-05/0.1242, allocations: 0.9375 kB / 481.3 MB, free: 4.004 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.912e-05/0.1243, allocations: 172.3 kB / 481.4 MB, free: 3.797 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.029e-05/0.1243, allocations: 4.375 kB / 481.4 MB, free: 3.793 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.676e-06/0.1243, allocations: 384 / 481.4 MB, free: 3.793 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.578e-05/0.1244, allocations: 26.27 kB / 481.5 MB, free: 3.762 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.471e-06/0.1244, allocations: 192 / 481.5 MB, free: 3.762 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.949e-06/0.1244, allocations: 7.938 kB / 481.5 MB, free: 3.754 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.1244, allocations: 0 / 481.5 MB, free: 3.754 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.606e-05/0.1245, allocations: 0 / 481.5 MB, free: 3.754 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001256/0.1246, allocations: 149.7 kB / 481.6 MB, free: 3.559 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.107e-05/0.1246, allocations: 26.55 kB / 481.6 MB, free: 3.523 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.479e-05/0.1247, allocations: 4.859 kB / 481.7 MB, free: 3.516 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.213e-06/0.1247, allocations: 0 / 481.7 MB, free: 3.516 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.09e-05/0.1247, allocations: 60.33 kB / 481.7 MB, free: 3.441 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 7.11e-07/0.1247, allocations: 0 / 481.7 MB, free: 3.441 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001749/0.1249, allocations: 71.33 kB / 481.8 MB, free: 3.359 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.83e-05/0.125, allocations: 77.11 kB / 481.9 MB, free: 3.266 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.802e-05/0.125, allocations: 93.86 kB / 482 MB, free: 3.164 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.124e-05/0.125, allocations: 25.7 kB / 482 MB, free: 3.133 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.977e-05/0.1251, allocations: 80.14 kB / 482.1 MB, free: 3.051 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.5e-05/0.1251, allocations: 3.938 kB / 482.1 MB, free: 3.047 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.581e-05/0.1251, allocations: 13.72 kB / 482.1 MB, free: 3.027 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.1252, allocations: 310.8 kB / 482.4 MB, free: 2.715 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.517e-06/0.1253, allocations: 4.125 kB / 482.4 MB, free: 2.711 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.807e-06/0.1253, allocations: 0 / 482.4 MB, free: 2.711 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.107e-05/0.1253, allocations: 72.19 kB / 482.4 MB, free: 2.625 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.1253, allocations: 0 / 482.4 MB, free: 2.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.171e-05/0.1254, allocations: 59.41 kB / 482.5 MB, free: 2.555 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.408e-05/0.1254, allocations: 32.2 kB / 482.5 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.1255, allocations: 4 kB / 482.5 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.1255, allocations: 3.938 kB / 482.5 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.042e-06/0.1255, allocations: 0 / 482.5 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.1255, allocations: 8.031 kB / 482.6 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.357e-05/0.1255, allocations: 3.984 kB / 482.6 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.173e-06/0.1255, allocations: 0 / 482.6 MB, free: 2.5 MB / 350.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 7.561e-05/0.1256, allocations: 135.5 kB / 482.7 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.204e-06/0.1256, allocations: 0 / 482.7 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.888e-06/0.1256, allocations: 11.06 kB / 482.7 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.1256, allocations: 0 / 482.7 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.1256, allocations: 0 / 482.7 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.553e-06/0.1257, allocations: 0 / 482.7 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.935e-05/0.1257, allocations: 157.6 kB / 482.9 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.1258, allocations: 0 / 482.9 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.1258, allocations: 0 / 482.9 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.32e-07/0.1258, allocations: 0 / 482.9 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.586e-06/0.1258, allocations: 3.938 kB / 482.9 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.1258, allocations: 4 kB / 482.9 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1258, allocations: 0 / 482.9 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.495e-05/0.1259, allocations: 86.83 kB / 482.9 MB, free: 2.023 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.184e-05/0.1259, allocations: 85.14 kB / 483 MB, free: 1.922 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.337e-05/0.126, allocations: 7.938 kB / 483 MB, free: 1.914 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.699e-06/0.126, allocations: 0 / 483 MB, free: 1.914 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.286e-05/0.126, allocations: 3.938 kB / 483 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.234e-06/0.126, allocations: 0 / 483 MB, free: 1.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.307e-05/0.126, allocations: 75.28 kB / 483.1 MB, free: 1.836 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.126, allocations: 0 / 483.1 MB, free: 1.836 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002238/0.1263, allocations: 23.98 kB / 483.1 MB, free: 1.812 MB / 350.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.0004145/0.1267, allocations: 212.6 kB / 483.3 MB, free: 1.621 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.441e-05/0.1268, allocations: 55.41 kB / 483.4 MB, free: 1.555 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1268, allocations: 0 / 483.4 MB, free: 1.555 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.066e-05/0.1268, allocations: 55.41 kB / 483.5 MB, free: 1.488 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001246/0.127, allocations: 4 kB / 483.5 MB, free: 1.484 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001678/0.1271, allocations: 88.83 kB / 483.5 MB, free: 1.371 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002292/0.1274, allocations: 0.669 MB / 484.2 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.961e-06/0.1274, allocations: 8.062 kB / 484.2 MB, free: 0.668 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.05e-05/0.1274, allocations: 7.438 kB / 484.2 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.1274, allocations: 0 / 484.2 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of Templates: time 0.002784/0.1302, allocations: 0.5748 MB / 484.8 MB, free: 92 kB / 350.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches