Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Fluid.Examples.PumpingSystem") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001793/0.001793, allocations: 199.4 kB / 8.54 MB, free: 1.816 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 225.5 MB / 234.4 MB, free: 3.469 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009299/0.00093, allocations: 94.19 kB / 286.3 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.664e-06/7.875e-06, allocations: 0 / 343.1 MB, free: 8.832 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1368, allocations: 51.48 MB / 394.6 MB, free: 5.305 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.67/7.806, allocations: 2.798 GB / 3.183 GB, free: 106.1 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003759/7.807, allocations: 83.47 kB / 3.183 GB, free: 106.1 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.34/11.15, allocations: 0.7091 GB / 3.893 GB, free: 29.8 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002249/11.15, allocations: 32.44 kB / 3.893 GB, free: 29.8 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: 307 * Number of variables: 307 Notification: Performance of Generate backend data structure: time 0.01514/11.16, allocations: 2.748 MB / 3.895 GB, free: 28.5 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.28e-05/11.16, allocations: 11.53 kB / 3.895 GB, free: 28.5 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005484/11.17, allocations: 0.5992 MB / 3.896 GB, free: 28.43 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0039/11.17, allocations: 0.9937 MB / 3.897 GB, free: 28.11 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002787/11.17, allocations: 142.1 kB / 3.897 GB, free: 28.01 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007689/11.17, allocations: 68.75 kB / 3.897 GB, free: 28.01 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004441/11.18, allocations: 1.429 MB / 3.898 GB, free: 28 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004741/11.18, allocations: 1.637 MB / 3.9 GB, free: 27.64 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.057e-05/11.18, allocations: 5.281 kB / 3.9 GB, free: 27.64 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000378/11.18, allocations: 7.875 kB / 3.9 GB, free: 27.64 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001129/11.18, allocations: 81.95 kB / 3.9 GB, free: 27.63 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6112/11.79, allocations: 148.8 MB / 4.045 GB, free: 111.4 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001448/11.8, allocations: 0.7455 MB / 4.046 GB, free: 111.4 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007815/11.8, allocations: 0.5942 MB / 4.047 GB, free: 111.4 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1305/11.93, allocations: 72.08 MB / 4.117 GB, free: 64.37 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001552/11.93, allocations: 0.7401 MB / 4.118 GB, free: 64.29 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=96): time 2.886e-06/11.93, allocations: 0 / 4.118 GB, free: 64.29 MB / 0.5261 GB Notification: Performance of matching and sorting (n=107): time 0.01665/11.95, allocations: 5.463 MB / 4.123 GB, free: 63.78 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.819e-05/11.95, allocations: 195.8 kB / 4.123 GB, free: 63.56 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00113/11.95, allocations: 0.7326 MB / 4.124 GB, free: 63.42 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001219/11.95, allocations: 28.58 kB / 4.124 GB, free: 63.39 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003696/11.95, allocations: 0.5105 MB / 4.125 GB, free: 63.13 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003262/11.95, allocations: 359.6 kB / 4.125 GB, free: 62.95 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.463e-05/11.95, allocations: 0 / 4.125 GB, free: 62.95 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001102/11.95, allocations: 368.7 kB / 4.125 GB, free: 62.64 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009048/11.95, allocations: 0.6425 MB / 4.126 GB, free: 62.64 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001161/11.95, allocations: 1.037 MB / 4.127 GB, free: 62.19 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004429/11.95, allocations: 1.368 MB / 4.128 GB, free: 62.14 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.748e-06/11.95, allocations: 7.969 kB / 4.128 GB, free: 62.14 MB / 0.5261 GB Notification: Performance of matching and sorting (n=182) (initialization): time 0.008737/11.96, allocations: 3.148 MB / 4.131 GB, free: 61.94 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009542/11.96, allocations: 4.353 MB / 4.136 GB, free: 57.37 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.036e-05/11.96, allocations: 11.95 kB / 4.136 GB, free: 57.37 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001598/11.97, allocations: 0.7105 MB / 4.136 GB, free: 57.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001207/11.97, allocations: 288 kB / 4.137 GB, free: 57.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005519/11.97, allocations: 5.825 MB / 4.142 GB, free: 52.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001862/11.97, allocations: 99.53 kB / 4.142 GB, free: 52.88 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001642/11.97, allocations: 83.78 kB / 4.142 GB, free: 52.88 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.063e-05/11.97, allocations: 3.375 kB / 4.143 GB, free: 52.88 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006637/11.98, allocations: 2.5 MB / 4.145 GB, free: 52.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/11.98, allocations: 7.75 kB / 4.145 GB, free: 52.77 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001386/11.98, allocations: 0.6311 MB / 4.146 GB, free: 52.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00107/11.98, allocations: 291.2 kB / 4.146 GB, free: 52.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004652/11.99, allocations: 5.065 MB / 4.151 GB, free: 48.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001587/11.99, allocations: 97.34 kB / 4.151 GB, free: 48.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001597/11.99, allocations: 76.44 kB / 4.151 GB, free: 48.8 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 150 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 7 {2 1,1 6,2 7,1 1,2 3,1 2,2 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005096/11.99, allocations: 158.8 kB / 4.151 GB, free: 48.69 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001225/11.99, allocations: 404.6 kB / 4.151 GB, free: 48.63 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007781/12, allocations: 4.66 MB / 4.156 GB, free: 48.31 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-05/12, allocations: 39.73 kB / 4.156 GB, free: 48.31 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/12, allocations: 0 / 4.156 GB, free: 48.31 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.691e-05/12, allocations: 7.078 kB / 4.156 GB, free: 48.31 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01006/12.01, allocations: 6.325 MB / 4.162 GB, free: 47.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/12.01, allocations: 0 / 4.162 GB, free: 47.84 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007546/12.01, allocations: 158.8 kB / 4.162 GB, free: 47.83 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00191/12.01, allocations: 1.063 MB / 4.163 GB, free: 47.75 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001058/12.01, allocations: 21.38 kB / 4.163 GB, free: 47.75 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005022/12.02, allocations: 4.892 MB / 4.168 GB, free: 44.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.68e-06/12.02, allocations: 4.531 kB / 4.168 GB, free: 44.6 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01133/12.03, allocations: 5.436 MB / 4.174 GB, free: 44.18 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001313/12.03, allocations: 407.3 kB / 4.174 GB, free: 44.01 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005746/12.03, allocations: 5.438 kB / 4.174 GB, free: 44.01 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001575/12.03, allocations: 86.62 kB / 4.174 GB, free: 44 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003226/12.03, allocations: 100.7 kB / 4.174 GB, free: 44 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001895/12.03, allocations: 51.81 kB / 4.174 GB, free: 44 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.001259/12.03, allocations: 0.5226 MB / 4.175 GB, free: 43.9 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01207/12.05, allocations: 1.988 MB / 4.177 GB, free: 43.85 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pumps.medium.p,pumps.medium.T,reservoir.medium.T,reservoir.level,PT1.y) * Number of discrete variables: 32 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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 6,2 9,1 1,2 3,2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01565/12.06, allocations: 2.578 MB / 4.179 GB, free: 43.48 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01077/12.07, allocations: 3.65 MB / 4.183 GB, free: 43.21 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.117e-05/12.07, allocations: 3.188 kB / 4.183 GB, free: 43.21 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003227/12.08, allocations: 1.845 MB / 4.185 GB, free: 43.2 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003072/12.08, allocations: 444.7 kB / 4.185 GB, free: 43.17 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008564/12.09, allocations: 3.416 MB / 4.188 GB, free: 42.49 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00173/12.09, allocations: 1.555 MB / 4.19 GB, free: 41.74 MB / 0.5261 GB Notification: Performance of SimCode: time 1.193e-06/12.09, allocations: 0 / 4.19 GB, free: 41.74 MB / 0.5261 GB Notification: Performance of Templates: time 0.1143/12.2, allocations: 68.15 MB / 4.256 GB, free: 12.46 MB / 0.5261 GB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.sim & ./Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/PumpingSystem/PumpingSystem.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.PumpingSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches