Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001364/0.001364, allocations: 191.8 kB / 17.37 MB, free: 4.438 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 226.6 MB / 244.7 MB, free: 6.453 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007674/0.0007674, allocations: 100.7 kB / 296.8 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002297/0.0002298, allocations: 8 kB / 356.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2021/0.2023, allocations: 51.29 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.0008933/0.2033, allocations: 0.9282 MB / 409 MB, free: 26.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002067/0.2053, allocations: 1.923 MB / 410.9 MB, free: 24.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.619e-05/0.2054, allocations: 0 / 410.9 MB, free: 24.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.107e-05/0.2054, allocations: 0 / 410.9 MB, free: 24.84 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.0008054/0.2062, allocations: 348.9 kB / 411.2 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 1.954e-05/0.2062, allocations: 8 kB / 411.2 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.344e-05/0.2063, allocations: 7.938 kB / 411.2 MB, free: 24.49 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.775e-05/0.2063, allocations: 0 / 411.2 MB, free: 24.49 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.578e-05/0.2063, allocations: 4 kB / 411.2 MB, free: 24.48 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002039/0.2065, allocations: 12.66 kB / 411.3 MB, free: 24.47 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.754e-06/0.2066, allocations: 0 / 411.3 MB, free: 24.47 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004899/0.2071, allocations: 432.2 kB / 411.7 MB, free: 24.05 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.328e-06/0.2071, allocations: 0 / 411.7 MB, free: 24.05 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.602e-05/0.2071, allocations: 32.89 kB / 411.7 MB, free: 24.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002664/0.2074, allocations: 247.6 kB / 412 MB, free: 23.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.2074, allocations: 0 / 412 MB, free: 23.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2074, allocations: 0 / 412 MB, free: 23.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.276e-06/0.2074, allocations: 3.938 kB / 412 MB, free: 23.77 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.0002913/0.2077, allocations: 408.5 kB / 412.4 MB, free: 23.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.191e-05/0.2077, allocations: 12.03 kB / 412.4 MB, free: 23.31 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.944e-05/0.2078, allocations: 80.84 kB / 412.4 MB, free: 23.23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001172/0.2079, allocations: 244.9 kB / 412.7 MB, free: 22.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.25e-05/0.2079, allocations: 154.9 kB / 412.8 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.768e-05/0.208, allocations: 158.1 kB / 413 MB, free: 22.65 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.478e-05/0.208, allocations: 101 kB / 413.1 MB, free: 22.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.208, allocations: 87.2 kB / 413.2 MB, free: 22.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.512e-05/0.2081, allocations: 150.6 kB / 413.3 MB, free: 22.31 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.6e-05/0.2081, allocations: 150.6 kB / 413.5 MB, free: 22.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.033e-05/0.2081, allocations: 162.2 kB / 413.6 MB, free: 22.01 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001562/0.2083, allocations: 442 kB / 414.1 MB, free: 21.53 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.254e-05/0.2083, allocations: 165.1 kB / 414.2 MB, free: 21.36 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.596e-05/0.2083, allocations: 88.08 kB / 414.3 MB, free: 21.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.387e-05/0.2084, allocations: 79.98 kB / 414.4 MB, free: 21.19 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.028e-05/0.2085, allocations: 51.86 kB / 414.4 MB, free: 21.12 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.824e-06/0.2085, allocations: 0 / 414.4 MB, free: 21.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 9.824e-05/0.2086, allocations: 33.69 kB / 414.5 MB, free: 21.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.96e-05/0.2086, allocations: 51.41 kB / 414.5 MB, free: 21.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.284e-05/0.2086, allocations: 101.9 kB / 414.6 MB, free: 20.91 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.51e-06/0.2087, allocations: 25.7 kB / 414.6 MB, free: 20.88 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.793e-05/0.2087, allocations: 80.14 kB / 414.7 MB, free: 20.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.27e-05/0.2087, allocations: 12.05 kB / 414.7 MB, free: 20.79 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.184e-06/0.2087, allocations: 0 / 414.7 MB, free: 20.79 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.148e-05/0.2088, allocations: 322.8 kB / 415 MB, free: 20.46 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.921e-06/0.2088, allocations: 0 / 415 MB, free: 20.46 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.198e-06/0.2088, allocations: 0 / 415 MB, free: 20.46 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.618e-05/0.2088, allocations: 8.859 kB / 415.1 MB, free: 20.45 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.2088, allocations: 0 / 415.1 MB, free: 20.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.769e-05/0.2088, allocations: 37.55 kB / 415.1 MB, free: 20.41 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.008e-05/0.2089, allocations: 8.094 kB / 415.1 MB, free: 20.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.2089, allocations: 0 / 415.1 MB, free: 20.4 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/0.2089, allocations: 7.984 kB / 415.1 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.832e-05/0.2089, allocations: 0 / 415.1 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.73e-06/0.2089, allocations: 3.984 kB / 415.1 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.503e-05/0.2089, allocations: 3.938 kB / 415.1 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.479e-06/0.2089, allocations: 0 / 415.1 MB, free: 20.39 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.256e-05/0.209, allocations: 113.8 kB / 415.2 MB, free: 20.27 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.763e-06/0.209, allocations: 4.188 kB / 415.2 MB, free: 20.26 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.938e-05/0.209, allocations: 11.11 kB / 415.2 MB, free: 20.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.209, allocations: 0 / 415.2 MB, free: 20.25 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.209, allocations: 0 / 415.2 MB, free: 20.25 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.2091, allocations: 0 / 415.2 MB, free: 20.25 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.633e-05/0.2091, allocations: 161.5 kB / 415.4 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.2091, allocations: 0 / 415.4 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.865e-06/0.2091, allocations: 0 / 415.4 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.2091, allocations: 0 / 415.4 MB, free: 20.04 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.37e-06/0.2092, allocations: 7.984 kB / 415.4 MB, free: 20.03 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.2092, allocations: 0 / 415.4 MB, free: 20.03 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.2092, allocations: 0 / 415.4 MB, free: 20.03 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.185e-05/0.2092, allocations: 57.08 kB / 415.5 MB, free: 19.96 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.826e-05/0.2092, allocations: 89.09 kB / 415.5 MB, free: 19.85 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.162e-05/0.2093, allocations: 0 / 415.5 MB, free: 19.85 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.179e-05/0.2093, allocations: 3.938 kB / 415.6 MB, free: 19.85 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.344e-05/0.2093, allocations: 0 / 415.6 MB, free: 19.85 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.533e-06/0.2093, allocations: 0 / 415.6 MB, free: 19.85 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.09e-05/0.2093, allocations: 79.28 kB / 415.6 MB, free: 19.77 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2093, allocations: 4.031 kB / 415.6 MB, free: 19.77 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003634/0.2097, allocations: 148 kB / 415.8 MB, free: 19.62 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.0007855/0.2105, allocations: 0.4921 MB / 416.3 MB, free: 19.19 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 4.973e-05/0.2105, allocations: 7.984 kB / 416.3 MB, free: 19.18 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.2106, allocations: 0 / 416.3 MB, free: 19.18 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.568e-06/0.2106, allocations: 3.938 kB / 416.3 MB, free: 19.18 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001279/0.2107, allocations: 10.39 kB / 416.3 MB, free: 19.17 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001913/0.2109, allocations: 150.3 kB / 416.4 MB, free: 18.98 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.899e-05/0.211, allocations: 0.6731 MB / 417.1 MB, free: 18.29 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.564e-05/0.211, allocations: 15.42 kB / 417.1 MB, free: 18.27 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.211, allocations: 0 / 417.1 MB, free: 18.27 MB / 298.7 MB Notification: Performance of Templates: time 0.004009/0.215, allocations: 3.373 MB / 420.5 MB, free: 14.89 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Utilities.Examples.readRealParameterModel.makefile (rm -f Modelica_trunk_cpp_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_trunk_cpp_Modelica.Utilities.Examples.readRealParameterModel.sim & ./Modelica_trunk_cpp_Modelica.Utilities.Examples.readRealParameterModel --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","../files/Modelica_trunk_cpp_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches