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.001002/0.001002, allocations: 108 kB / 18.44 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001206/0.001207, allocations: 211.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.246/1.246, allocations: 227.4 MB / 247.6 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1931/0.1931, allocations: 46.11 MB / 344.9 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 75.88 kB / 481.9 MB, free: 4.113 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.285/0.2864, allocations: 62.44 MB / 0.5316 GB, free: 13.82 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.001427/0.2878, allocations: 495.6 kB / 0.5321 GB, free: 13.46 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000969/0.2888, allocations: 0.778 MB / 0.5329 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.325e-05/0.2889, allocations: 0 / 0.5329 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.502e-05/0.2889, allocations: 3.938 kB / 0.5329 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000139/0.289, allocations: 6.094 kB / 0.5329 GB, free: 12.85 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.0005301/0.2896, allocations: 58.81 kB / 0.5329 GB, free: 12.81 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.764e-05/0.2896, allocations: 6.469 kB / 0.5329 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.329e-05/0.2897, allocations: 1.25 kB / 0.5329 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.615e-05/0.2897, allocations: 1.312 kB / 0.5329 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.999e-05/0.2898, allocations: 10.58 kB / 0.5329 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.685e-06/0.2898, allocations: 0 / 0.5329 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001108/0.2899, allocations: 58.94 kB / 0.533 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.693e-06/0.2899, allocations: 0 / 0.533 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.946e-05/0.2899, allocations: 7.938 kB / 0.533 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001179/0.2901, allocations: 42.69 kB / 0.5331 GB, free: 12.74 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2901, allocations: 0 / 0.5331 GB, free: 12.74 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.2901, allocations: 1.844 kB / 0.5331 GB, free: 12.74 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.2901, allocations: 4 kB / 0.5331 GB, free: 12.73 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.0003006/0.2904, allocations: 356 kB / 0.5334 GB, free: 12.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.116e-05/0.2904, allocations: 9.625 kB / 0.5334 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.891e-05/0.2905, allocations: 2.312 kB / 0.5334 GB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000104/0.2906, allocations: 160.4 kB / 0.5336 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.2906, allocations: 1.75 kB / 0.5336 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.037e-06/0.2906, allocations: 384 / 0.5336 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.572e-05/0.2907, allocations: 36.98 kB / 0.5336 GB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.011e-06/0.2907, allocations: 4.188 kB / 0.5336 GB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/0.2907, allocations: 5.312 kB / 0.5336 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.656e-06/0.2907, allocations: 0 / 0.5336 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.473e-05/0.2907, allocations: 1.375 kB / 0.5336 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000112/0.2909, allocations: 151 kB / 0.5338 GB, free: 11.9 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.216e-05/0.2909, allocations: 17.33 kB / 0.5338 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.496e-05/0.2909, allocations: 14.16 kB / 0.5338 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.918e-06/0.2909, allocations: 0 / 0.5338 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.832e-05/0.291, allocations: 65.64 kB / 0.5338 GB, free: 11.78 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.291, allocations: 0 / 0.5338 GB, free: 11.78 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001506/0.2911, allocations: 71.52 kB / 0.5339 GB, free: 11.71 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.519e-05/0.2912, allocations: 78.48 kB / 0.534 GB, free: 11.61 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.901e-05/0.2913, allocations: 95.22 kB / 0.5341 GB, free: 11.51 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.005e-05/0.2913, allocations: 25.7 kB / 0.5341 GB, free: 11.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.006e-05/0.2913, allocations: 80.39 kB / 0.5342 GB, free: 11.4 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.572e-05/0.2913, allocations: 13.28 kB / 0.5342 GB, free: 11.39 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.416e-05/0.2914, allocations: 12.47 kB / 0.5342 GB, free: 11.37 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.637e-05/0.2915, allocations: 314.8 kB / 0.5345 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.699e-06/0.2915, allocations: 1.375 kB / 0.5345 GB, free: 11.05 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.48e-06/0.2915, allocations: 1.375 kB / 0.5345 GB, free: 11.05 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.825e-05/0.2915, allocations: 63 kB / 0.5346 GB, free: 10.98 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.2915, allocations: 0 / 0.5346 GB, free: 10.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.746e-05/0.2916, allocations: 71.66 kB / 0.5346 GB, free: 10.91 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.481e-05/0.2916, allocations: 31.2 kB / 0.5347 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.2916, allocations: 7.922 kB / 0.5347 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.175e-05/0.2917, allocations: 1.375 kB / 0.5347 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-07/0.2917, allocations: 0 / 0.5347 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.927e-06/0.2917, allocations: 0 / 0.5347 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.356e-05/0.2917, allocations: 1.375 kB / 0.5347 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-06/0.2917, allocations: 3.984 kB / 0.5347 GB, free: 10.86 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.584e-05/0.2918, allocations: 138.2 kB / 0.5348 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.075e-06/0.2918, allocations: 5.406 kB / 0.5348 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.686e-06/0.2918, allocations: 7.062 kB / 0.5348 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.2918, allocations: 1.375 kB / 0.5348 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.085e-06/0.2918, allocations: 0 / 0.5348 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-06/0.2918, allocations: 0 / 0.5348 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.879e-05/0.2919, allocations: 152.4 kB / 0.535 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.2919, allocations: 4 kB / 0.535 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.2919, allocations: 0 / 0.535 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-06/0.2919, allocations: 0 / 0.535 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.814e-06/0.2919, allocations: 5.312 kB / 0.535 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.2919, allocations: 0 / 0.535 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.2919, allocations: 9.312 kB / 0.535 GB, free: 10.5 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.552e-05/0.292, allocations: 93.77 kB / 0.5351 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.845e-05/0.2921, allocations: 82.28 kB / 0.5352 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.168e-05/0.2921, allocations: 3.938 kB / 0.5352 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.816e-06/0.2921, allocations: 1.375 kB / 0.5352 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.007e-06/0.2921, allocations: 0 / 0.5352 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-06/0.2921, allocations: 1.375 kB / 0.5352 GB, free: 10.29 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.002e-05/0.2922, allocations: 80.69 kB / 0.5352 GB, free: 10.21 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2922, allocations: 0 / 0.5352 GB, free: 10.21 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002263/0.2924, allocations: 17.73 kB / 0.5353 GB, free: 10.21 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.0003151/0.2927, allocations: 185 kB / 0.5354 GB, free: 10.08 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.395e-05/0.2928, allocations: 60.89 kB / 0.5355 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2928, allocations: 0 / 0.5355 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.305e-05/0.2928, allocations: 58.09 kB / 0.5355 GB, free: 9.949 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001217/0.293, allocations: 2.75 kB / 0.5355 GB, free: 9.949 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001666/0.2932, allocations: 111.2 kB / 0.5357 GB, free: 9.816 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002/0.2934, allocations: 0.6742 MB / 0.5363 GB, free: 9.117 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.648e-06/0.2934, allocations: 8.812 kB / 0.5363 GB, free: 9.109 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2934, allocations: 0 / 0.5363 GB, free: 9.109 MB / 398.1 MB Notification: Performance of Templates: time 0.002135/0.2955, allocations: 0.8239 MB / 0.5371 GB, free: 8.695 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