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.001027/0.001027, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001058/0.001058, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 227.4 MB / 247.5 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.209/0.209, allocations: 46.1 MB / 344.9 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 82.77 kB / 419 MB, free: 19.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1129, allocations: 62.45 MB / 481.5 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001772/0.1147, allocations: 489.1 kB / 481.9 MB, free: 4.113 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005303/0.1153, allocations: 210 kB / 482.1 MB, free: 3.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.248e-05/0.1153, allocations: 0 / 482.1 MB, free: 3.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.438e-05/0.1153, allocations: 0 / 482.1 MB, free: 3.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.829e-06/0.1153, allocations: 0 / 482.1 MB, free: 3.91 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.0002796/0.1156, allocations: 47.83 kB / 482.2 MB, free: 3.863 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.8e-05/0.1157, allocations: 0 / 482.2 MB, free: 3.863 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.135e-05/0.1157, allocations: 4 kB / 482.2 MB, free: 3.859 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.663e-05/0.1158, allocations: 0 / 482.2 MB, free: 3.859 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.215e-05/0.1158, allocations: 0 / 482.2 MB, free: 3.859 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.793e-06/0.1158, allocations: 4 kB / 482.2 MB, free: 3.855 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001347/0.1159, allocations: 63.88 kB / 482.3 MB, free: 3.793 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.083e-06/0.116, allocations: 0 / 482.3 MB, free: 3.793 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.962e-05/0.116, allocations: 0 / 482.3 MB, free: 3.793 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001101/0.1161, allocations: 43.88 kB / 482.3 MB, free: 3.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.1161, allocations: 0 / 482.3 MB, free: 3.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1161, allocations: 0 / 482.3 MB, free: 3.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.835e-06/0.1161, allocations: 0 / 482.3 MB, free: 3.75 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.0003242/0.1165, allocations: 353.3 kB / 482.6 MB, free: 3.348 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.213e-05/0.1165, allocations: 12.03 kB / 482.7 MB, free: 3.336 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.479e-05/0.1165, allocations: 4.938 kB / 482.7 MB, free: 3.332 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.326e-05/0.1166, allocations: 160.4 kB / 482.8 MB, free: 3.137 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.247e-06/0.1166, allocations: 384 / 482.8 MB, free: 3.137 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.979e-06/0.1166, allocations: 4.312 kB / 482.8 MB, free: 3.133 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.024e-05/0.1167, allocations: 30.27 kB / 482.8 MB, free: 3.098 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.951e-06/0.1167, allocations: 192 / 482.9 MB, free: 3.098 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.759e-06/0.1167, allocations: 3.938 kB / 482.9 MB, free: 3.094 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.1168, allocations: 0 / 482.9 MB, free: 3.094 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.177e-05/0.1168, allocations: 7.922 kB / 482.9 MB, free: 3.086 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001171/0.1169, allocations: 153.7 kB / 483 MB, free: 2.887 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.592e-05/0.117, allocations: 14.58 kB / 483 MB, free: 2.863 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.443e-05/0.117, allocations: 8.953 kB / 483 MB, free: 2.852 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.901e-06/0.117, allocations: 0 / 483 MB, free: 2.852 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.54e-05/0.117, allocations: 60.27 kB / 483.1 MB, free: 2.777 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.394e-06/0.1171, allocations: 3.984 kB / 483.1 MB, free: 2.773 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001606/0.1172, allocations: 75.39 kB / 483.2 MB, free: 2.688 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.228e-05/0.1173, allocations: 81.11 kB / 483.3 MB, free: 2.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.497e-05/0.1173, allocations: 89.86 kB / 483.3 MB, free: 2.492 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.354e-05/0.1174, allocations: 29.64 kB / 483.4 MB, free: 2.457 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.87e-05/0.1174, allocations: 80.14 kB / 483.4 MB, free: 2.375 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.324e-05/0.1174, allocations: 7.984 kB / 483.5 MB, free: 2.367 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.598e-05/0.1175, allocations: 13.72 kB / 483.5 MB, free: 2.348 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.1176, allocations: 314.8 kB / 483.8 MB, free: 2.031 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.048e-05/0.1176, allocations: 4 kB / 483.8 MB, free: 2.027 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.2e-06/0.1176, allocations: 4 kB / 483.8 MB, free: 2.023 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.296e-05/0.1176, allocations: 60.27 kB / 483.8 MB, free: 1.949 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.1177, allocations: 0 / 483.8 MB, free: 1.949 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.364e-05/0.1177, allocations: 67.34 kB / 483.9 MB, free: 1.871 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.806e-05/0.1178, allocations: 33.69 kB / 483.9 MB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.466e-06/0.1178, allocations: 0 / 483.9 MB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.1178, allocations: 3.938 kB / 483.9 MB, free: 1.828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.41e-07/0.1178, allocations: 0 / 483.9 MB, free: 1.828 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.717e-06/0.1178, allocations: 4.094 kB / 483.9 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.562e-05/0.1178, allocations: 4 kB / 484 MB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.671e-06/0.1178, allocations: 0 / 484 MB, free: 1.82 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 6.619e-05/0.1179, allocations: 131.5 kB / 484.1 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.817e-06/0.1179, allocations: 4 kB / 484.1 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.418e-06/0.1179, allocations: 7.062 kB / 484.1 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.52e-07/0.1179, allocations: 0 / 484.1 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.1179, allocations: 3.984 kB / 484.1 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-06/0.118, allocations: 0 / 484.1 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.376e-05/0.118, allocations: 145.7 kB / 484.2 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.118, allocations: 0 / 484.2 MB, free: 1.473 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.934e-06/0.1181, allocations: 4 kB / 484.2 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.1181, allocations: 0 / 484.2 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.1181, allocations: 7.875 kB / 484.2 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.1181, allocations: 0 / 484.2 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.82e-07/0.1181, allocations: 0 / 484.2 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.786e-05/0.1182, allocations: 94.77 kB / 484.3 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.056e-05/0.1182, allocations: 81.14 kB / 484.4 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.304e-05/0.1182, allocations: 7.938 kB / 484.4 MB, free: 1.238 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.828e-06/0.1183, allocations: 3.984 kB / 484.4 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.243e-05/0.1183, allocations: 4 kB / 484.4 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.797e-06/0.1183, allocations: 0 / 484.4 MB, free: 1.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.302e-05/0.1183, allocations: 79.22 kB / 484.5 MB, free: 1.152 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1183, allocations: 0 / 484.5 MB, free: 1.152 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002103/0.1185, allocations: 16 kB / 484.5 MB, free: 1.137 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.0003346/0.1189, allocations: 200.1 kB / 484.7 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001007/0.119, allocations: 71.34 kB / 484.8 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.119, allocations: 0 / 484.8 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.163e-05/0.119, allocations: 59.39 kB / 484.9 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001125/0.1192, allocations: 0 / 484.9 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001516/0.1193, allocations: 76.84 kB / 484.9 MB, free: 0.707 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002636/0.1196, allocations: 0.669 MB / 485.6 MB, free: 12 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.381e-06/0.1196, allocations: 128 / 485.6 MB, free: 12 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.193e-05/0.1196, allocations: 15.44 kB / 485.6 MB, free: 0 / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1196, allocations: 0 / 485.6 MB, free: 0 / 350.1 MB Notification: Performance of Templates: time 0.002561/0.1222, allocations: 0.5865 MB / 486.2 MB, free: 15.41 MB / 366.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 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Utilities.TestWriteFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches