Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.conf.json 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/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001792/0.001792, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.282/1.282, allocations: 226.8 MB / 245.5 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009321/0.0009322, allocations: 107 kB / 296.7 MB, free: 6.453 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001055/0.001056, allocations: 47.91 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1981/0.1991, allocations: 50.45 MB / 407 MB, free: 27.78 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001749/0.2009, allocations: 1.264 MB / 408.3 MB, free: 26.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002281/0.2032, allocations: 2.118 MB / 410.4 MB, free: 24.4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.65e-05/0.2033, allocations: 0 / 410.4 MB, free: 24.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.958e-05/0.2033, allocations: 0 / 410.4 MB, free: 24.4 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Utilities/Examples.mo:279:3-378: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.0008991/0.2042, allocations: 355.2 kB / 410.8 MB, free: 24.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 1.892e-05/0.2042, allocations: 0 / 410.8 MB, free: 24.05 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.962e-05/0.2043, allocations: 15.92 kB / 410.8 MB, free: 24.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.378e-05/0.2043, allocations: 4 kB / 410.8 MB, free: 24.03 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.85e-05/0.2044, allocations: 4 kB / 410.8 MB, free: 24.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002212/0.2046, allocations: 11.92 kB / 410.8 MB, free: 24.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.989e-06/0.2046, allocations: 0 / 410.8 MB, free: 24.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005325/0.2051, allocations: 475.5 kB / 411.3 MB, free: 23.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.321e-05/0.2052, allocations: 0 / 411.3 MB, free: 23.55 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.073e-05/0.2052, allocations: 4 kB / 411.3 MB, free: 23.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003917/0.2056, allocations: 379.4 kB / 411.6 MB, free: 23.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.115e-06/0.2056, allocations: 0 / 411.6 MB, free: 23.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2056, allocations: 0 / 411.6 MB, free: 23.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.967e-06/0.2056, allocations: 0 / 411.6 MB, free: 23.18 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.0003164/0.2059, allocations: 428.9 kB / 412.1 MB, free: 22.71 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.146e-05/0.206, allocations: 8.031 kB / 412.1 MB, free: 22.7 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.317e-05/0.206, allocations: 84.16 kB / 412.2 MB, free: 22.62 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.19e-05/0.2061, allocations: 243.7 kB / 412.4 MB, free: 22.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.026e-05/0.2061, allocations: 154.9 kB / 412.5 MB, free: 22.19 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.685e-05/0.2062, allocations: 162.6 kB / 412.7 MB, free: 22.03 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.755e-05/0.2062, allocations: 105 kB / 412.8 MB, free: 21.92 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.2062, allocations: 75.28 kB / 412.9 MB, free: 21.85 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.033e-05/0.2063, allocations: 150.6 kB / 413 MB, free: 21.7 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.683e-05/0.2063, allocations: 150.6 kB / 413.2 MB, free: 21.55 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.926e-05/0.2063, allocations: 154.5 kB / 413.3 MB, free: 21.4 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001566/0.2065, allocations: 453.9 kB / 413.8 MB, free: 20.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.635e-05/0.2065, allocations: 165.1 kB / 413.9 MB, free: 20.73 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.5e-05/0.2065, allocations: 88.12 kB / 414 MB, free: 20.64 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.32e-05/0.2065, allocations: 83.28 kB / 414.1 MB, free: 20.56 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001179/0.2067, allocations: 51.36 kB / 414.1 MB, free: 20.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 2.114e-06/0.2067, allocations: 0 / 414.1 MB, free: 20.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001084/0.2068, allocations: 33.69 kB / 414.2 MB, free: 20.46 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.161e-05/0.2068, allocations: 51.41 kB / 414.2 MB, free: 20.4 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.189e-05/0.2069, allocations: 109.8 kB / 414.3 MB, free: 20.28 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.701e-06/0.2069, allocations: 25.7 kB / 414.4 MB, free: 20.25 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.109e-05/0.2069, allocations: 80.14 kB / 414.4 MB, free: 20.17 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.405e-05/0.2069, allocations: 7.906 kB / 414.4 MB, free: 20.16 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.161e-05/0.207, allocations: 17.84 kB / 414.5 MB, free: 20.14 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.5e-05/0.207, allocations: 310.8 kB / 414.8 MB, free: 19.82 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.448e-06/0.207, allocations: 0 / 414.8 MB, free: 19.82 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.219e-06/0.207, allocations: 3.938 kB / 414.8 MB, free: 19.82 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.91e-05/0.2071, allocations: 8.859 kB / 414.8 MB, free: 19.81 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2071, allocations: 0 / 414.8 MB, free: 19.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.549e-05/0.2071, allocations: 41.62 kB / 414.8 MB, free: 19.76 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.2071, allocations: 12.09 kB / 414.8 MB, free: 19.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.2072, allocations: 0 / 414.8 MB, free: 19.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.2072, allocations: 0 / 414.8 MB, free: 19.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.028e-05/0.2072, allocations: 0 / 414.8 MB, free: 19.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.2072, allocations: 0 / 414.8 MB, free: 19.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.564e-05/0.2072, allocations: 0 / 414.8 MB, free: 19.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.809e-06/0.2072, allocations: 0 / 414.8 MB, free: 19.75 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.46e-05/0.2073, allocations: 119.2 kB / 414.9 MB, free: 19.62 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.626e-06/0.2073, allocations: 3.938 kB / 415 MB, free: 19.62 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.314e-05/0.2073, allocations: 11.11 kB / 415 MB, free: 19.61 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.2073, allocations: 4 kB / 415 MB, free: 19.6 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.2074, allocations: 0 / 415 MB, free: 19.6 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.2074, allocations: 0 / 415 MB, free: 19.6 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.529e-05/0.2074, allocations: 153.6 kB / 415.1 MB, free: 19.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.2075, allocations: 4 kB / 415.1 MB, free: 19.4 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.046e-06/0.2075, allocations: 0 / 415.1 MB, free: 19.4 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.2075, allocations: 0 / 415.1 MB, free: 19.4 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.959e-06/0.2075, allocations: 3.938 kB / 415.1 MB, free: 19.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.2075, allocations: 0 / 415.1 MB, free: 19.39 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2075, allocations: 0 / 415.1 MB, free: 19.39 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001812/0.2077, allocations: 0.6123 MB / 415.7 MB, free: 18.72 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.701e-05/0.2077, allocations: 81.02 kB / 415.8 MB, free: 18.62 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.25e-05/0.2077, allocations: 3.984 kB / 415.8 MB, free: 18.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.184e-05/0.2077, allocations: 0 / 415.8 MB, free: 18.62 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.027e-05/0.2078, allocations: 4.188 kB / 415.8 MB, free: 18.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.276e-06/0.2078, allocations: 7.875 kB / 415.8 MB, free: 18.61 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.415e-05/0.2078, allocations: 91.3 kB / 415.9 MB, free: 18.52 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2078, allocations: 0 / 415.9 MB, free: 18.52 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004746/0.2083, allocations: 148 kB / 416.1 MB, free: 18.38 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 (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.0008578/0.2092, allocations: 0.4924 MB / 416.6 MB, free: 17.94 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 6.047e-05/0.2092, allocations: 7.938 kB / 416.6 MB, free: 17.93 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.2092, allocations: 0 / 416.6 MB, free: 17.93 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.913e-06/0.2093, allocations: 7.984 kB / 416.6 MB, free: 17.92 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001345/0.2094, allocations: 0 / 416.6 MB, free: 17.92 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002575/0.2097, allocations: 215.1 kB / 416.8 MB, free: 17.67 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.268e-05/0.2098, allocations: 0.677 MB / 417.5 MB, free: 16.97 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.135e-05/0.2098, allocations: 7.984 kB / 417.5 MB, free: 16.96 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.487e-05/0.2098, allocations: 11.44 kB / 417.5 MB, free: 16.95 MB / 298.7 MB Notification: Performance of SimCode: time 1.9e-07/0.2098, allocations: 0 / 417.5 MB, free: 16.95 MB / 298.7 MB Notification: Performance of Templates: time 0.005003/0.2148, allocations: 3.121 MB / 420.6 MB, free: 13.82 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.makefile (rm -f Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","../files/Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches