Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel") translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 179.5 kB / 17.04 MB, free: 5.109 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.174/1.174, allocations: 223.3 MB / 241 MB, free: 11.82 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007019/0.0007019, allocations: 112.6 kB / 292.2 MB, free: 10.88 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002248/0.0002248, allocations: 4 kB / 351.8 MB, free: 15.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1839/0.1841, allocations: 50.42 MB / 402.2 MB, free: 32.58 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.0007549/0.1849, allocations: 0.9141 MB / 403.1 MB, free: 31.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001696/0.1866, allocations: 1.813 MB / 404.9 MB, free: 29.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.867e-05/0.1867, allocations: 0 / 404.9 MB, free: 29.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.271e-05/0.1867, allocations: 2.875 kB / 404.9 MB, free: 29.84 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Examples.mo:279:3-372:24:writable] Warning: Pure function ‘Modelica.Utilities.Examples.readRealParameter‘ contains a call to impure function ‘Modelica.Utilities.Streams.readLine‘. Notification: Performance of NFTyping.typeBindings: time 0.0006478/0.1873, allocations: 324.5 kB / 405.2 MB, free: 29.53 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 1.686e-05/0.1874, allocations: 4 kB / 405.2 MB, free: 29.52 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 2.942e-05/0.1874, allocations: 7.938 kB / 405.3 MB, free: 29.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.861e-05/0.1874, allocations: 3.984 kB / 405.3 MB, free: 29.51 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.532e-05/0.1875, allocations: 7.984 kB / 405.3 MB, free: 29.5 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.025e-05/0.1876, allocations: 8 kB / 405.3 MB, free: 29.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.854e-06/0.1876, allocations: 0 / 405.3 MB, free: 29.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003996/0.188, allocations: 396.8 kB / 405.7 MB, free: 29.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.474e-06/0.188, allocations: 0 / 405.7 MB, free: 29.11 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.5e-05/0.188, allocations: 25.7 kB / 405.7 MB, free: 29.08 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002238/0.1882, allocations: 227.6 kB / 405.9 MB, free: 28.86 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1883, allocations: 0 / 405.9 MB, free: 28.86 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1883, allocations: 0 / 405.9 MB, free: 28.86 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.076e-06/0.1883, allocations: 4 kB / 405.9 MB, free: 28.85 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0002667/0.1885, allocations: 399.3 kB / 406.3 MB, free: 28.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.1886, allocations: 8.031 kB / 406.3 MB, free: 28.41 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.465e-05/0.1886, allocations: 83.14 kB / 406.4 MB, free: 28.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.516e-05/0.1887, allocations: 239.9 kB / 406.6 MB, free: 28.05 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.83e-05/0.1887, allocations: 162.5 kB / 406.8 MB, free: 27.89 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.721e-05/0.1888, allocations: 158.5 kB / 406.9 MB, free: 27.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.172e-05/0.1888, allocations: 105 kB / 407 MB, free: 27.62 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.1888, allocations: 75.28 kB / 407.1 MB, free: 27.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.307e-05/0.1888, allocations: 154.5 kB / 407.3 MB, free: 27.4 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.1889, allocations: 150.6 kB / 407.4 MB, free: 27.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.849e-05/0.1889, allocations: 158.5 kB / 407.6 MB, free: 27.09 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000139/0.189, allocations: 449.9 kB / 408 MB, free: 26.61 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.345e-05/0.1891, allocations: 169.1 kB / 408.2 MB, free: 26.43 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.251e-05/0.1891, allocations: 80.14 kB / 408.3 MB, free: 26.35 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.004e-05/0.1891, allocations: 79.28 kB / 408.3 MB, free: 26.27 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.668e-05/0.1892, allocations: 43.42 kB / 408.4 MB, free: 26.21 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.723e-06/0.1892, allocations: 3.938 kB / 408.4 MB, free: 26.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 9.157e-05/0.1893, allocations: 37.69 kB / 408.4 MB, free: 26.17 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.848e-05/0.1893, allocations: 51.41 kB / 408.5 MB, free: 26.11 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.659e-05/0.1894, allocations: 105.9 kB / 408.6 MB, free: 25.99 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.578e-06/0.1894, allocations: 25.7 kB / 408.6 MB, free: 25.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.601e-05/0.1894, allocations: 88.12 kB / 408.7 MB, free: 25.87 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.728e-06/0.1894, allocations: 0 / 408.7 MB, free: 25.87 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.563e-06/0.1894, allocations: 0 / 408.7 MB, free: 25.87 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.381e-05/0.1895, allocations: 314.8 kB / 409 MB, free: 25.55 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.63e-06/0.1895, allocations: 0 / 409 MB, free: 25.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.377e-06/0.1895, allocations: 0 / 409 MB, free: 25.55 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.099e-05/0.1895, allocations: 4 kB / 409 MB, free: 25.55 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.1895, allocations: 8 kB / 409 MB, free: 25.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.536e-05/0.1896, allocations: 33.61 kB / 409 MB, free: 25.5 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.478e-06/0.1896, allocations: 7.984 kB / 409 MB, free: 25.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.236e-06/0.1896, allocations: 4 kB / 409 MB, free: 25.49 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.1896, allocations: 0 / 409 MB, free: 25.49 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.632e-05/0.1896, allocations: 0 / 409 MB, free: 25.49 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.757e-06/0.1896, allocations: 0 / 409 MB, free: 25.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.38e-05/0.1896, allocations: 3.953 kB / 409 MB, free: 25.49 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.098e-06/0.1896, allocations: 0 / 409 MB, free: 25.49 MB / 298.7 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 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.163e-05/0.1897, allocations: 117.9 kB / 409.2 MB, free: 25.36 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.593e-06/0.1897, allocations: 0 / 409.2 MB, free: 25.36 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.865e-05/0.1897, allocations: 3.312 kB / 409.2 MB, free: 25.36 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.1897, allocations: 3.984 kB / 409.2 MB, free: 25.35 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1897, allocations: 7.984 kB / 409.2 MB, free: 25.34 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.843e-06/0.1897, allocations: 4 kB / 409.2 MB, free: 25.34 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.973e-05/0.1898, allocations: 145.6 kB / 409.3 MB, free: 25.15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.1898, allocations: 3.938 kB / 409.3 MB, free: 25.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.567e-06/0.1898, allocations: 3.984 kB / 409.3 MB, free: 25.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.1898, allocations: 4 kB / 409.3 MB, free: 25.14 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.849e-06/0.1898, allocations: 7.938 kB / 409.3 MB, free: 25.13 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.1898, allocations: 3.938 kB / 409.3 MB, free: 25.12 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.1899, allocations: 0 / 409.3 MB, free: 25.12 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.008e-05/0.1899, allocations: 57.09 kB / 409.4 MB, free: 25.05 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.646e-05/0.1899, allocations: 85.09 kB / 409.5 MB, free: 24.95 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.496e-06/0.1899, allocations: 0 / 409.5 MB, free: 24.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.086e-05/0.19, allocations: 0 / 409.5 MB, free: 24.95 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.066e-05/0.19, allocations: 8.031 kB / 409.5 MB, free: 24.94 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.633e-06/0.19, allocations: 0 / 409.5 MB, free: 24.94 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.79e-05/0.19, allocations: 79.28 kB / 409.6 MB, free: 24.86 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.19, allocations: 0 / 409.6 MB, free: 24.86 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002847/0.1903, allocations: 128 kB / 409.7 MB, free: 24.74 MB / 298.7 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 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006708/0.191, allocations: 493 kB / 410.2 MB, free: 24.33 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 4.71e-05/0.191, allocations: 11.92 kB / 410.2 MB, free: 24.32 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.191, allocations: 0 / 410.2 MB, free: 24.32 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.027e-06/0.191, allocations: 0 / 410.2 MB, free: 24.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001112/0.1912, allocations: 11.89 kB / 410.2 MB, free: 24.3 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001626/0.1913, allocations: 142.4 kB / 410.3 MB, free: 24.13 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.813e-05/0.1914, allocations: 0.6731 MB / 411 MB, free: 23.43 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.437e-05/0.1914, allocations: 15.42 kB / 411 MB, free: 23.41 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.1914, allocations: 0 / 411 MB, free: 23.41 MB / 298.7 MB Notification: Performance of Templates: time 0.003408/0.1948, allocations: 3.069 MB / 414.1 MB, free: 20.34 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.makefile (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","../files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches