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.001232/0.001232, allocations: 116 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001676/0.001676, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2149/0.2149, allocations: 46.1 MB / 343.8 MB, free: 11.76 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 76.42 kB / 417 MB, free: 20.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1262, allocations: 62.45 MB / 479.5 MB, free: 5.641 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.002129/0.1284, allocations: 0.5292 MB / 480 MB, free: 5.105 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005988/0.129, allocations: 202.2 kB / 480.2 MB, free: 4.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.068e-05/0.1291, allocations: 8 kB / 480.2 MB, free: 4.902 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.869e-05/0.1291, allocations: 0 / 480.2 MB, free: 4.902 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.179e-06/0.1292, allocations: 0 / 480.2 MB, free: 4.902 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.000355/0.1295, allocations: 43.88 kB / 480.3 MB, free: 4.859 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.097e-05/0.1296, allocations: 7.938 kB / 480.3 MB, free: 4.852 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.932e-05/0.1296, allocations: 0 / 480.3 MB, free: 4.852 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.609e-05/0.1296, allocations: 0 / 480.3 MB, free: 4.852 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.178e-05/0.1297, allocations: 0 / 480.3 MB, free: 4.852 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.563e-06/0.1297, allocations: 0 / 480.3 MB, free: 4.852 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001366/0.1298, allocations: 51.95 kB / 480.3 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.424e-06/0.1298, allocations: 0 / 480.3 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.548e-05/0.1299, allocations: 7.984 kB / 480.3 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000125/0.13, allocations: 51.88 kB / 480.4 MB, free: 4.742 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.13, allocations: 0 / 480.4 MB, free: 4.742 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.13, allocations: 0 / 480.4 MB, free: 4.742 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.13, allocations: 0 / 480.4 MB, free: 4.742 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.0003316/0.1304, allocations: 353.2 kB / 480.7 MB, free: 4.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.1304, allocations: 11.97 kB / 480.7 MB, free: 4.328 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.202e-05/0.1305, allocations: 0.9375 kB / 480.7 MB, free: 4.328 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.1306, allocations: 160.4 kB / 480.9 MB, free: 4.133 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.003e-05/0.1306, allocations: 384 / 480.9 MB, free: 4.133 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.281e-05/0.1306, allocations: 8.375 kB / 480.9 MB, free: 4.125 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.251e-05/0.1307, allocations: 30.27 kB / 480.9 MB, free: 4.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.1307, allocations: 192 / 480.9 MB, free: 4.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.265e-05/0.1308, allocations: 11.92 kB / 480.9 MB, free: 4.078 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.1308, allocations: 0 / 480.9 MB, free: 4.078 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.974e-05/0.1308, allocations: 4 kB / 480.9 MB, free: 4.074 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001358/0.1309, allocations: 149.6 kB / 481.1 MB, free: 3.879 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.965e-05/0.131, allocations: 18.61 kB / 481.1 MB, free: 3.852 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.846e-05/0.131, allocations: 8.859 kB / 481.1 MB, free: 3.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.939e-06/0.131, allocations: 0 / 481.1 MB, free: 3.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.419e-05/0.1311, allocations: 60.27 kB / 481.2 MB, free: 3.766 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.1311, allocations: 0 / 481.2 MB, free: 3.766 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001755/0.1313, allocations: 71.33 kB / 481.2 MB, free: 3.684 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.923e-05/0.1313, allocations: 81.11 kB / 481.3 MB, free: 3.586 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.583e-05/0.1314, allocations: 89.86 kB / 481.4 MB, free: 3.488 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.28e-05/0.1314, allocations: 29.83 kB / 481.4 MB, free: 3.453 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.988e-05/0.1314, allocations: 80.14 kB / 481.5 MB, free: 3.371 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.203e-05/0.1315, allocations: 4 kB / 481.5 MB, free: 3.367 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.856e-05/0.1315, allocations: 13.72 kB / 481.5 MB, free: 3.348 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.1316, allocations: 314.8 kB / 481.8 MB, free: 3.031 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.528e-06/0.1316, allocations: 0 / 481.8 MB, free: 3.031 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.251e-06/0.1317, allocations: 0 / 481.8 MB, free: 3.031 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.839e-05/0.1317, allocations: 64.33 kB / 481.9 MB, free: 2.953 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1317, allocations: 0 / 481.9 MB, free: 2.953 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.91e-05/0.1318, allocations: 67.34 kB / 482 MB, free: 2.875 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.48e-05/0.1319, allocations: 36.34 kB / 482 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.1319, allocations: 0 / 482 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.119e-05/0.1319, allocations: 3.938 kB / 482 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.583e-06/0.1319, allocations: 7.938 kB / 482 MB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.1319, allocations: 0 / 482 MB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.764e-05/0.1319, allocations: 0 / 482 MB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.783e-06/0.132, allocations: 0 / 482 MB, free: 2.824 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.852e-05/0.1321, allocations: 139.6 kB / 482.2 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.235e-06/0.1321, allocations: 0 / 482.2 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.157e-05/0.1321, allocations: 7.062 kB / 482.2 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.1321, allocations: 0 / 482.2 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.1321, allocations: 0 / 482.2 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.1321, allocations: 3.984 kB / 482.2 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001007/0.1322, allocations: 153.6 kB / 482.3 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1322, allocations: 0 / 482.3 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.52e-07/0.1322, allocations: 0 / 482.3 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.1322, allocations: 0 / 482.3 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.757e-06/0.1322, allocations: 7.938 kB / 482.3 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.1322, allocations: 0 / 482.3 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.1323, allocations: 0 / 482.3 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001129/0.1324, allocations: 98.75 kB / 482.4 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.478e-05/0.1324, allocations: 77.11 kB / 482.5 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.488e-05/0.1324, allocations: 7.938 kB / 482.5 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.05e-05/0.1324, allocations: 4 kB / 482.5 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.831e-05/0.1325, allocations: 8.016 kB / 482.5 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-06/0.1325, allocations: 0 / 482.5 MB, free: 2.223 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.821e-05/0.1325, allocations: 75.28 kB / 482.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1325, allocations: 0 / 482.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000211/0.1327, allocations: 16 kB / 482.6 MB, free: 2.133 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.0004087/0.1332, allocations: 200 kB / 482.8 MB, free: 1.957 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001214/0.1333, allocations: 59.41 kB / 482.9 MB, free: 1.887 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.1333, allocations: 4.062 kB / 482.9 MB, free: 1.883 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.259e-05/0.1333, allocations: 63.28 kB / 482.9 MB, free: 1.809 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000124/0.1335, allocations: 3.984 kB / 482.9 MB, free: 1.805 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001831/0.1337, allocations: 80.84 kB / 483 MB, free: 1.699 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002372/0.1339, allocations: 0.669 MB / 483.7 MB, free: 1.004 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.902e-06/0.1339, allocations: 0 / 483.7 MB, free: 1.004 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.032e-05/0.1339, allocations: 11.44 kB / 483.7 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1339, allocations: 0 / 483.7 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of Templates: time 0.003184/0.1371, allocations: 0.5899 MB / 484.3 MB, free: 420 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