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.001301/0.001301, allocations: 117.6 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001396/0.001396, allocations: 199.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.507/1.507, allocations: 227.4 MB / 246.9 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.2402/0.2402, allocations: 46.11 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002072/0.002072, allocations: 75.88 kB / 481.3 MB, free: 4.109 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4046/0.4067, allocations: 62.45 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001575/0.4083, allocations: 481.5 kB / 0.5314 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001108/0.4095, allocations: 0.784 MB / 0.5322 GB, free: 12.63 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.089e-05/0.4095, allocations: 0 / 0.5322 GB, free: 12.63 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.441e-05/0.4095, allocations: 1.438 kB / 0.5322 GB, free: 12.63 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001485/0.4097, allocations: 13.5 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.0005057/0.4102, allocations: 58.67 kB / 0.5323 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.994e-05/0.4102, allocations: 6.281 kB / 0.5323 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.342e-05/0.4103, allocations: 1.5 kB / 0.5323 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.558e-05/0.4103, allocations: 1.469 kB / 0.5323 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.038e-05/0.4104, allocations: 6.141 kB / 0.5323 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.913e-06/0.4104, allocations: 0 / 0.5323 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00014/0.4105, allocations: 57.92 kB / 0.5323 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.603e-06/0.4106, allocations: 0 / 0.5323 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.906e-05/0.4106, allocations: 5.719 kB / 0.5323 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001132/0.4107, allocations: 57.81 kB / 0.5324 GB, free: 12.51 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.4107, allocations: 0 / 0.5324 GB, free: 12.51 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4107, allocations: 0 / 0.5324 GB, free: 12.51 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.509e-06/0.4107, allocations: 1.781 kB / 0.5324 GB, free: 12.51 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.0003016/0.411, allocations: 352.4 kB / 0.5327 GB, free: 12.12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.058e-05/0.4111, allocations: 10.31 kB / 0.5327 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.855e-05/0.4111, allocations: 0.9375 kB / 0.5327 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.4112, allocations: 160.4 kB / 0.5329 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.284e-05/0.4112, allocations: 5.828 kB / 0.5329 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.137e-06/0.4112, allocations: 8.312 kB / 0.5329 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.079e-05/0.4113, allocations: 33.08 kB / 0.5329 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.4113, allocations: 192 / 0.5329 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.4114, allocations: 3.938 kB / 0.5329 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.4114, allocations: 1.281 kB / 0.5329 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.918e-05/0.4114, allocations: 5.328 kB / 0.533 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001373/0.4115, allocations: 147 kB / 0.5331 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.012e-05/0.4116, allocations: 17.2 kB / 0.5331 GB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.615e-05/0.4116, allocations: 17.92 kB / 0.5331 GB, free: 11.63 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.917e-06/0.4116, allocations: 0 / 0.5331 GB, free: 11.63 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.67e-05/0.4117, allocations: 57.58 kB / 0.5332 GB, free: 11.56 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.4117, allocations: 0 / 0.5332 GB, free: 11.56 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001713/0.4119, allocations: 72.2 kB / 0.5333 GB, free: 11.49 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.403e-05/0.4119, allocations: 77.11 kB / 0.5333 GB, free: 11.39 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.976e-05/0.412, allocations: 95.52 kB / 0.5334 GB, free: 11.29 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.17e-05/0.412, allocations: 27.7 kB / 0.5334 GB, free: 11.26 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.314e-05/0.412, allocations: 80.14 kB / 0.5335 GB, free: 11.18 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.579e-05/0.4121, allocations: 7.891 kB / 0.5335 GB, free: 11.17 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.697e-05/0.4121, allocations: 16.59 kB / 0.5335 GB, free: 11.15 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.4122, allocations: 310.8 kB / 0.5338 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.182e-05/0.4122, allocations: 5.906 kB / 0.5338 GB, free: 10.84 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.142e-06/0.4122, allocations: 1.969 kB / 0.5338 GB, free: 10.84 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.22e-05/0.4123, allocations: 62.55 kB / 0.5339 GB, free: 10.76 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.4123, allocations: 0 / 0.5339 GB, free: 10.76 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.798e-05/0.4124, allocations: 68.61 kB / 0.534 GB, free: 10.69 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.938e-05/0.4124, allocations: 31.83 kB / 0.534 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.648e-05/0.4124, allocations: 7.938 kB / 0.534 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.4124, allocations: 0 / 0.534 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.273e-06/0.4124, allocations: 0 / 0.534 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.4125, allocations: 0 / 0.534 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.323e-05/0.4125, allocations: 0 / 0.534 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.582e-06/0.4125, allocations: 3.281 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 7.838e-05/0.4126, allocations: 147.4 kB / 0.5342 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.506e-06/0.4126, allocations: 1.906 kB / 0.5342 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.828e-06/0.4126, allocations: 7.062 kB / 0.5342 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.71e-07/0.4126, allocations: 0 / 0.5342 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.4126, allocations: 1.188 kB / 0.5342 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-06/0.4126, allocations: 0 / 0.5342 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.632e-05/0.4127, allocations: 148.1 kB / 0.5343 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.4127, allocations: 3.984 kB / 0.5343 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.4127, allocations: 0 / 0.5343 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.4127, allocations: 5.656 kB / 0.5343 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.616e-06/0.4128, allocations: 3.938 kB / 0.5343 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.4128, allocations: 3.938 kB / 0.5343 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.4128, allocations: 5.562 kB / 0.5343 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.728e-05/0.4129, allocations: 90.92 kB / 0.5344 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.067e-05/0.4129, allocations: 80.77 kB / 0.5345 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.235e-05/0.4129, allocations: 3.938 kB / 0.5345 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.598e-06/0.4129, allocations: 5 kB / 0.5345 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.042e-05/0.413, allocations: 2.375 kB / 0.5345 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.589e-06/0.413, allocations: 0 / 0.5345 GB, free: 10.07 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.746e-05/0.413, allocations: 81.66 kB / 0.5346 GB, free: 9.996 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.413, allocations: 0 / 0.5346 GB, free: 9.996 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002022/0.4132, allocations: 12.38 kB / 0.5346 GB, free: 9.996 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.0003348/0.4136, allocations: 185.1 kB / 0.5348 GB, free: 9.863 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.983e-05/0.4137, allocations: 56.91 kB / 0.5348 GB, free: 9.801 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.4137, allocations: 0 / 0.5348 GB, free: 9.801 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.961e-05/0.4137, allocations: 62.2 kB / 0.5349 GB, free: 9.73 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001273/0.4138, allocations: 6.688 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.0001634/0.414, 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.0002098/0.4142, allocations: 0.6703 MB / 0.5356 GB, free: 8.934 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.619e-06/0.4142, allocations: 0 / 0.5356 GB, free: 8.934 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.958e-06/0.4142, allocations: 8.812 kB / 0.5356 GB, free: 8.926 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4142, allocations: 0 / 0.5356 GB, free: 8.926 MB / 398.1 MB Notification: Performance of Templates: time 0.002565/0.4168, allocations: 0.6578 MB / 0.5363 GB, free: 8.57 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