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.001473/0.001473, allocations: 197.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.518/1.518, allocations: 225.6 MB / 234.8 MB, free: 3.277 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008895/0.0008898, allocations: 98.67 kB / 286.7 MB, free: 5.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.685e-05/1.695e-05, allocations: 0 / 343.7 MB, free: 8.324 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1296, allocations: 51.48 MB / 395.2 MB, free: 4.805 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.877/9.007, allocations: 2.813 GB / 3.199 GB, free: 60.29 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002572/9.007, allocations: 81.56 kB / 3.199 GB, free: 60.27 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 3.375/12.38, allocations: 0.7496 GB / 3.949 GB, free: 12.27 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.667e-06/12.38, allocations: 0 / 3.949 GB, free: 12.27 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001725/12.38, allocations: 39.94 kB / 3.949 GB, free: 12.23 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.01312/12.4, allocations: 2.715 MB / 3.952 GB, free: 9.48 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/12.4, allocations: 12.03 kB / 3.952 GB, free: 9.469 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005203/12.4, allocations: 0.6079 MB / 3.952 GB, free: 8.859 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003104/12.4, allocations: 1.07 MB / 3.953 GB, free: 7.766 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001332/12.4, allocations: 45.38 kB / 3.953 GB, free: 7.723 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005126/12.4, allocations: 64 kB / 3.953 GB, free: 7.66 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003317/12.41, allocations: 1.75 MB / 3.955 GB, free: 5.906 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003152/12.41, allocations: 1.55 MB / 3.957 GB, free: 4.227 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.618e-05/12.41, allocations: 11.88 kB / 3.957 GB, free: 4.215 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002262/12.41, allocations: 7.953 kB / 3.957 GB, free: 4.207 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001099/12.41, allocations: 89.94 kB / 3.957 GB, free: 4.117 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.8592/13.27, allocations: 184.9 MB / 4.137 GB, free: 27.14 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00263/13.27, allocations: 1.118 MB / 4.138 GB, free: 27.1 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009561/13.27, allocations: 0.5665 MB / 4.139 GB, free: 27.09 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03471/13.31, allocations: 18.76 MB / 4.157 GB, free: 14.21 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.483e-05/13.31, allocations: 50.53 kB / 4.157 GB, free: 14.17 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001451/13.31, allocations: 173.9 kB / 4.158 GB, free: 14.16 MB / 0.573 GB Notification: Performance of pre-optimization done (n=91): time 6.433e-06/13.31, allocations: 4 kB / 4.158 GB, free: 14.16 MB / 0.573 GB Notification: Performance of matching and sorting (n=91): time 0.009058/13.32, allocations: 2.41 MB / 4.16 GB, free: 14.05 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/13.32, allocations: 216.2 kB / 4.16 GB, free: 13.8 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001332/13.32, allocations: 0.7439 MB / 4.161 GB, free: 13.65 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.00016/13.32, allocations: 25.7 kB / 4.161 GB, free: 13.62 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004338/13.32, allocations: 0.6276 MB / 4.162 GB, free: 13.37 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003269/13.32, allocations: 313.6 kB / 4.162 GB, free: 13.21 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.628e-05/13.32, allocations: 0 / 4.162 GB, free: 13.21 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001711/13.32, allocations: 353.3 kB / 4.162 GB, free: 12.9 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008128/13.32, allocations: 0.5308 MB / 4.163 GB, free: 12.9 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009995/13.32, allocations: 0.884 MB / 4.164 GB, free: 12.51 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005391/13.33, allocations: 1.213 MB / 4.165 GB, free: 12.47 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.658e-05/13.33, allocations: 6.094 kB / 4.165 GB, free: 12.47 MB / 0.573 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.007733/13.34, allocations: 2.305 MB / 4.167 GB, free: 12.33 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.3676/13.71, allocations: 3.751 MB / 4.171 GB, free: 136.2 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.682e-05/13.71, allocations: 11.58 kB / 4.171 GB, free: 136.2 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006049/13.71, allocations: 1.047 MB / 4.172 GB, free: 136.2 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001321/13.71, allocations: 280.9 kB / 4.172 GB, free: 136.2 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004615/13.72, allocations: 1.787 MB / 4.174 GB, free: 135.7 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002295/13.72, allocations: 185.1 kB / 4.174 GB, free: 135.7 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001732/13.72, allocations: 71.88 kB / 4.174 GB, free: 135.7 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/13.72, allocations: 2.594 kB / 4.174 GB, free: 135.7 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005732/13.73, allocations: 1.775 MB / 4.176 GB, free: 135.7 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.588e-05/13.73, allocations: 10.09 kB / 4.176 GB, free: 135.7 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000742/13.73, allocations: 192.7 kB / 4.176 GB, free: 135.7 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001439/13.73, allocations: 350.6 kB / 4.176 GB, free: 135.7 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007792/13.73, allocations: 0.7534 MB / 4.177 GB, free: 135.2 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001644/13.73, allocations: 146 kB / 4.177 GB, free: 135.2 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000128/13.73, allocations: 70.88 kB / 4.177 GB, free: 135.2 MB / 0.573 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.000401/13.73, allocations: 148.7 kB / 4.177 GB, free: 135 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002483/13.73, allocations: 115.4 kB / 4.177 GB, free: 135 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007568/13.74, allocations: 3.881 MB / 4.181 GB, free: 134.8 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-05/13.74, allocations: 36.92 kB / 4.181 GB, free: 134.8 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/13.74, allocations: 0 / 4.181 GB, free: 134.8 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.449e-05/13.74, allocations: 5.484 kB / 4.181 GB, free: 134.8 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009683/13.75, allocations: 5.332 MB / 4.186 GB, free: 134.4 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.336e-06/13.75, allocations: 1.719 kB / 4.186 GB, free: 134.4 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004847/13.75, allocations: 117.7 kB / 4.187 GB, free: 134.4 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004196/13.75, allocations: 2.5 MB / 4.189 GB, free: 134.3 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001157/13.75, allocations: 20.27 kB / 4.189 GB, free: 134.3 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00478/13.76, allocations: 2.885 MB / 4.192 GB, free: 133.7 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.103e-06/13.76, allocations: 2.719 kB / 4.192 GB, free: 133.7 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00714/13.77, allocations: 3.104 MB / 4.195 GB, free: 133.3 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009263/13.77, allocations: 461.4 kB / 4.195 GB, free: 133.2 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002134/13.77, allocations: 7.281 kB / 4.195 GB, free: 133.2 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009667/13.77, allocations: 96.33 kB / 4.195 GB, free: 133.1 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001414/13.77, allocations: 68.88 kB / 4.195 GB, free: 133.1 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.552e-05/13.77, allocations: 39.66 kB / 4.195 GB, free: 133.1 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001064/13.77, allocations: 0.8371 MB / 4.196 GB, free: 133 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.202e-06/13.77, allocations: 3.156 kB / 4.196 GB, free: 133 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.007722/13.78, allocations: 1.888 MB / 4.198 GB, free: 133 MB / 0.573 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.008891/13.79, allocations: 2.36 MB / 4.2 GB, free: 132.8 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.005261/13.79, allocations: 2.32 MB / 4.203 GB, free: 132.8 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 6.652e-06/13.79, allocations: 0.5625 kB / 4.203 GB, free: 132.8 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001976/13.79, allocations: 0.9018 MB / 4.204 GB, free: 132.7 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003349/13.8, allocations: 495.8 kB / 4.204 GB, free: 132.7 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005308/13.8, allocations: 2.373 MB / 4.206 GB, free: 132.2 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001099/13.8, allocations: 1.394 MB / 4.208 GB, free: 131.5 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.003742/13.81, allocations: 1.773 MB / 4.209 GB, free: 131.5 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002841/13.81, allocations: 86.03 kB / 4.21 GB, free: 131.5 MB / 0.573 GB Notification: Performance of SimCode: time 2.184e-06/13.81, allocations: 0 / 4.21 GB, free: 131.5 MB / 0.573 GB Notification: Performance of Templates: time 0.08308/13.89, allocations: 54.32 MB / 4.263 GB, free: 129 MB / 0.573 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