Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001103/0.001103, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.182/1.182, allocations: 205.1 MB / 223.8 MB, free: 8.469 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009361/0.000936, allocations: 103.6 kB / 271.2 MB, free: 8.426 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007739/0.0007739, allocations: 35.94 kB / 327.2 MB, free: 328 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1885/0.1893, allocations: 46.62 MB / 373.8 MB, free: 45.62 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.002353/0.1917, allocations: 1.244 MB / 375.1 MB, free: 44.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002572/0.1943, allocations: 2.041 MB / 377.1 MB, free: 43.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.664e-05/0.1943, allocations: 1.062 kB / 377.1 MB, free: 43.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.004e-05/0.1944, allocations: 0 / 377.1 MB, free: 43.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001025/0.1954, allocations: 325.3 kB / 377.4 MB, free: 43.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 2.507e-05/0.1954, allocations: 5.203 kB / 377.4 MB, free: 43.05 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.356e-05/0.1955, allocations: 12.42 kB / 377.4 MB, free: 43.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.526e-05/0.1955, allocations: 1.188 kB / 377.4 MB, free: 43.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.843e-05/0.1956, allocations: 7.688 kB / 377.4 MB, free: 43.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002361/0.1958, allocations: 7.5 kB / 377.4 MB, free: 43.03 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.977e-06/0.1958, allocations: 1.25 kB / 377.4 MB, free: 43.03 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006922/0.1965, allocations: 428.7 kB / 377.9 MB, free: 42.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.259e-05/0.1965, allocations: 1.219 kB / 377.9 MB, free: 42.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.262e-05/0.1966, allocations: 17.16 kB / 377.9 MB, free: 42.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005397/0.1971, allocations: 331.2 kB / 378.2 MB, free: 42.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1971, allocations: 1.375 kB / 378.2 MB, free: 42.61 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.1971, allocations: 0 / 378.2 MB, free: 42.61 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.396e-06/0.1971, allocations: 0 / 378.2 MB, free: 42.61 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.0003811/0.1975, allocations: 406.4 kB / 378.6 MB, free: 42.2 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.1976, allocations: 10.12 kB / 378.6 MB, free: 42.2 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.649e-05/0.1976, allocations: 81.19 kB / 378.7 MB, free: 42.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001053/0.1977, allocations: 248 kB / 378.9 MB, free: 41.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.085e-05/0.1978, allocations: 154.9 kB / 379.1 MB, free: 41.69 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.056e-05/0.1978, allocations: 154.7 kB / 379.2 MB, free: 41.54 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.058e-05/0.1978, allocations: 110.1 kB / 379.3 MB, free: 41.42 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.1979, allocations: 75.28 kB / 379.4 MB, free: 41.35 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.387e-05/0.1979, allocations: 151.7 kB / 379.6 MB, free: 41.2 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.887e-05/0.1979, allocations: 150.6 kB / 379.7 MB, free: 41.05 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.336e-05/0.1979, allocations: 151.7 kB / 379.9 MB, free: 40.9 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001861/0.1981, allocations: 452.2 kB / 380.3 MB, free: 40.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.321e-05/0.1982, allocations: 170.3 kB / 380.5 MB, free: 40.24 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.794e-05/0.1982, allocations: 84.08 kB / 380.6 MB, free: 40.15 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.436e-05/0.1982, allocations: 75.28 kB / 380.6 MB, free: 40.08 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001087/0.1983, allocations: 56.19 kB / 380.7 MB, free: 40.02 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 2.365e-06/0.1983, allocations: 0 / 380.7 MB, free: 40.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001233/0.1985, allocations: 35.33 kB / 380.7 MB, free: 39.98 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.273e-05/0.1985, allocations: 51.41 kB / 380.8 MB, free: 39.92 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.349e-05/0.1986, allocations: 104.7 kB / 380.9 MB, free: 39.81 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.562e-06/0.1986, allocations: 25.7 kB / 380.9 MB, free: 39.78 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.933e-05/0.1986, allocations: 81.2 kB / 381 MB, free: 39.7 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.209e-05/0.1986, allocations: 0 / 381 MB, free: 39.7 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.273e-05/0.1987, allocations: 20 kB / 381 MB, free: 39.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.257e-05/0.1987, allocations: 316 kB / 381.3 MB, free: 39.36 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.087e-06/0.1987, allocations: 1.062 kB / 381.3 MB, free: 39.36 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.23e-06/0.1987, allocations: 1.125 kB / 381.3 MB, free: 39.36 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.712e-05/0.1987, allocations: 7.266 kB / 381.3 MB, free: 39.35 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1988, allocations: 0 / 381.3 MB, free: 39.35 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.538e-05/0.1988, allocations: 47.23 kB / 381.4 MB, free: 39.3 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.1988, allocations: 4.344 kB / 381.4 MB, free: 39.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.1988, allocations: 5.312 kB / 381.4 MB, free: 39.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.1989, allocations: 3.938 kB / 381.4 MB, free: 39.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.953e-05/0.1989, allocations: 1.25 kB / 381.4 MB, free: 39.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.479e-06/0.1989, allocations: 0 / 381.4 MB, free: 39.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.614e-05/0.1989, allocations: 3.984 kB / 381.4 MB, free: 39.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.649e-06/0.1989, allocations: 0.75 kB / 381.4 MB, free: 39.29 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 4.692e-05/0.199, allocations: 115.8 kB / 381.5 MB, free: 39.17 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.829e-06/0.199, allocations: 1.062 kB / 381.5 MB, free: 39.17 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.304e-05/0.199, allocations: 8.203 kB / 381.5 MB, free: 39.16 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.199, allocations: 4 kB / 381.5 MB, free: 39.16 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.199, allocations: 1.125 kB / 381.5 MB, free: 39.16 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.199, allocations: 192 / 381.5 MB, free: 39.16 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.565e-05/0.1991, allocations: 159.8 kB / 381.7 MB, free: 38.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.1991, allocations: 5.203 kB / 381.7 MB, free: 38.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.767e-06/0.1991, allocations: 0 / 381.7 MB, free: 38.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.1991, allocations: 1.094 kB / 381.7 MB, free: 38.95 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.34e-06/0.1991, allocations: 0 / 381.7 MB, free: 38.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.1992, allocations: 0 / 381.7 MB, free: 38.95 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1992, allocations: 1.188 kB / 381.7 MB, free: 38.95 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001661/0.1993, allocations: 0.6155 MB / 382.3 MB, free: 38.29 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.391e-05/0.1994, allocations: 77.11 kB / 382.4 MB, free: 38.2 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.201e-05/0.1994, allocations: 5.094 kB / 382.4 MB, free: 38.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.276e-05/0.1994, allocations: 1.188 kB / 382.4 MB, free: 38.19 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.618e-06/0.1994, allocations: 0 / 382.4 MB, free: 38.19 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.316e-06/0.1994, allocations: 5.094 kB / 382.4 MB, free: 38.19 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.522e-05/0.1994, allocations: 90.77 kB / 382.5 MB, free: 38.1 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1994, allocations: 1.188 kB / 382.5 MB, free: 38.1 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000556/0.2, allocations: 133.8 kB / 382.6 MB, free: 38.05 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.0008825/0.2009, allocations: 473.4 kB / 383.1 MB, free: 37.79 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 5.902e-05/0.201, allocations: 3.281 kB / 383.1 MB, free: 37.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.201, allocations: 0 / 383.1 MB, free: 37.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.462e-06/0.201, allocations: 6.688 kB / 383.1 MB, free: 37.79 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001311/0.2011, allocations: 9.406 kB / 383.1 MB, free: 37.78 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002318/0.2014, allocations: 210.8 kB / 383.3 MB, free: 37.55 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.479e-05/0.2015, allocations: 0.6763 MB / 384 MB, free: 36.86 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.715e-05/0.2015, allocations: 5.625 kB / 384 MB, free: 36.86 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.862e-05/0.2015, allocations: 14.8 kB / 384 MB, free: 36.84 MB / 298.7 MB Notification: Performance of SimCode: time 2e-07/0.2015, allocations: 5.062 kB / 384 MB, free: 36.84 MB / 298.7 MB Notification: Performance of Templates: time 0.004801/0.2063, allocations: 2.758 MB / 386.7 MB, free: 35.4 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.makefile (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","../files/Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches