Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.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.Fluid.Examples.InverseParameterization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|sink.ports.1..m_flow|sink1.ports.1..m_flow|sink2.ports.1..m_flow|pipe1.flowModel.dps_fg_turbulent.1.|pipe1.flowModel.pathLengths_nominal.1.|pipe2.flowModel.pathLengths_nominal.1.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization") translateModel(Modelica.Fluid.Examples.InverseParameterization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|sink.ports.1..m_flow|sink1.ports.1..m_flow|sink2.ports.1..m_flow|pipe1.flowModel.dps_fg_turbulent.1.|pipe1.flowModel.pathLengths_nominal.1.|pipe2.flowModel.pathLengths_nominal.1.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002052/0.002052, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009069/0.0009069, allocations: 94.69 kB / 292.1 MB, free: 5.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.234e-05/3.238e-05, allocations: 224 / 350.5 MB, free: 2.539 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1309, allocations: 51.49 MB / 402 MB, free: 15 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.555/8.686, allocations: 2.814 GB / 3.207 GB, free: 92.55 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001951/8.686, allocations: 78.69 kB / 3.207 GB, free: 92.55 MB / 458.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Interfaces.mo:306:3-308:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "Mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd - DAE generated: time 2.997/11.68, allocations: 0.7563 GB / 3.963 GB, free: 26.12 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.433e-06/11.68, allocations: 0 / 3.963 GB, free: 26.12 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001304/11.68, allocations: 38.25 kB / 3.963 GB, free: 26.12 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 287 * Number of variables: 287 Notification: Performance of Generate backend data structure: time 0.0126/11.7, allocations: 2.727 MB / 3.966 GB, free: 24.78 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.391e-05/11.7, allocations: 11.03 kB / 3.966 GB, free: 24.78 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005003/11.7, allocations: 0.6037 MB / 3.966 GB, free: 24.7 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002725/11.7, allocations: 1.074 MB / 3.967 GB, free: 24.37 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.382e-05/11.7, allocations: 90.12 kB / 3.967 GB, free: 24.37 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002075/11.7, allocations: 102.1 kB / 3.968 GB, free: 24.37 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004562/11.71, allocations: 2.265 MB / 3.97 GB, free: 24.02 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.737e-05/11.71, allocations: 2.062 kB / 3.97 GB, free: 24.02 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001623/11.71, allocations: 53.39 kB / 3.97 GB, free: 24.02 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001011/11.71, allocations: 87.94 kB / 3.97 GB, free: 24.01 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00432/11.71, allocations: 2.272 MB / 3.972 GB, free: 23.99 MB / 474.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01169/11.72, allocations: 9.2 MB / 3.981 GB, free: 18.96 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003509/11.73, allocations: 1.749 MB / 3.983 GB, free: 18.93 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008515/11.73, allocations: 0.6864 MB / 3.983 GB, free: 18.92 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04725/11.78, allocations: 27.07 MB / 4.01 GB, free: 17.04 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.874e-05/11.78, allocations: 47.23 kB / 4.01 GB, free: 17 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001957/11.78, allocations: 212.9 kB / 4.01 GB, free: 16.93 MB / 490.7 MB Notification: Performance of pre-optimization done (n=109): time 8.617e-06/11.78, allocations: 1.406 kB / 4.01 GB, free: 16.93 MB / 490.7 MB Notification: Performance of matching and sorting (n=109): time 0.01009/11.79, allocations: 2.607 MB / 4.013 GB, free: 16.78 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001514/11.79, allocations: 216.7 kB / 4.013 GB, free: 16.53 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001693/11.79, allocations: 0.8281 MB / 4.014 GB, free: 16.36 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002935/11.79, allocations: 48.92 kB / 4.014 GB, free: 16.33 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004466/11.79, allocations: 0.5584 MB / 4.014 GB, free: 16.09 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004572/11.79, allocations: 382.2 kB / 4.015 GB, free: 15.84 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001333/11.79, allocations: 26.53 kB / 4.015 GB, free: 15.84 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001912/11.79, allocations: 357.3 kB / 4.015 GB, free: 15.54 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001005/11.79, allocations: 0.5469 MB / 4.016 GB, free: 15.54 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00118/11.79, allocations: 0.9146 MB / 4.016 GB, free: 15.12 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001181/11.8, allocations: 0.672 MB / 4.017 GB, free: 15.09 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.05e-05/11.8, allocations: 3.562 kB / 4.017 GB, free: 15.09 MB / 490.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.00337/11.8, allocations: 1.854 MB / 4.019 GB, free: 14.96 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001813/11.8, allocations: 3.743 MB / 4.023 GB, free: 11.04 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.73e-05/11.8, allocations: 9.562 kB / 4.023 GB, free: 11.04 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02693/11.83, allocations: 3.021 MB / 4.026 GB, free: 10.91 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001358/11.83, allocations: 279 kB / 4.026 GB, free: 10.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002722/11.83, allocations: 1.392 MB / 4.027 GB, free: 10.36 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002124/11.83, allocations: 143.4 kB / 4.027 GB, free: 10.35 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004113/11.83, allocations: 75.72 kB / 4.027 GB, free: 10.35 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/11.83, allocations: 6.906 kB / 4.027 GB, free: 10.35 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003779/11.84, allocations: 1.586 MB / 4.029 GB, free: 10.3 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.224e-05/11.84, allocations: 7.781 kB / 4.029 GB, free: 10.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007924/11.84, allocations: 202.7 kB / 4.029 GB, free: 10.29 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001548/11.84, allocations: 346.9 kB / 4.029 GB, free: 10.29 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001689/11.84, allocations: 0.7371 MB / 4.03 GB, free: 25.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002161/11.84, allocations: 142.8 kB / 4.03 GB, free: 25.75 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003049/11.84, allocations: 66.28 kB / 4.03 GB, free: 25.75 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 12 (pipe2.flowModel.states[2].phase,pipe2.flowModel.states[1].phase,pipe1.flowModel.states[2].phase,pipe1.flowModel.states[1].phase,source.medium.phase,pump.heatTransfer.states[1].phase,sink.medium.phase,sink1.medium.phase,sink2.medium.phase,orifice.state_b.phase,orifice.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 128 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 24} Notification: Performance of prepare postOptimizeDAE: time 0.0006157/11.85, allocations: 195.2 kB / 4.031 GB, free: 25.63 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004702/11.85, allocations: 135.5 kB / 4.031 GB, free: 25.56 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007126/11.85, allocations: 5.491 MB / 4.036 GB, free: 24.95 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.066e-05/11.85, allocations: 62.14 kB / 4.036 GB, free: 24.95 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.098e-05/11.85, allocations: 3.469 kB / 4.036 GB, free: 24.95 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.829e-05/11.85, allocations: 11.27 kB / 4.036 GB, free: 24.95 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009639/11.86, allocations: 7.531 MB / 4.043 GB, free: 24.31 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.588e-06/11.86, allocations: 0 / 4.043 GB, free: 24.31 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008367/11.86, allocations: 209.7 kB / 4.044 GB, free: 24.31 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02374/11.89, allocations: 4.322 MB / 4.048 GB, free: 24.13 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003914/11.89, allocations: 27.22 kB / 4.048 GB, free: 24.13 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003263/11.89, allocations: 2.348 MB / 4.05 GB, free: 23.55 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/11.89, allocations: 0 / 4.05 GB, free: 23.55 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005456/11.9, allocations: 3.498 MB / 4.054 GB, free: 23.05 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001458/11.9, allocations: 0.6493 MB / 4.054 GB, free: 22.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006095/11.9, allocations: 27.75 kB / 4.054 GB, free: 22.76 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001675/11.9, allocations: 126.8 kB / 4.054 GB, free: 22.75 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000257/11.9, allocations: 101.6 kB / 4.055 GB, free: 22.75 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001114/11.9, allocations: 50.22 kB / 4.055 GB, free: 22.74 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001795/11.9, allocations: 1.036 MB / 4.056 GB, free: 22.62 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.71e-07/11.9, allocations: 0 / 4.056 GB, free: 22.62 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0107/11.91, allocations: 1.979 MB / 4.058 GB, free: 22.35 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 35 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse33.phase,$cse33.region,$cse36.phase,$cse36.region,source.medium.phase,pump.heatTransfer.states[1].phase,sink.medium.phase,sink1.medium.phase,sink2.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 35} Notification: Performance of Backend phase and start with SimCode phase: time 0.01265/11.93, allocations: 2.207 MB / 4.06 GB, free: 21.82 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.007525/11.93, allocations: 2.754 MB / 4.062 GB, free: 19.62 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.145e-05/11.93, allocations: 4.062 kB / 4.062 GB, free: 19.62 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003177/11.94, allocations: 1.387 MB / 4.064 GB, free: 18.35 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004786/11.94, allocations: 0.679 MB / 4.064 GB, free: 17.85 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007431/11.95, allocations: 3.389 MB / 4.068 GB, free: 14.78 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001739/11.95, allocations: 1.633 MB / 4.069 GB, free: 13.43 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.003966/11.96, allocations: 1.533 MB / 4.071 GB, free: 12.55 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000447/11.96, allocations: 92.69 kB / 4.071 GB, free: 12.47 MB / 0.4948 GB Notification: Performance of SimCode: time 1.603e-06/11.96, allocations: 4 kB / 4.071 GB, free: 12.46 MB / 0.4948 GB Notification: Performance of Templates: time 0.4674/12.42, allocations: 71.2 MB / 4.14 GB, free: 52.84 MB / 0.4948 GB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.sim & ./Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/InverseParameterization/InverseParameterization.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.InverseParameterization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches