Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.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.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_3.2.3_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_3.2.3_Modelica.Fluid.Examples.InverseParameterization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001558/0.001559, allocations: 177 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.831/1.831, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001137/0.001137, allocations: 90.69 kB / 262.5 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.75e-05/1.755e-05, allocations: 4 kB / 315.5 MB, free: 22.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1016, allocations: 47.58 MB / 363.1 MB, free: 7.09 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.401/7.502, allocations: 2.808 GB / 3.162 GB, free: 56.22 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002103/7.503, allocations: 75.97 kB / 3.162 GB, free: 56.15 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Interfaces.mo:714:9-719:39:writable] Notification: From here: [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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 3.129/10.63, allocations: 0.7413 GB / 3.904 GB, free: 36.59 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.362e-06/10.63, allocations: 1.875 kB / 3.904 GB, free: 36.59 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001019/10.63, allocations: 37.33 kB / 3.904 GB, free: 36.59 MB / 458.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.01114/10.64, allocations: 2.714 MB / 3.907 GB, free: 35.41 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/10.64, allocations: 9.688 kB / 3.907 GB, free: 35.41 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0046/10.65, allocations: 0.6009 MB / 3.907 GB, free: 35.33 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002506/10.65, allocations: 1.077 MB / 3.908 GB, free: 35 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.892e-05/10.65, allocations: 44.69 kB / 3.908 GB, free: 35 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001649/10.65, allocations: 61.28 kB / 3.908 GB, free: 35 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002518/10.65, allocations: 1.748 MB / 3.91 GB, free: 34.99 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002158/10.65, allocations: 1.559 MB / 3.911 GB, free: 34.65 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.044e-05/10.66, allocations: 4.5 kB / 3.911 GB, free: 34.65 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001274/10.66, allocations: 7.078 kB / 3.911 GB, free: 34.64 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.96e-05/10.66, allocations: 85.56 kB / 3.912 GB, free: 34.64 MB / 458.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.6529/11.31, allocations: 167.3 MB / 4.075 GB, free: 84.8 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002655/11.31, allocations: 1.121 MB / 4.076 GB, free: 84.77 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009838/11.31, allocations: 0.5686 MB / 4.077 GB, free: 84.76 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03081/11.34, allocations: 16.9 MB / 4.093 GB, free: 74.35 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.341e-05/11.34, allocations: 46.81 kB / 4.093 GB, free: 74.31 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001528/11.34, allocations: 176.8 kB / 4.093 GB, free: 74.31 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=91): time 4.488e-06/11.34, allocations: 3.703 kB / 4.093 GB, free: 74.31 MB / 0.5105 GB Notification: Performance of matching and sorting (n=91): time 0.008259/11.35, allocations: 2.395 MB / 4.096 GB, free: 74.24 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.84e-05/11.35, allocations: 221.5 kB / 4.096 GB, free: 73.99 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001165/11.35, allocations: 0.7451 MB / 4.097 GB, free: 73.84 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 8.345e-05/11.35, allocations: 25.7 kB / 4.097 GB, free: 73.81 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004355/11.35, allocations: 0.6306 MB / 4.097 GB, free: 73.56 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003025/11.35, allocations: 301.8 kB / 4.097 GB, free: 73.41 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.414e-05/11.35, allocations: 0 / 4.097 GB, free: 73.41 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001457/11.35, allocations: 357.5 kB / 4.098 GB, free: 73.1 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008792/11.36, allocations: 0.5371 MB / 4.098 GB, free: 73.1 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001199/11.36, allocations: 0.8857 MB / 4.099 GB, free: 72.71 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00539/11.36, allocations: 1.187 MB / 4.1 GB, free: 72.7 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-05/11.36, allocations: 3.562 kB / 4.1 GB, free: 72.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.007444/11.37, allocations: 2.296 MB / 4.103 GB, free: 72.57 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001017/11.37, allocations: 3.758 MB / 4.106 GB, free: 68.67 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.179e-05/11.37, allocations: 13.81 kB / 4.106 GB, free: 68.67 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005221/11.38, allocations: 1.048 MB / 4.107 GB, free: 68.65 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009957/11.38, allocations: 277.2 kB / 4.108 GB, free: 68.65 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003972/11.38, allocations: 1.771 MB / 4.109 GB, free: 68.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001835/11.38, allocations: 190 kB / 4.11 GB, free: 68.11 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001406/11.38, allocations: 73.75 kB / 4.11 GB, free: 68.11 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.086e-05/11.38, allocations: 6.031 kB / 4.11 GB, free: 68.11 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005422/11.39, allocations: 1.754 MB / 4.111 GB, free: 68.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.937e-05/11.39, allocations: 11.44 kB / 4.111 GB, free: 68.07 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007411/11.39, allocations: 191 kB / 4.111 GB, free: 68.06 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001358/11.39, allocations: 345.9 kB / 4.112 GB, free: 68.06 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007329/11.39, allocations: 0.764 MB / 4.113 GB, free: 67.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001575/11.39, allocations: 143.9 kB / 4.113 GB, free: 67.54 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001794/11.39, allocations: 70.81 kB / 4.113 GB, free: 67.54 MB / 0.5105 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,pump.heatTransfer.states[1].phase,source.medium.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.0003589/11.39, allocations: 139.9 kB / 4.113 GB, free: 67.43 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003926/11.39, allocations: 115.7 kB / 4.113 GB, free: 67.37 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008554/11.4, allocations: 3.882 MB / 4.117 GB, free: 67.12 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-05/11.4, allocations: 37.75 kB / 4.117 GB, free: 67.11 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-05/11.4, allocations: 0 / 4.117 GB, free: 67.11 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.278e-05/11.4, allocations: 3.75 kB / 4.117 GB, free: 67.11 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01013/11.41, allocations: 5.317 MB / 4.122 GB, free: 66.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/11.41, allocations: 3.25 kB / 4.122 GB, free: 66.68 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005066/11.41, allocations: 113.5 kB / 4.122 GB, free: 66.68 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004369/11.42, allocations: 2.502 MB / 4.125 GB, free: 66.6 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.181e-05/11.42, allocations: 9.719 kB / 4.125 GB, free: 66.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004796/11.42, allocations: 2.883 MB / 4.127 GB, free: 66.02 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.624e-06/11.42, allocations: 3.953 kB / 4.127 GB, free: 66.01 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007009/11.43, allocations: 3.086 MB / 4.13 GB, free: 65.64 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001204/11.43, allocations: 464.5 kB / 4.131 GB, free: 65.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000519/11.43, allocations: 2.125 kB / 4.131 GB, free: 65.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001367/11.43, allocations: 99.91 kB / 4.131 GB, free: 65.44 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001617/11.43, allocations: 71.22 kB / 4.131 GB, free: 65.43 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001088/11.43, allocations: 36.56 kB / 4.131 GB, free: 65.43 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00144/11.43, allocations: 0.8342 MB / 4.132 GB, free: 65.32 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.1e-07/11.43, allocations: 0 / 4.132 GB, free: 65.32 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009773/11.44, allocations: 1.872 MB / 4.134 GB, free: 65.19 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse20.phase,$cse20.region,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (65): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.01249/11.46, allocations: 2.33 MB / 4.136 GB, free: 64.95 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00595/11.46, allocations: 2.325 MB / 4.138 GB, free: 64.91 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.123e-06/11.46, allocations: 0 / 4.138 GB, free: 64.91 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001806/11.46, allocations: 0.9002 MB / 4.139 GB, free: 64.89 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00321/11.47, allocations: 499.1 kB / 4.14 GB, free: 64.86 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005336/11.47, allocations: 2.381 MB / 4.142 GB, free: 64.31 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001019/11.47, allocations: 1.389 MB / 4.143 GB, free: 63.57 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.003328/11.48, allocations: 1.767 MB / 4.145 GB, free: 63.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002968/11.48, allocations: 85.28 kB / 4.145 GB, free: 63.5 MB / 0.5105 GB Notification: Performance of SimCode: time 1.322e-06/11.48, allocations: 0 / 4.145 GB, free: 63.5 MB / 0.5105 GB Notification: Performance of Templates: time 0.07886/11.56, allocations: 54.08 MB / 4.198 GB, free: 57.98 MB / 0.5105 GB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/InverseParameterization/InverseParameterization.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.InverseParameterization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches