Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.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.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001113/0.001113, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00132/0.001321, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.4 MB / 247.5 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2096/0.2096, allocations: 46.1 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 72.2 kB / 419 MB, free: 19.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1156, allocations: 62.45 MB / 481.4 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001704/0.1173, allocations: 478.8 kB / 481.9 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001124/0.1184, allocations: 0.7802 MB / 482.7 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.016e-05/0.1185, allocations: 0 / 482.7 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.013e-05/0.1185, allocations: 0 / 482.7 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001481/0.1187, allocations: 11.94 kB / 482.7 MB, free: 3.285 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:322:3-362:15:writable] Warning: Pure function 'ModelicaTest.Utilities.ReadFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0005564/0.1192, allocations: 61.14 kB / 482.8 MB, free: 3.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.109e-05/0.1193, allocations: 7.938 kB / 482.8 MB, free: 3.223 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.255e-05/0.1193, allocations: 7.984 kB / 482.8 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.682e-05/0.1194, allocations: 4 kB / 482.8 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.702e-05/0.1194, allocations: 4 kB / 482.8 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.246e-06/0.1195, allocations: 0 / 482.8 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001187/0.1196, allocations: 55.95 kB / 482.8 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.945e-06/0.1196, allocations: 0 / 482.8 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.914e-05/0.1196, allocations: 7.938 kB / 482.8 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001225/0.1197, allocations: 51.86 kB / 482.9 MB, free: 3.094 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.1198, allocations: 0 / 482.9 MB, free: 3.094 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1198, allocations: 3.938 kB / 482.9 MB, free: 3.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.1198, allocations: 0 / 482.9 MB, free: 3.09 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.0003176/0.1201, allocations: 361.3 kB / 483.3 MB, free: 2.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.827e-05/0.1201, allocations: 8.031 kB / 483.3 MB, free: 2.672 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.569e-05/0.1202, allocations: 0.9375 kB / 483.3 MB, free: 2.672 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001023/0.1203, allocations: 164.4 kB / 483.4 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.194e-06/0.1203, allocations: 384 / 483.4 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.408e-06/0.1203, allocations: 384 / 483.4 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.504e-05/0.1204, allocations: 30.27 kB / 483.5 MB, free: 2.438 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.781e-06/0.1204, allocations: 192 / 483.5 MB, free: 2.438 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.316e-06/0.1204, allocations: 7.938 kB / 483.5 MB, free: 2.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.437e-06/0.1204, allocations: 0 / 483.5 MB, free: 2.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.676e-05/0.1204, allocations: 3.984 kB / 483.5 MB, free: 2.426 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001192/0.1205, allocations: 149.7 kB / 483.6 MB, free: 2.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.164e-05/0.1206, allocations: 18.52 kB / 483.6 MB, free: 2.203 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.315e-05/0.1206, allocations: 8.953 kB / 483.6 MB, free: 2.191 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.102e-06/0.1206, allocations: 0 / 483.6 MB, free: 2.191 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.552e-05/0.1207, allocations: 64.25 kB / 483.7 MB, free: 2.113 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.1207, allocations: 0 / 483.7 MB, free: 2.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001485/0.1208, allocations: 75.27 kB / 483.8 MB, free: 2.027 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.888e-05/0.1209, allocations: 77.11 kB / 483.9 MB, free: 1.934 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.008e-05/0.1209, allocations: 93.86 kB / 483.9 MB, free: 1.832 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.19e-05/0.1209, allocations: 29.64 kB / 484 MB, free: 1.797 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.112e-05/0.121, allocations: 80.14 kB / 484 MB, free: 1.715 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.33e-05/0.121, allocations: 4.25 kB / 484.1 MB, free: 1.711 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.137e-05/0.121, allocations: 21.7 kB / 484.1 MB, free: 1.684 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.523e-05/0.1211, allocations: 310.8 kB / 484.4 MB, free: 1.371 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.496e-06/0.1212, allocations: 0 / 484.4 MB, free: 1.371 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.26e-06/0.1212, allocations: 0 / 484.4 MB, free: 1.371 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.472e-05/0.1212, allocations: 60.27 kB / 484.4 MB, free: 1.297 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1212, allocations: 0 / 484.4 MB, free: 1.297 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.86e-05/0.1213, allocations: 75.23 kB / 484.5 MB, free: 1.211 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.972e-05/0.1213, allocations: 37.8 kB / 484.5 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.1213, allocations: 3.938 kB / 484.6 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.1214, allocations: 0 / 484.6 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-07/0.1214, allocations: 0 / 484.6 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.1214, allocations: 0 / 484.6 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.271e-05/0.1214, allocations: 0 / 484.6 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.4e-06/0.1214, allocations: 0 / 484.6 MB, free: 1.164 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.989e-05/0.1215, allocations: 139.5 kB / 484.7 MB, free: 1.012 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.438e-06/0.1215, allocations: 3.984 kB / 484.7 MB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.036e-05/0.1215, allocations: 11.06 kB / 484.7 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.175e-06/0.1215, allocations: 4 kB / 484.7 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.1215, allocations: 0 / 484.7 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.824e-06/0.1215, allocations: 0 / 484.7 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001026/0.1216, allocations: 145.7 kB / 484.8 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.1216, allocations: 7.984 kB / 484.9 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.1217, allocations: 0 / 484.9 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.1217, allocations: 4 kB / 484.9 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.344e-06/0.1217, allocations: 3.938 kB / 484.9 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.1217, allocations: 0 / 484.9 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1217, allocations: 0 / 484.9 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.94e-05/0.1218, allocations: 98.77 kB / 485 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.465e-05/0.1219, allocations: 77.11 kB / 485 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.256e-05/0.1219, allocations: 3.938 kB / 485 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.386e-06/0.1219, allocations: 0 / 485 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.142e-05/0.1219, allocations: 4 kB / 485 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.388e-06/0.1219, allocations: 0 / 485 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.952e-05/0.122, allocations: 83.25 kB / 485.1 MB, free: 496 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.122, allocations: 0 / 485.1 MB, free: 496 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002011/0.1222, allocations: 20 kB / 485.1 MB, free: 476 kB / 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.0003136/0.1225, allocations: 188.5 kB / 485.3 MB, free: 300 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.178e-05/0.1226, allocations: 63.34 kB / 485.4 MB, free: 224 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1226, allocations: 0 / 485.4 MB, free: 224 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.798e-05/0.1226, allocations: 59.33 kB / 485.4 MB, free: 152 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001187/0.1228, allocations: 4 kB / 485.5 MB, free: 148 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001522/0.1229, allocations: 77.06 kB / 485.5 MB, free: 44 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003109/0.1232, allocations: 0.6729 MB / 486.2 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.698e-06/0.1232, allocations: 0 / 486.2 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.374e-06/0.1233, allocations: 11.44 kB / 486.2 MB, free: 15.34 MB / 366.1 MB Notification: Performance of SimCode: time 2e-07/0.1233, allocations: 0 / 486.2 MB, free: 15.34 MB / 366.1 MB Notification: Performance of Templates: time 0.002421/0.1257, allocations: 0.6485 MB / 486.9 MB, free: 14.69 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.sim & ./ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches