Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|eps_m_flow_turbulent|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|orifice.port_b.m_flow|orifice.port_b.p|orifice.port_b.h_outflow|sink.ports.1..m_flow|sink.ports.1..p|sink.ports.1..h_outflow|pipe1.port_b.m_flow|pipe1.port_b.p|pipe1.port_b.h_outflow|sink1.ports.1..m_flow|sink1.ports.1..p|sink1.ports.1..h_outflow|p_set.y|pipe2.port_b.m_flow|pipe2.port_b.p|pipe2.port_b.h_outflow|sink2.ports.1..m_flow|sink2.ports.1..p|sink2.ports.1..h_outflow",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar") translateModel(ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|eps_m_flow_turbulent|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|orifice.port_b.m_flow|orifice.port_b.p|orifice.port_b.h_outflow|sink.ports.1..m_flow|sink.ports.1..p|sink.ports.1..h_outflow|pipe1.port_b.m_flow|pipe1.port_b.p|pipe1.port_b.h_outflow|sink1.ports.1..m_flow|sink1.ports.1..p|sink1.ports.1..h_outflow|p_set.y|pipe2.port_b.m_flow|pipe2.port_b.p|pipe2.port_b.h_outflow|sink2.ports.1..m_flow|sink2.ports.1..p|sink2.ports.1..h_outflow",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009964/0.0009963, allocations: 203.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 225.6 MB / 234.8 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009567/0.0009567, allocations: 95.8 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2361/0.2361, allocations: 45.16 MB / 383.8 MB, free: 268 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.075e-05/2.077e-05, allocations: 0 / 453.2 MB, free: 75.82 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1309, allocations: 63.25 MB / 0.5044 GB, free: 12.62 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.939/7.07, allocations: 2.824 GB / 3.328 GB, free: 23.46 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002081/7.07, allocations: 76.03 kB / 3.328 GB, free: 23.42 MB / 0.5261 GB [/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.821/9.891, allocations: 0.7498 GB / 4.078 GB, free: 45.84 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.773e-06/9.891, allocations: 0 / 4.078 GB, free: 45.84 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001881/9.891, allocations: 32.48 kB / 4.078 GB, free: 45.83 MB / 0.5417 GB 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.01428/9.906, allocations: 2.726 MB / 4.081 GB, free: 44.43 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.436e-05/9.906, allocations: 11.75 kB / 4.081 GB, free: 44.43 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005294/9.911, allocations: 0.6078 MB / 4.081 GB, free: 44.35 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003336/9.914, allocations: 1.067 MB / 4.082 GB, free: 44 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001431/9.914, allocations: 45.53 kB / 4.082 GB, free: 44 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005272/9.915, allocations: 61.25 kB / 4.082 GB, free: 44 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003633/9.919, allocations: 1.752 MB / 4.084 GB, free: 43.99 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003462/9.922, allocations: 1.56 MB / 4.086 GB, free: 43.63 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.287e-05/9.922, allocations: 0 / 4.086 GB, free: 43.63 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001913/9.922, allocations: 5.125 kB / 4.086 GB, free: 43.63 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001209/9.922, allocations: 89.7 kB / 4.086 GB, free: 43.62 MB / 0.5417 GB 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.7616/10.68, allocations: 184.9 MB / 4.266 GB, free: 34.89 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002643/10.69, allocations: 1.134 MB / 4.267 GB, free: 34.85 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001262/10.69, allocations: 0.5626 MB / 4.268 GB, free: 34.84 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03484/10.72, allocations: 18.74 MB / 4.286 GB, free: 21.98 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.233e-05/10.72, allocations: 49.5 kB / 4.286 GB, free: 21.93 MB / 0.5886 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001608/10.72, allocations: 169.5 kB / 4.287 GB, free: 21.92 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=91): time 9.799e-06/10.72, allocations: 0 / 4.287 GB, free: 21.92 MB / 0.5886 GB Notification: Performance of matching and sorting (n=91): time 0.009337/10.73, allocations: 2.414 MB / 4.289 GB, free: 21.84 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001081/10.73, allocations: 216.2 kB / 4.289 GB, free: 21.59 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00143/10.74, allocations: 0.7493 MB / 4.29 GB, free: 21.43 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0002164/10.74, allocations: 25.7 kB / 4.29 GB, free: 21.4 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005021/10.74, allocations: 0.628 MB / 4.29 GB, free: 21.15 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003765/10.74, allocations: 308 kB / 4.291 GB, free: 20.99 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/10.74, allocations: 2.906 kB / 4.291 GB, free: 20.99 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001828/10.74, allocations: 360.6 kB / 4.291 GB, free: 20.69 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008548/10.74, allocations: 0.5356 MB / 4.292 GB, free: 20.69 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001015/10.74, allocations: 0.8812 MB / 4.292 GB, free: 20.29 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005331/10.74, allocations: 1.209 MB / 4.294 GB, free: 20.25 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.454e-05/10.74, allocations: 3.875 kB / 4.294 GB, free: 20.25 MB / 0.5886 GB Notification: Performance of matching and sorting (n=158) (initialization): time 0.007591/10.75, allocations: 2.307 MB / 4.296 GB, free: 20.11 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.002066/10.75, allocations: 3.76 MB / 4.3 GB, free: 32.18 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.695e-05/10.75, allocations: 8.625 kB / 4.3 GB, free: 32.18 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0054/10.76, allocations: 1.05 MB / 4.301 GB, free: 32.13 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001285/10.76, allocations: 280.3 kB / 4.301 GB, free: 32.13 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004771/10.77, allocations: 1.79 MB / 4.303 GB, free: 31.57 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002423/10.77, allocations: 184.8 kB / 4.303 GB, free: 31.55 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003788/10.77, allocations: 75.89 kB / 4.303 GB, free: 31.55 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.482e-05/10.77, allocations: 3.75 kB / 4.303 GB, free: 31.55 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006445/10.77, allocations: 1.767 MB / 4.305 GB, free: 31.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.158e-05/10.78, allocations: 8.938 kB / 4.305 GB, free: 31.5 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007381/10.78, allocations: 194.9 kB / 4.305 GB, free: 31.48 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001504/10.78, allocations: 344.8 kB / 4.305 GB, free: 31.48 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008851/10.78, allocations: 0.7617 MB / 4.306 GB, free: 30.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001863/10.78, allocations: 141.8 kB / 4.306 GB, free: 30.95 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002387/10.78, allocations: 67.06 kB / 4.306 GB, free: 30.95 MB / 0.6042 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.0006195/10.78, allocations: 150.5 kB / 4.306 GB, free: 30.83 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004615/10.78, allocations: 114.5 kB / 4.306 GB, free: 30.78 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008377/10.79, allocations: 3.887 MB / 4.31 GB, free: 30.49 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.686e-05/10.79, allocations: 34.77 kB / 4.31 GB, free: 30.49 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.397e-05/10.79, allocations: 0 / 4.31 GB, free: 30.49 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.405e-05/10.79, allocations: 3.516 kB / 4.31 GB, free: 30.49 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01158/10.8, allocations: 5.33 MB / 4.315 GB, free: 30.04 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.848e-06/10.8, allocations: 0 / 4.315 GB, free: 30.04 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005141/10.8, allocations: 115.6 kB / 4.315 GB, free: 30.04 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004492/10.81, allocations: 2.505 MB / 4.318 GB, free: 29.93 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001592/10.81, allocations: 7.203 kB / 4.318 GB, free: 29.93 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005347/10.81, allocations: 2.889 MB / 4.321 GB, free: 29.34 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.929e-06/10.81, allocations: 6.391 kB / 4.321 GB, free: 29.34 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007908/10.82, allocations: 3.105 MB / 4.324 GB, free: 28.95 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00146/10.82, allocations: 462.7 kB / 4.324 GB, free: 28.77 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006543/10.82, allocations: 6.672 kB / 4.324 GB, free: 28.77 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001643/10.82, allocations: 102.5 kB / 4.324 GB, free: 28.75 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001726/10.82, allocations: 62.48 kB / 4.324 GB, free: 28.75 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000116/10.82, allocations: 40 kB / 4.324 GB, free: 28.75 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.001621/10.83, allocations: 0.8309 MB / 4.325 GB, free: 28.64 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.2e-07/10.83, allocations: 4 kB / 4.325 GB, free: 28.64 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01146/10.84, allocations: 1.896 MB / 4.327 GB, free: 28.53 MB / 0.6042 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.01308/10.85, allocations: 2.356 MB / 4.329 GB, free: 28.18 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.006227/10.86, allocations: 2.321 MB / 4.332 GB, free: 28.13 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/10.86, allocations: 0 / 4.332 GB, free: 28.13 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.001931/10.86, allocations: 0.9106 MB / 4.333 GB, free: 28.11 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003375/10.86, allocations: 491.9 kB / 4.333 GB, free: 28.09 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005884/10.87, allocations: 2.385 MB / 4.335 GB, free: 27.51 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001286/10.87, allocations: 1.395 MB / 4.337 GB, free: 26.77 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.003572/10.87, allocations: 1.77 MB / 4.338 GB, free: 26.71 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003726/10.87, allocations: 83.77 kB / 4.339 GB, free: 26.71 MB / 0.6042 GB Notification: Performance of SimCode: time 1.834e-06/10.87, allocations: 0.9844 kB / 4.339 GB, free: 26.71 MB / 0.6042 GB Notification: Performance of Templates: time 0.08545/10.96, allocations: 54.31 MB / 4.392 GB, free: 5.387 MB / 0.6042 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestExamplesVariants/InverseParameterization_laminar/InverseParameterization_laminar.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches