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.00161/0.00161, allocations: 114 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002083/0.002083, allocations: 217.9 kB / 19.41 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2162/0.2162, allocations: 46.1 MB / 345 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 75.88 kB / 482 MB, free: 4.121 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3545/0.3559, allocations: 62.44 MB / 0.5316 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001681/0.3577, allocations: 484.9 kB / 0.5321 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001233/0.3589, allocations: 0.7847 MB / 0.5329 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.914e-05/0.359, allocations: 0 / 0.5329 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.382e-05/0.359, allocations: 1.438 kB / 0.5329 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001785/0.3592, allocations: 9.516 kB / 0.5329 GB, free: 12.64 MB / 398.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.0006031/0.3598, allocations: 57.66 kB / 0.5329 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.521e-05/0.3599, allocations: 7.984 kB / 0.5329 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.74e-05/0.3599, allocations: 7.156 kB / 0.5329 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.783e-05/0.3599, allocations: 0 / 0.5329 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.358e-05/0.36, allocations: 3 kB / 0.5329 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.927e-06/0.36, allocations: 4 kB / 0.5329 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001277/0.3602, allocations: 58.36 kB / 0.533 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.266e-06/0.3602, allocations: 0 / 0.533 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.276e-05/0.3602, allocations: 3.984 kB / 0.533 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001266/0.3603, allocations: 54.48 kB / 0.5331 GB, free: 12.53 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.3604, allocations: 0 / 0.5331 GB, free: 12.53 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3604, allocations: 1.375 kB / 0.5331 GB, free: 12.53 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.3604, allocations: 0 / 0.5331 GB, free: 12.53 MB / 398.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.0003759/0.3608, allocations: 348.1 kB / 0.5334 GB, free: 12.14 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.3608, allocations: 13.62 kB / 0.5334 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.916e-05/0.3608, allocations: 2.312 kB / 0.5334 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001036/0.3609, allocations: 164.3 kB / 0.5336 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.348e-05/0.361, allocations: 5.75 kB / 0.5336 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.163e-05/0.361, allocations: 1.75 kB / 0.5336 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.07e-05/0.3611, allocations: 27.64 kB / 0.5336 GB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.3611, allocations: 192 / 0.5336 GB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.049e-05/0.3611, allocations: 5.312 kB / 0.5336 GB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.3611, allocations: 0 / 0.5336 GB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.674e-05/0.3611, allocations: 1.375 kB / 0.5336 GB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001221/0.3613, allocations: 151 kB / 0.5337 GB, free: 11.7 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.343e-05/0.3613, allocations: 25.25 kB / 0.5338 GB, free: 11.67 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.697e-05/0.3613, allocations: 10.23 kB / 0.5338 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.474e-06/0.3614, allocations: 3.938 kB / 0.5338 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.466e-05/0.3614, allocations: 57.64 kB / 0.5338 GB, free: 11.59 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.302e-06/0.3614, allocations: 0 / 0.5338 GB, free: 11.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001581/0.3616, allocations: 71.58 kB / 0.5339 GB, free: 11.51 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.519e-05/0.3617, allocations: 78.48 kB / 0.534 GB, free: 11.42 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.58e-05/0.3617, allocations: 95.23 kB / 0.5341 GB, free: 11.32 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.37e-05/0.3618, allocations: 25.7 kB / 0.5341 GB, free: 11.29 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.933e-05/0.3618, allocations: 81.52 kB / 0.5342 GB, free: 11.2 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.578e-05/0.3618, allocations: 7.844 kB / 0.5342 GB, free: 11.2 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.731e-05/0.3619, allocations: 16.45 kB / 0.5342 GB, free: 11.18 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.362, allocations: 315.1 kB / 0.5345 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.397e-06/0.362, allocations: 1.375 kB / 0.5345 GB, free: 10.86 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.611e-06/0.362, allocations: 1.375 kB / 0.5345 GB, free: 10.86 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.181e-05/0.3621, allocations: 64.39 kB / 0.5346 GB, free: 10.79 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3621, allocations: 0 / 0.5346 GB, free: 10.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.807e-05/0.3622, allocations: 62.27 kB / 0.5346 GB, free: 10.72 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.036e-05/0.3622, allocations: 31.2 kB / 0.5347 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.3622, allocations: 9.25 kB / 0.5347 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.3622, allocations: 4.094 kB / 0.5347 GB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.524e-06/0.3622, allocations: 4 kB / 0.5347 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.3623, allocations: 5.312 kB / 0.5347 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.39e-05/0.3623, allocations: 0 / 0.5347 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.602e-06/0.3623, allocations: 1.375 kB / 0.5347 GB, free: 10.67 MB / 398.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.754e-05/0.3624, allocations: 140.9 kB / 0.5348 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.937e-06/0.3624, allocations: 5.359 kB / 0.5348 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.048e-05/0.3624, allocations: 8.438 kB / 0.5348 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.3624, allocations: 0 / 0.5348 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.3624, allocations: 4 kB / 0.5348 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.3624, allocations: 0 / 0.5348 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001077/0.3625, allocations: 144.4 kB / 0.535 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.3625, allocations: 0 / 0.535 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.885e-06/0.3625, allocations: 3.984 kB / 0.535 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.3625, allocations: 1.375 kB / 0.535 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/0.3626, allocations: 3.938 kB / 0.535 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.3626, allocations: 1.375 kB / 0.535 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.3626, allocations: 0 / 0.535 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.007e-05/0.3627, allocations: 93.78 kB / 0.5351 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.145e-05/0.3627, allocations: 86.12 kB / 0.5351 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.446e-05/0.3627, allocations: 5.312 kB / 0.5352 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.032e-05/0.3627, allocations: 0 / 0.5352 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.491e-05/0.3628, allocations: 5.312 kB / 0.5352 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-06/0.3628, allocations: 0 / 0.5352 GB, free: 10.1 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.865e-05/0.3628, allocations: 76.66 kB / 0.5352 GB, free: 10.02 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3628, allocations: 0 / 0.5352 GB, free: 10.02 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002127/0.363, allocations: 21.88 kB / 0.5353 GB, free: 10.02 MB / 398.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.0003572/0.3634, allocations: 194.8 kB / 0.5354 GB, free: 9.875 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.606e-05/0.3635, allocations: 56.91 kB / 0.5355 GB, free: 9.812 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3635, allocations: 0 / 0.5355 GB, free: 9.812 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.755e-05/0.3636, allocations: 59.53 kB / 0.5355 GB, free: 9.746 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001349/0.3637, allocations: 5.359 kB / 0.5356 GB, free: 9.742 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001693/0.3639, allocations: 101.7 kB / 0.5357 GB, free: 9.617 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002546/0.3641, allocations: 0.6716 MB / 0.5363 GB, free: 8.922 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.044e-05/0.3641, allocations: 15.5 kB / 0.5363 GB, free: 8.906 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3642, allocations: 0 / 0.5363 GB, free: 8.906 MB / 398.1 MB Notification: Performance of Templates: time 0.002317/0.3665, allocations: 0.8169 MB / 0.5371 GB, free: 8.5 MB / 398.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 -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