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.001368/0.001368, allocations: 100.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001265/0.001265, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.4 MB / 246.9 MB, free: 10.69 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2122/0.2122, allocations: 46.11 MB / 344.3 MB, free: 11.7 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00157/0.00157, allocations: 76.14 kB / 417.5 MB, free: 20.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.116, allocations: 62.44 MB / 479.9 MB, free: 5.727 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.00183/0.1179, allocations: 0.5333 MB / 480.5 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006095/0.1185, allocations: 214 kB / 480.7 MB, free: 4.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.414e-05/0.1186, allocations: 0 / 480.7 MB, free: 4.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.442e-05/0.1186, allocations: 0 / 480.7 MB, free: 4.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.391e-06/0.1186, allocations: 0 / 480.7 MB, free: 4.98 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.0002812/0.1189, allocations: 39.89 kB / 480.7 MB, free: 4.941 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.793e-05/0.119, allocations: 3.938 kB / 480.7 MB, free: 4.938 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.704e-05/0.119, allocations: 8 kB / 480.7 MB, free: 4.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.827e-05/0.119, allocations: 3.984 kB / 480.7 MB, free: 4.926 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.936e-05/0.1191, allocations: 0 / 480.7 MB, free: 4.926 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.893e-06/0.1191, allocations: 0 / 480.7 MB, free: 4.926 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001354/0.1192, allocations: 47.95 kB / 480.8 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.504e-06/0.1192, allocations: 0 / 480.8 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.414e-05/0.1193, allocations: 0 / 480.8 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.561e-05/0.1194, allocations: 31.95 kB / 480.8 MB, free: 4.848 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1194, allocations: 0 / 480.8 MB, free: 4.848 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.81e-07/0.1194, allocations: 0 / 480.8 MB, free: 4.848 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.1194, allocations: 4 kB / 480.8 MB, free: 4.844 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.0003235/0.1197, allocations: 353.2 kB / 481.2 MB, free: 4.441 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.1198, allocations: 12.88 kB / 481.2 MB, free: 4.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.595e-05/0.1198, allocations: 0.9375 kB / 481.2 MB, free: 4.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001079/0.1199, allocations: 160.4 kB / 481.3 MB, free: 4.234 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.208e-06/0.1199, allocations: 384 / 481.3 MB, free: 4.234 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.004e-05/0.1199, allocations: 384 / 481.3 MB, free: 4.234 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.712e-05/0.12, allocations: 38.2 kB / 481.4 MB, free: 4.191 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.1201, allocations: 4.172 kB / 481.4 MB, free: 4.188 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.1201, allocations: 3.938 kB / 481.4 MB, free: 4.184 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.1201, allocations: 7.984 kB / 481.4 MB, free: 4.176 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.773e-05/0.1201, allocations: 7.938 kB / 481.4 MB, free: 4.168 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001244/0.1203, allocations: 141.7 kB / 481.5 MB, free: 3.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.62e-05/0.1203, allocations: 14.58 kB / 481.5 MB, free: 3.957 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.791e-05/0.1203, allocations: 8.953 kB / 481.5 MB, free: 3.945 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.286e-06/0.1203, allocations: 0 / 481.5 MB, free: 3.945 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.384e-05/0.1204, allocations: 68.19 kB / 481.6 MB, free: 3.863 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.1204, allocations: 4 kB / 481.6 MB, free: 3.859 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001804/0.1206, allocations: 63.34 kB / 481.7 MB, free: 3.785 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.152e-05/0.1207, allocations: 77.11 kB / 481.8 MB, free: 3.691 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.029e-05/0.1207, allocations: 89.86 kB / 481.8 MB, free: 3.594 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.374e-05/0.1207, allocations: 29.7 kB / 481.9 MB, free: 3.559 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.842e-05/0.1207, allocations: 80.14 kB / 481.9 MB, free: 3.477 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.085e-05/0.1208, allocations: 0 / 481.9 MB, free: 3.477 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.169e-05/0.1208, allocations: 17.7 kB / 482 MB, free: 3.453 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.1209, allocations: 319 kB / 482.3 MB, free: 3.133 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.787e-06/0.121, allocations: 0 / 482.3 MB, free: 3.133 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.023e-06/0.121, allocations: 0 / 482.3 MB, free: 3.133 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.109e-05/0.121, allocations: 64.2 kB / 482.3 MB, free: 3.055 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.121, allocations: 0 / 482.3 MB, free: 3.055 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.349e-05/0.1211, allocations: 67.39 kB / 482.4 MB, free: 2.977 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.621e-05/0.1212, allocations: 29.7 kB / 482.4 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.1212, allocations: 0 / 482.4 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.1212, allocations: 8.031 kB / 482.4 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.1212, allocations: 0 / 482.4 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.1212, allocations: 4 kB / 482.4 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.886e-05/0.1212, allocations: 4 kB / 482.4 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.244e-06/0.1212, allocations: 3.938 kB / 482.5 MB, free: 2.922 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.17e-05/0.1213, allocations: 131.5 kB / 482.6 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.02e-05/0.1213, allocations: 4 kB / 482.6 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.183e-05/0.1214, allocations: 11.05 kB / 482.6 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.1214, allocations: 0 / 482.6 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.1214, allocations: 4 kB / 482.6 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.1214, allocations: 3.938 kB / 482.6 MB, free: 2.758 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.52e-05/0.1215, allocations: 145.7 kB / 482.7 MB, free: 2.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.1215, allocations: 4 kB / 482.7 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.1215, allocations: 0 / 482.7 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.1215, allocations: 0 / 482.7 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.1215, allocations: 3.938 kB / 482.8 MB, free: 2.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.544e-06/0.1215, allocations: 3.984 kB / 482.8 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.1215, allocations: 3.984 kB / 482.8 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001007/0.1216, allocations: 94.84 kB / 482.9 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.518e-05/0.1217, allocations: 81.09 kB / 482.9 MB, free: 2.336 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.414e-05/0.1217, allocations: 7.875 kB / 482.9 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.17e-05/0.1217, allocations: 4 kB / 482.9 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.376e-05/0.1217, allocations: 0 / 482.9 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-06/0.1217, allocations: 0 / 482.9 MB, free: 2.324 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.211e-05/0.1218, allocations: 75.28 kB / 483 MB, free: 2.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1218, allocations: 0 / 483 MB, free: 2.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002417/0.122, allocations: 20.03 kB / 483 MB, free: 2.23 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.0003997/0.1224, allocations: 199.6 kB / 483.2 MB, free: 2.055 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.711e-05/0.1225, allocations: 63.34 kB / 483.3 MB, free: 1.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.1225, allocations: 0 / 483.3 MB, free: 1.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.15e-05/0.1226, allocations: 59.39 kB / 483.4 MB, free: 1.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001226/0.1227, allocations: 0 / 483.4 MB, free: 1.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001816/0.1229, allocations: 112.4 kB / 483.5 MB, free: 1.766 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002165/0.1231, allocations: 0.6692 MB / 484.1 MB, free: 1.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.508e-06/0.1231, allocations: 7.438 kB / 484.1 MB, free: 1.066 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1231, allocations: 0 / 484.1 MB, free: 1.066 MB / 350.1 MB Notification: Performance of Templates: time 0.002137/0.1253, allocations: 0.7605 MB / 484.9 MB, free: 316 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/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