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.001261/0.001267, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001412/0.001412, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.499/1.499, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.238/0.238, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 79.86 kB / 481.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3646/0.366, allocations: 62.42 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001644/0.3677, allocations: 0.4885 MB / 0.5314 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001131/0.3689, allocations: 0.7766 MB / 0.5322 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.354e-05/0.3689, allocations: 0.8125 kB / 0.5322 GB, free: 12.64 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.452e-05/0.3689, allocations: 3.938 kB / 0.5322 GB, free: 12.63 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001569/0.3691, allocations: 10.67 kB / 0.5322 GB, free: 12.62 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.0005254/0.3696, allocations: 52.14 kB / 0.5323 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.344e-05/0.3697, allocations: 6.266 kB / 0.5323 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.909e-05/0.3697, allocations: 1.312 kB / 0.5323 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.502e-05/0.3697, allocations: 1.125 kB / 0.5323 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.09e-05/0.3698, allocations: 7.156 kB / 0.5323 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.313e-06/0.3698, allocations: 0 / 0.5323 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000118/0.37, allocations: 61.66 kB / 0.5323 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.625e-06/0.37, allocations: 0 / 0.5323 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.506e-05/0.37, allocations: 5.844 kB / 0.5323 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000115/0.3701, allocations: 53.89 kB / 0.5324 GB, free: 12.52 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.3701, allocations: 1.812 kB / 0.5324 GB, free: 12.52 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3701, allocations: 0 / 0.5324 GB, free: 12.52 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.3702, allocations: 0 / 0.5324 GB, free: 12.52 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.0003886/0.3706, allocations: 352.4 kB / 0.5327 GB, free: 12.12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.3706, allocations: 12.91 kB / 0.5327 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.378e-05/0.3706, allocations: 2.719 kB / 0.5327 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000106/0.3707, allocations: 160.4 kB / 0.5329 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.279e-05/0.3708, allocations: 2.219 kB / 0.5329 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.664e-06/0.3708, allocations: 384 / 0.5329 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.091e-05/0.3709, allocations: 33.78 kB / 0.5329 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.3709, allocations: 192 / 0.5329 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.879e-06/0.3709, allocations: 3.938 kB / 0.5329 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.3709, allocations: 0 / 0.5329 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.03e-05/0.3709, allocations: 9.75 kB / 0.5329 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001317/0.3711, allocations: 147.5 kB / 0.5331 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.81e-05/0.3711, allocations: 20.38 kB / 0.5331 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.427e-05/0.3711, allocations: 10.8 kB / 0.5331 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.083e-06/0.3712, allocations: 0 / 0.5331 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.51e-05/0.3712, allocations: 58.55 kB / 0.5332 GB, free: 11.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.3712, allocations: 0 / 0.5332 GB, free: 11.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001649/0.3714, allocations: 78.12 kB / 0.5332 GB, free: 11.49 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.929e-05/0.3715, allocations: 82.41 kB / 0.5333 GB, free: 11.39 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.034e-05/0.3715, allocations: 91.2 kB / 0.5334 GB, free: 11.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.241e-05/0.3715, allocations: 25.7 kB / 0.5334 GB, free: 11.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.446e-05/0.3716, allocations: 81.48 kB / 0.5335 GB, free: 11.18 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.665e-05/0.3716, allocations: 3.906 kB / 0.5335 GB, free: 11.18 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.888e-05/0.3716, allocations: 16.38 kB / 0.5335 GB, free: 11.16 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.3717, allocations: 315.1 kB / 0.5338 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.866e-06/0.3718, allocations: 1.125 kB / 0.5338 GB, free: 10.84 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.071e-06/0.3718, allocations: 1.344 kB / 0.5338 GB, free: 10.84 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.275e-05/0.3718, allocations: 64.09 kB / 0.5339 GB, free: 10.77 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3718, allocations: 0 / 0.5339 GB, free: 10.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.599e-05/0.3719, allocations: 67.41 kB / 0.534 GB, free: 10.7 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.764e-05/0.3719, allocations: 30.83 kB / 0.534 GB, free: 10.67 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.3719, allocations: 3.938 kB / 0.534 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.046e-05/0.372, allocations: 5.906 kB / 0.534 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.31e-07/0.372, allocations: 0 / 0.534 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.372, allocations: 3.984 kB / 0.534 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.407e-05/0.372, allocations: 2.281 kB / 0.534 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.783e-06/0.372, allocations: 4 kB / 0.534 GB, free: 10.65 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 6.722e-05/0.3721, allocations: 137.7 kB / 0.5341 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.384e-06/0.3721, allocations: 0 / 0.5341 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.796e-06/0.3721, allocations: 9.125 kB / 0.5341 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.3721, allocations: 3.984 kB / 0.5341 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.287e-06/0.3721, allocations: 4 kB / 0.5342 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.704e-06/0.3721, allocations: 0 / 0.5342 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.623e-05/0.3722, allocations: 147.6 kB / 0.5343 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.3722, allocations: 0 / 0.5343 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.3722, allocations: 2.438 kB / 0.5343 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-06/0.3722, allocations: 0 / 0.5343 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.021e-05/0.3723, allocations: 7.938 kB / 0.5343 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.3723, allocations: 0 / 0.5343 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3723, allocations: 7.156 kB / 0.5343 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.335e-05/0.3724, allocations: 95.67 kB / 0.5344 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.805e-05/0.3724, allocations: 81.89 kB / 0.5345 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.428e-05/0.3724, allocations: 5.125 kB / 0.5345 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.027e-06/0.3724, allocations: 0 / 0.5345 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.207e-05/0.3724, allocations: 1.125 kB / 0.5345 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.477e-06/0.3725, allocations: 1.594 kB / 0.5345 GB, free: 10.08 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.814e-05/0.3725, allocations: 79.27 kB / 0.5346 GB, free: 10 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3725, allocations: 0 / 0.5346 GB, free: 10 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002232/0.3727, allocations: 18.12 kB / 0.5346 GB, free: 10 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.0003406/0.3731, allocations: 191.7 kB / 0.5348 GB, free: 9.863 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.457e-05/0.3732, allocations: 64.89 kB / 0.5348 GB, free: 9.793 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.3732, allocations: 0 / 0.5348 GB, free: 9.793 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.773e-05/0.3732, allocations: 59.47 kB / 0.5349 GB, free: 9.727 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001231/0.3733, allocations: 1.375 kB / 0.5349 GB, free: 9.727 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001512/0.3735, allocations: 81.33 kB / 0.535 GB, free: 9.629 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002091/0.3737, allocations: 0.6742 MB / 0.5356 GB, free: 8.93 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.871e-06/0.3737, allocations: 5.5 kB / 0.5356 GB, free: 8.926 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.207e-06/0.3737, allocations: 7.438 kB / 0.5356 GB, free: 8.918 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3737, allocations: 0 / 0.5356 GB, free: 8.918 MB / 398.1 MB Notification: Performance of Templates: time 0.002449/0.3762, allocations: 0.6521 MB / 0.5363 GB, free: 8.574 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestReadFile/TestReadFile.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestReadFile.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches