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.001147/0.001147, allocations: 116.9 kB / 18.4 MB, free: 4.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001105/0.001105, allocations: 204.5 kB / 19.35 MB, free: 3.805 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2061/0.2061, allocations: 46.1 MB / 344.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 71.88 kB / 419 MB, free: 19.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1254, allocations: 62.44 MB / 481.4 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001595/0.127, allocations: 485.6 kB / 481.9 MB, free: 4.074 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005107/0.1275, allocations: 210 kB / 482.1 MB, free: 3.871 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.042e-05/0.1276, allocations: 0 / 482.1 MB, free: 3.871 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.184e-05/0.1276, allocations: 0 / 482.1 MB, free: 3.871 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.252e-06/0.1276, allocations: 0 / 482.1 MB, free: 3.871 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.0002959/0.1279, allocations: 43.83 kB / 482.2 MB, free: 3.828 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.699e-05/0.128, allocations: 11.92 kB / 482.2 MB, free: 3.816 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.088e-05/0.128, allocations: 4 kB / 482.2 MB, free: 3.812 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.271e-05/0.128, allocations: 0 / 482.2 MB, free: 3.812 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.094e-05/0.1281, allocations: 8 kB / 482.2 MB, free: 3.805 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.249e-06/0.1281, allocations: 0 / 482.2 MB, free: 3.805 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001162/0.1282, allocations: 47.95 kB / 482.2 MB, free: 3.758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.684e-06/0.1282, allocations: 0 / 482.2 MB, free: 3.758 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.939e-05/0.1282, allocations: 4 kB / 482.2 MB, free: 3.754 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001124/0.1284, allocations: 43.94 kB / 482.3 MB, free: 3.711 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.1284, allocations: 0 / 482.3 MB, free: 3.711 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.1284, allocations: 0 / 482.3 MB, free: 3.711 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.679e-06/0.1284, allocations: 0 / 482.3 MB, free: 3.711 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.0003348/0.1287, allocations: 353.2 kB / 482.6 MB, free: 3.309 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.1288, allocations: 12.03 kB / 482.6 MB, free: 3.297 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.216e-05/0.1288, allocations: 4.938 kB / 482.6 MB, free: 3.293 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.618e-05/0.1289, allocations: 168.3 kB / 482.8 MB, free: 3.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.401e-05/0.1289, allocations: 4.375 kB / 482.8 MB, free: 3.086 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.385e-06/0.1289, allocations: 4.312 kB / 482.8 MB, free: 3.082 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.396e-05/0.129, allocations: 26.27 kB / 482.8 MB, free: 3.051 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.002e-06/0.129, allocations: 192 / 482.8 MB, free: 3.051 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.527e-06/0.129, allocations: 7.938 kB / 482.8 MB, free: 3.043 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-06/0.129, allocations: 0 / 482.8 MB, free: 3.043 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.622e-05/0.1291, allocations: 0 / 482.8 MB, free: 3.043 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001169/0.1292, allocations: 149.7 kB / 483 MB, free: 2.848 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.17e-05/0.1292, allocations: 22.61 kB / 483 MB, free: 2.816 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.424e-05/0.1293, allocations: 8.797 kB / 483 MB, free: 2.805 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.763e-06/0.1293, allocations: 0 / 483 MB, free: 2.805 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.994e-05/0.1293, allocations: 64.31 kB / 483.1 MB, free: 2.727 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.1293, allocations: 0 / 483.1 MB, free: 2.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001655/0.1295, allocations: 71.33 kB / 483.2 MB, free: 2.645 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.456e-05/0.1295, allocations: 77.11 kB / 483.2 MB, free: 2.551 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.758e-05/0.1296, allocations: 93.86 kB / 483.3 MB, free: 2.449 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.628e-05/0.1296, allocations: 25.7 kB / 483.3 MB, free: 2.418 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.235e-05/0.1296, allocations: 80.14 kB / 483.4 MB, free: 2.336 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.888e-05/0.1297, allocations: 0 / 483.4 MB, free: 2.336 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.633e-05/0.1297, allocations: 13.72 kB / 483.4 MB, free: 2.316 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.177e-05/0.1298, allocations: 310.8 kB / 483.7 MB, free: 2.004 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.168e-05/0.1298, allocations: 12.06 kB / 483.8 MB, free: 1.992 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.573e-06/0.1298, allocations: 3.984 kB / 483.8 MB, free: 1.988 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.016e-05/0.1299, allocations: 64.27 kB / 483.8 MB, free: 1.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.1299, allocations: 0 / 483.8 MB, free: 1.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.308e-05/0.1299, allocations: 59.41 kB / 483.9 MB, free: 1.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.021e-05/0.13, allocations: 29.7 kB / 483.9 MB, free: 1.805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.13, allocations: 4 kB / 483.9 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.13, allocations: 7.922 kB / 483.9 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.102e-06/0.13, allocations: 4.031 kB / 483.9 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.698e-06/0.13, allocations: 4 kB / 483.9 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.514e-05/0.13, allocations: 0 / 483.9 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.102e-06/0.1301, allocations: 0 / 483.9 MB, free: 1.785 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 8.165e-05/0.1301, allocations: 139.5 kB / 484.1 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.154e-06/0.1302, allocations: 0 / 484.1 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.628e-06/0.1302, allocations: 7.062 kB / 484.1 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.1302, allocations: 0 / 484.1 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.1302, allocations: 0 / 484.1 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.1302, allocations: 4 kB / 484.1 MB, free: 1.625 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.126e-05/0.1303, allocations: 153.7 kB / 484.2 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.1303, allocations: 0 / 484.2 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.1303, allocations: 3.938 kB / 484.2 MB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-06/0.1303, allocations: 0 / 484.2 MB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-06/0.1303, allocations: 3.938 kB / 484.2 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.1303, allocations: 4 kB / 484.2 MB, free: 1.414 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.1303, allocations: 0 / 484.2 MB, free: 1.414 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.366e-05/0.1304, allocations: 90.83 kB / 484.3 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.965e-05/0.1305, allocations: 81.11 kB / 484.4 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.365e-05/0.1305, allocations: 3.938 kB / 484.4 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.106e-06/0.1305, allocations: 0 / 484.4 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.939e-06/0.1305, allocations: 0 / 484.4 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.449e-06/0.1305, allocations: 0 / 484.4 MB, free: 1.199 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.509e-05/0.1305, allocations: 83.2 kB / 484.5 MB, free: 1.117 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1306, allocations: 4 kB / 484.5 MB, free: 1.113 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000203/0.1308, allocations: 16 kB / 484.5 MB, free: 1.098 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.0004092/0.1312, allocations: 207.8 kB / 484.7 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.876e-05/0.1313, allocations: 59.41 kB / 484.8 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.1313, allocations: 0 / 484.8 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.201e-05/0.1313, allocations: 59.34 kB / 484.8 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001186/0.1314, allocations: 6.5 kB / 484.8 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000155/0.1316, allocations: 84.83 kB / 484.9 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00023/0.1318, allocations: 0.6691 MB / 485.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.55e-06/0.1319, allocations: 4 kB / 485.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.024e-05/0.1319, allocations: 7.438 kB / 485.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of SimCode: time 2e-07/0.1319, allocations: 0 / 485.6 MB, free: 15.95 MB / 366.1 MB Notification: Performance of Templates: time 0.00278/0.1347, allocations: 0.5864 MB / 486.2 MB, free: 15.37 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 cvode -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