Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.InverseParameterization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001286/0.001286, allocations: 98.89 kB / 16.31 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001391/0.001391, allocations: 184.8 kB / 17.2 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 223.2 MB / 241.1 MB, free: 5.367 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000267/0.0002671, allocations: 5.688 kB / 300.7 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09018/0.09046, allocations: 50.42 MB / 351.1 MB, free: 11.71 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.InverseParameterization): time 0.05356/0.1441, allocations: 60.89 MB / 412 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2046/0.3487, allocations: 21.66 MB / 433.7 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002194/0.3509, allocations: 44.56 kB / 433.7 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002247/0.3532, allocations: 0.6846 MB / 434.4 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01687/0.3701, allocations: 5.073 MB / 439.5 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01292/0.383, allocations: 3.613 MB / 443.1 MB, free: 5.098 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00426/0.3873, allocations: 2.081 MB / 445.2 MB, free: 5.094 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002082/0.3894, allocations: 0.8596 MB / 446 MB, free: 5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003515/0.3929, allocations: 1.266 MB / 447.3 MB, free: 5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0241/0.417, allocations: 14.92 MB / 462.2 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006771/0.4177, allocations: 76 kB / 462.3 MB, free: 4.227 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02205/0.4398, allocations: 11.13 MB / 473.4 MB, free: 11.11 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00107/0.4409, allocations: 410.8 kB / 473.8 MB, free: 10.88 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001032/0.442, allocations: 319 kB / 474.1 MB, free: 10.69 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009435/0.4514, allocations: 4.79 MB / 478.9 MB, free: 6.641 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.4515, allocations: 0 / 478.9 MB, free: 6.641 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.4515, allocations: 0 / 478.9 MB, free: 6.641 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.875e-05/0.4515, allocations: 0 / 478.9 MB, free: 6.641 MB / 366.1 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.008611/0.4602, allocations: 2.576 MB / 481.5 MB, free: 4.184 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.4602, allocations: 12.02 kB / 481.5 MB, free: 4.172 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00455/0.4648, allocations: 0.5846 MB / 482.1 MB, free: 3.633 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002196/0.467, allocations: 0.9575 MB / 483.1 MB, free: 2.902 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001176/0.4671, allocations: 92.12 kB / 483.1 MB, free: 2.852 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003325/0.4675, allocations: 109.1 kB / 483.3 MB, free: 2.781 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00552/0.473, allocations: 2.258 MB / 485.5 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.823e-05/0.473, allocations: 2.531 kB / 485.5 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001837/0.4732, allocations: 49.11 kB / 485.6 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001138/0.4734, allocations: 84.97 kB / 485.6 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005701/0.4791, allocations: 2.389 MB / 488 MB, free: 15.2 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.01254/0.4916, allocations: 9.263 MB / 497.3 MB, free: 6.988 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004927/0.4966, allocations: 1.927 MB / 499.2 MB, free: 5.586 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04851/0.5451, allocations: 24.78 MB / 0.5117 GB, free: 10.35 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.528e-05/0.5452, allocations: 49.41 kB / 0.5118 GB, free: 10.31 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001106/0.5463, allocations: 167 kB / 0.5119 GB, free: 10.17 MB / 414.1 MB Notification: Performance of pre-optimization done (n=109): time 5.841e-06/0.5463, allocations: 0 / 0.5119 GB, free: 10.17 MB / 414.1 MB Notification: Performance of matching and sorting (n=109): time 0.0186/0.5649, allocations: 4.72 MB / 0.5165 GB, free: 6.285 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.994e-05/0.565, allocations: 222.6 kB / 0.5168 GB, free: 6.02 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00138/0.5664, allocations: 0.9582 MB / 0.5177 GB, free: 5.285 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001452/0.5666, allocations: 48.95 kB / 0.5177 GB, free: 5.246 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003843/0.567, allocations: 0.562 MB / 0.5183 GB, free: 4.887 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003398/0.5673, allocations: 371 kB / 0.5186 GB, free: 4.574 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.665e-05/0.5674, allocations: 25.44 kB / 0.5187 GB, free: 4.57 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.5676, allocations: 357.9 kB / 0.519 GB, free: 4.234 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001339/0.5689, allocations: 0.6567 MB / 0.5196 GB, free: 3.797 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001547/0.5705, allocations: 1.026 MB / 0.5206 GB, free: 2.883 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001465/0.572, allocations: 0.7852 MB / 0.5214 GB, free: 2.395 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.583e-06/0.572, allocations: 0 / 0.5214 GB, free: 2.395 MB / 414.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.003955/0.5759, allocations: 2.108 MB / 0.5235 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001068/0.577, allocations: 3.746 MB / 0.5271 GB, free: 12.98 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.792e-05/0.577, allocations: 8 kB / 0.5271 GB, free: 12.98 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02837/0.6054, allocations: 3.063 MB / 0.5301 GB, free: 10.03 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001185/0.6066, allocations: 282 kB / 0.5304 GB, free: 9.785 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002605/0.6093, allocations: 1.479 MB / 0.5318 GB, free: 8.609 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001458/0.6107, allocations: 135.6 kB / 0.532 GB, free: 8.496 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001804/0.6109, allocations: 78.64 kB / 0.5321 GB, free: 8.434 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.034e-05/0.611, allocations: 8 kB / 0.5321 GB, free: 8.426 MB / 430.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004575/0.6155, allocations: 1.857 MB / 0.5339 GB, free: 7.168 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.913e-05/0.6156, allocations: 12.19 kB / 0.5339 GB, free: 7.156 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008171/0.6164, allocations: 211.7 kB / 0.5341 GB, free: 6.977 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001474/0.6179, allocations: 348.1 kB / 0.5344 GB, free: 6.672 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008328/0.6187, allocations: 0.7465 MB / 0.5351 GB, free: 5.98 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001316/0.6201, allocations: 141.6 kB / 0.5353 GB, free: 5.863 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000148/0.6202, allocations: 65.98 kB / 0.5353 GB, free: 5.812 MB / 430.1 MB 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 () * Number of clocked 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.0006567/0.6209, allocations: 430.4 kB / 0.5358 GB, free: 5.5 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002526/0.6211, allocations: 137 kB / 0.5359 GB, free: 5.367 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007273/0.6284, allocations: 5.698 MB / 0.5415 GB, free: 1.625 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.726e-05/0.6285, allocations: 63.41 kB / 0.5415 GB, free: 1.578 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/0.6285, allocations: 7.953 kB / 0.5415 GB, free: 1.57 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.513e-05/0.6285, allocations: 7.969 kB / 0.5415 GB, free: 1.562 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01034/0.6389, allocations: 7.719 MB / 0.5491 GB, free: 11.67 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.177e-06/0.6389, allocations: 3.984 kB / 0.5491 GB, free: 11.67 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008431/0.6398, allocations: 212.1 kB / 0.5493 GB, free: 11.47 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02521/0.665, allocations: 3.934 MB / 0.5531 GB, free: 7.535 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003616/0.6654, allocations: 31.98 kB / 0.5531 GB, free: 7.504 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003435/0.6688, allocations: 2.39 MB / 0.5555 GB, free: 5.086 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.207e-06/0.6689, allocations: 3.984 kB / 0.5555 GB, free: 5.082 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005862/0.6747, allocations: 3.704 MB / 0.5591 GB, free: 1.316 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001142/0.6759, allocations: 0.645 MB / 0.5597 GB, free: 0.6484 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003697/0.6763, allocations: 24 kB / 0.5597 GB, free: 0.625 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001237/0.6775, allocations: 126.5 kB / 0.5599 GB, free: 0.5039 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002214/0.6778, allocations: 103.2 kB / 0.56 GB, free: 416 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001014/0.6779, allocations: 47.98 kB / 0.56 GB, free: 368 kB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001544/0.6794, allocations: 1.059 MB / 0.561 GB, free: 15.31 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6794, allocations: 0 / 0.561 GB, free: 15.31 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005262/0.6847, allocations: 1.864 MB / 0.5629 GB, free: 13.45 MB / 462.1 MB 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,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,source.medium.phase,pump.heatTransfer.states[1].phase,sink.medium.phase,sink1.medium.phase,sink2.medium.phase) * Number of discrete states: 0 () * Number of clocked 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.006146/0.6909, allocations: 1.558 MB / 0.5644 GB, free: 12.04 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007471/0.6984, allocations: 3.044 MB / 0.5674 GB, free: 9.062 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/0.6984, allocations: 0 / 0.5674 GB, free: 9.062 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002708/0.7011, allocations: 1.496 MB / 0.5688 GB, free: 7.582 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003799/0.7049, allocations: 0.6816 MB / 0.5695 GB, free: 6.906 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008268/0.7132, allocations: 5.328 MB / 0.5747 GB, free: 1.574 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0013/0.7145, allocations: 1.621 MB / 0.5763 GB, free: 15.91 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002626/0.7172, allocations: 1.477 MB / 0.5777 GB, free: 14.46 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003387/0.7175, allocations: 111.4 kB / 0.5778 GB, free: 14.35 MB / 478.1 MB Notification: Performance of SimCode: time 8.51e-07/0.7175, allocations: 0 / 0.5778 GB, free: 14.35 MB / 478.1 MB Notification: Performance of Templates: time 0.2488/0.9663, allocations: 68.42 MB / 0.6446 GB, free: 146 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.InverseParameterization.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Fluid.Examples.InverseParameterization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches