Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Fluid.Examples.PumpingSystem.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.PumpingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|PT1.y|pumps.medium.T|pumps.medium.p|reservoir.level|reservoir.medium.T|PumpRPMGenerator.y|controller.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.PumpingSystem") translateModel(Modelica.Fluid.Examples.PumpingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|PT1.y|pumps.medium.T|pumps.medium.p|reservoir.level|reservoir.medium.T|PumpRPMGenerator.y|controller.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.PumpingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002207/0.002207, allocations: 199.6 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 3.575/3.575, allocations: 226.5 MB / 245.3 MB, free: 6.52 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001548/0.001548, allocations: 91.86 kB / 297.4 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004864/0.0004867, allocations: 8 kB / 357.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7458/0.7463, allocations: 51.28 MB / 408.6 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 15.72/16.47, allocations: 2.799 GB / 3.198 GB, free: 118 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004651/16.47, allocations: 85 kB / 3.198 GB, free: 118 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.493/21.96, allocations: 0.6754 GB / 3.874 GB, free: 40.54 MB / 490.7 MB Notification: Performance of FrontEnd: time 5.761e-06/21.96, allocations: 0 / 3.874 GB, free: 40.54 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002763/21.96, allocations: 34.42 kB / 3.874 GB, free: 40.54 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 307 * Number of variables: 307 Notification: Performance of Generate backend data structure: time 0.02635/21.99, allocations: 2.857 MB / 3.877 GB, free: 39.36 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.087e-05/21.99, allocations: 9.594 kB / 3.877 GB, free: 39.36 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008322/22, allocations: 0.5629 MB / 3.877 GB, free: 39.29 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009538/22.01, allocations: 1.018 MB / 3.878 GB, free: 38.94 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006269/22.01, allocations: 186.6 kB / 3.878 GB, free: 38.84 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001224/22.01, allocations: 119.1 kB / 3.878 GB, free: 38.84 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008523/22.02, allocations: 2.006 MB / 3.88 GB, free: 38.47 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.928e-05/22.02, allocations: 9.094 kB / 3.88 GB, free: 38.47 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003296/22.02, allocations: 59.89 kB / 3.88 GB, free: 38.47 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001995/22.02, allocations: 75.92 kB / 3.88 GB, free: 38.46 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007128/22.02, allocations: 1.749 MB / 3.882 GB, free: 38.45 MB / 490.7 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.02882/22.05, allocations: 9.345 MB / 3.891 GB, free: 33.2 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005585/22.06, allocations: 1.479 MB / 3.893 GB, free: 33.06 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001993/22.06, allocations: 0.6909 MB / 3.893 GB, free: 33.02 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.238/22.3, allocations: 70.38 MB / 3.962 GB, free: 18.33 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005249/22.3, allocations: 1.069 MB / 3.963 GB, free: 18.2 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=110): time 7.604e-06/22.3, allocations: 0 / 3.963 GB, free: 18.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=121): time 0.03742/22.34, allocations: 6.506 MB / 3.97 GB, free: 16.69 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003323/22.34, allocations: 306.6 kB / 3.97 GB, free: 16.34 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002724/22.34, allocations: 1.032 MB / 3.971 GB, free: 16.18 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004905/22.35, allocations: 49.42 kB / 3.971 GB, free: 16.14 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008322/22.35, allocations: 0.565 MB / 3.971 GB, free: 15.89 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007773/22.35, allocations: 415.2 kB / 3.972 GB, free: 15.64 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001519/22.35, allocations: 30.66 kB / 3.972 GB, free: 15.64 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002992/22.35, allocations: 366.5 kB / 3.972 GB, free: 15.33 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002035/22.35, allocations: 0.6278 MB / 3.973 GB, free: 15.32 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002305/22.35, allocations: 1.042 MB / 3.974 GB, free: 14.86 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004339/22.36, allocations: 1.646 MB / 3.975 GB, free: 14.41 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.676e-05/22.36, allocations: 2.75 kB / 3.975 GB, free: 14.41 MB / 0.5105 GB Notification: Performance of matching and sorting (n=182) (initialization): time 0.01232/22.37, allocations: 2.13 MB / 3.978 GB, free: 14.22 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005013/22.37, allocations: 429.5 kB / 3.978 GB, free: 13.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.323e-05/22.37, allocations: 9.094 kB / 3.978 GB, free: 13.71 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01119/22.38, allocations: 0.99 MB / 3.979 GB, free: 13.66 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002561/22.38, allocations: 298.6 kB / 3.979 GB, free: 13.65 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008994/22.39, allocations: 4.033 MB / 3.983 GB, free: 26.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004078/22.4, allocations: 124.8 kB / 3.983 GB, free: 26.51 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006582/22.4, allocations: 72.72 kB / 3.983 GB, free: 26.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 4.305e-05/22.4, allocations: 6.562 kB / 3.983 GB, free: 26.5 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006985/22.4, allocations: 1.918 MB / 3.985 GB, free: 26.42 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.235e-05/22.4, allocations: 11.28 kB / 3.985 GB, free: 26.42 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008954/22.41, allocations: 0.8688 MB / 3.986 GB, free: 26.37 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002441/22.42, allocations: 298.7 kB / 3.986 GB, free: 26.37 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004882/22.42, allocations: 3.366 MB / 3.99 GB, free: 23.76 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003039/22.42, allocations: 128.3 kB / 3.99 GB, free: 23.75 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005267/22.42, allocations: 68.41 kB / 3.99 GB, free: 23.75 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 24 (pipe.flowModel.states[2].phase,pipe.flowModel.states[1].phase,$whenCondition2,$whenCondition1,reservoir.regularFlow[1],reservoir.regularFlow[2],reservoir.regularFlow[3],reservoir.inFlow[1],reservoir.inFlow[2],reservoir.inFlow[3],$PRE.controller.y,controller.y,PumpRPMGenerator.endValue,PumpRPMGenerator.rate,PumpRPMGenerator.T,sink.state.phase,sink.medium.phase,userValve.state_b.phase,userValve.state_a.phase,reservoir.medium.phase,pumps.medium.phase,pumps.monitoring.state_in.phase,source.state.phase,source.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (159): * Single equations (assignments): 153 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 1,1 6,2 7,1 1,2 3,2 1} Notification: Performance of prepare postOptimizeDAE: time 0.006542/22.43, allocations: 465.5 kB / 3.99 GB, free: 23.54 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007203/22.43, allocations: 131.4 kB / 3.99 GB, free: 23.48 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01146/22.44, allocations: 4.941 MB / 3.995 GB, free: 22.96 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.888e-05/22.44, allocations: 60.66 kB / 3.995 GB, free: 22.95 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-05/22.44, allocations: 0 / 3.995 GB, free: 22.95 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-05/22.44, allocations: 9.641 kB / 3.995 GB, free: 22.95 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01458/22.46, allocations: 6.735 MB / 4.002 GB, free: 22.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.756e-05/22.46, allocations: 3.625 kB / 4.002 GB, free: 22.38 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001223/22.46, allocations: 175 kB / 4.002 GB, free: 22.38 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006329/22.47, allocations: 1.365 MB / 4.003 GB, free: 22.29 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000561/22.47, allocations: 37.53 kB / 4.003 GB, free: 22.29 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005803/22.47, allocations: 4.46 MB / 4.008 GB, free: 19.15 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/22.47, allocations: 0 / 4.008 GB, free: 19.15 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01181/22.48, allocations: 4.866 MB / 4.013 GB, free: 18.69 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002517/22.49, allocations: 0.5467 MB / 4.013 GB, free: 18.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005695/22.49, allocations: 23.75 kB / 4.013 GB, free: 18.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001903/22.49, allocations: 117.9 kB / 4.013 GB, free: 18.43 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004777/22.49, allocations: 120.2 kB / 4.013 GB, free: 18.42 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001948/22.49, allocations: 49.44 kB / 4.013 GB, free: 18.42 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002457/22.49, allocations: 0.9827 MB / 4.014 GB, free: 18.31 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.5e-07/22.49, allocations: 0 / 4.014 GB, free: 18.31 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01506/22.51, allocations: 2.091 MB / 4.016 GB, free: 18.02 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (pumps.medium.p,pumps.medium.T,reservoir.medium.T,reservoir.level,PT1.y) * Number of discrete variables: 36 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$whenCondition2,$whenCondition1,reservoir.regularFlow[1],reservoir.regularFlow[2],reservoir.regularFlow[3],reservoir.inFlow[1],reservoir.inFlow[2],reservoir.inFlow[3],controller.y,PumpRPMGenerator.endValue,PumpRPMGenerator.rate,PumpRPMGenerator.T) * Number of discrete states: 2 (controller.y,PumpRPMGenerator.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 11 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 1,1 1,1 6,2 9,2 3,2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02266/22.53, allocations: 2.36 MB / 4.019 GB, free: 17.45 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01127/22.54, allocations: 3.108 MB / 4.022 GB, free: 17.36 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.707e-05/22.54, allocations: 0 / 4.022 GB, free: 17.36 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004251/22.55, allocations: 1.484 MB / 4.023 GB, free: 17.34 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006532/22.55, allocations: 0.6467 MB / 4.024 GB, free: 17.3 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01381/22.57, allocations: 5.255 MB / 4.029 GB, free: 15.08 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001693/22.57, allocations: 1.491 MB / 4.03 GB, free: 14.32 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008939/22.57, allocations: 125.9 kB / 4.03 GB, free: 14.32 MB / 0.5261 GB Notification: Performance of SimCode: time 2.074e-06/22.57, allocations: 0 / 4.03 GB, free: 14.32 MB / 0.5261 GB Notification: Performance of Templates: time 0.9479/23.52, allocations: 92.77 MB / 4.121 GB, free: 77.79 MB / 0.5261 GB make -j1 -f Modelica_trunk_cpp_Modelica.Fluid.Examples.PumpingSystem.makefile (rm -f Modelica_trunk_cpp_Modelica.Fluid.Examples.PumpingSystem.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Fluid.Examples.PumpingSystem.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Fluid.Examples.PumpingSystem.pipe >> ../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.PumpingSystem.sim & ./Modelica_trunk_cpp_Modelica.Fluid.Examples.PumpingSystem --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Fluid.Examples.PumpingSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Fluid.Examples.PumpingSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/PumpingSystem/PumpingSystem.csv","../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.PumpingSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches