Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.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.TestPipesAndValves.SeriesPipes1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") [: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.001109/0.001109, allocations: 198.8 kB / 8.538 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.2/1.2, allocations: 225.5 MB / 234.4 MB, free: 3.406 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008501/0.0008501, allocations: 92.92 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1728/0.1728, allocations: 45.15 MB / 383.3 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 5.481e-06/5.501e-06, allocations: 0 / 452.6 MB, free: 76.21 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09439/0.09441, allocations: 63.23 MB / 0.5038 GB, free: 13.05 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.718/4.812, allocations: 2.833 GB / 3.336 GB, free: 88.04 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003504/4.813, allocations: 79.95 kB / 3.336 GB, free: 87.96 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: time 3.362/8.174, allocations: 0.8062 GB / 4.143 GB, free: 44.39 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0004449/8.175, allocations: 65.09 kB / 4.143 GB, free: 44.38 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.02207/8.197, allocations: 3.89 MB / 4.146 GB, free: 42.53 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 6.381e-05/8.197, allocations: 7.156 kB / 4.146 GB, free: 42.53 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008426/8.205, allocations: 0.8822 MB / 4.147 GB, free: 42.39 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00682/8.212, allocations: 2.108 MB / 4.149 GB, free: 41.94 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001621/8.213, allocations: 88.86 kB / 4.149 GB, free: 41.94 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004517/8.213, allocations: 117.2 kB / 4.15 GB, free: 41.94 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004582/8.218, allocations: 2.622 MB / 4.152 GB, free: 41.93 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004413/8.222, allocations: 2.865 MB / 4.155 GB, free: 41.38 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001068/8.222, allocations: 12.59 kB / 4.155 GB, free: 41.37 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002294/8.222, allocations: 7.531 kB / 4.155 GB, free: 41.37 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001719/8.223, allocations: 174.7 kB / 4.155 GB, free: 41.37 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2111/8.434, allocations: 105.8 MB / 4.258 GB, free: 15.42 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002063/8.436, allocations: 1.143 MB / 4.26 GB, free: 14.79 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001334/8.437, allocations: 1.026 MB / 4.261 GB, free: 14.22 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.458/8.895, allocations: 19.32 MB / 4.279 GB, free: 132 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002569/8.898, allocations: 1.213 MB / 4.281 GB, free: 131.9 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=147): time 6.222e-06/8.898, allocations: 1.969 kB / 4.281 GB, free: 131.9 MB / 0.6042 GB Notification: Performance of matching and sorting (n=163): time 0.02449/8.922, allocations: 8.394 MB / 4.289 GB, free: 130.5 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001932/8.923, allocations: 384.8 kB / 4.289 GB, free: 130.1 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001985/8.925, allocations: 1.151 MB / 4.29 GB, free: 129.9 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0002118/8.925, allocations: 29.58 kB / 4.29 GB, free: 129.9 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.000825/8.926, allocations: 0.77 MB / 4.291 GB, free: 129.5 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007163/8.926, allocations: 0.5374 MB / 4.292 GB, free: 129.2 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001273/8.927, allocations: 6.016 kB / 4.292 GB, free: 129.2 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001593/8.927, allocations: 384.8 kB / 4.292 GB, free: 128.9 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001751/8.929, allocations: 1.157 MB / 4.293 GB, free: 128.9 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001978/8.931, allocations: 1.615 MB / 4.295 GB, free: 128.4 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007787/8.938, allocations: 2.33 MB / 4.297 GB, free: 128.4 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.691e-05/8.938, allocations: 3.469 kB / 4.297 GB, free: 128.4 MB / 0.6042 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01452/8.953, allocations: 4.736 MB / 4.302 GB, free: 128.2 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.001548/8.955, allocations: 4.689 MB / 4.306 GB, free: 123.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.028e-05/8.955, allocations: 12.75 kB / 4.306 GB, free: 123.4 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007891/8.955, allocations: 258.1 kB / 4.306 GB, free: 123.4 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0025/8.958, allocations: 0.5181 MB / 4.307 GB, free: 123.4 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00186/8.96, allocations: 2.561 MB / 4.309 GB, free: 121.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003563/8.963, allocations: 261.2 kB / 4.31 GB, free: 121.3 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004746/8.964, allocations: 102.5 kB / 4.31 GB, free: 121.3 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.832e-05/8.964, allocations: 8.25 kB / 4.31 GB, free: 121.3 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01172/8.976, allocations: 3.689 MB / 4.313 GB, free: 121.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.793e-05/8.976, allocations: 16.62 kB / 4.313 GB, free: 121.2 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007359/8.977, allocations: 259.3 kB / 4.314 GB, free: 121.2 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002473/8.979, allocations: 0.5116 MB / 4.314 GB, free: 121.2 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001938/8.981, allocations: 2.562 MB / 4.317 GB, free: 119.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003217/8.984, allocations: 236.5 kB / 4.317 GB, free: 119.1 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004705/8.985, allocations: 98.52 kB / 4.317 GB, free: 119.1 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 23 (pipe3.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe1.state_a.phase,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (246): * Single equations (assignments): 239 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001157/8.986, allocations: 204 kB / 4.317 GB, free: 119 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002697/8.989, allocations: 0.6588 MB / 4.318 GB, free: 118.9 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01355/9.002, allocations: 6.672 MB / 4.324 GB, free: 118.4 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.299e-05/9.002, allocations: 60.03 kB / 4.324 GB, free: 118.4 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-05/9.002, allocations: 0 / 4.324 GB, free: 118.4 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009097/9.012, allocations: 5.491 MB / 4.33 GB, free: 117.7 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01752/9.029, allocations: 9.257 MB / 4.339 GB, free: 116.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.547e-05/9.029, allocations: 2.031 kB / 4.339 GB, free: 116.9 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00173/9.031, allocations: 331.4 kB / 4.339 GB, free: 116.9 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001021/9.032, allocations: 344.8 kB / 4.339 GB, free: 116.9 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002926/9.032, allocations: 49.42 kB / 4.34 GB, free: 116.9 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001902/9.034, allocations: 2.721 MB / 4.342 GB, free: 114.8 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.548e-06/9.034, allocations: 2.281 kB / 4.342 GB, free: 114.8 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01333/9.048, allocations: 7.142 MB / 4.349 GB, free: 114.2 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002524/9.05, allocations: 0.6933 MB / 4.35 GB, free: 114 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001171/9.051, allocations: 18.91 kB / 4.35 GB, free: 114 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002865/9.054, allocations: 169.9 kB / 4.35 GB, free: 114 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004251/9.055, allocations: 124.6 kB / 4.35 GB, free: 114 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00028/9.055, allocations: 70.62 kB / 4.35 GB, free: 114 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.002961/9.058, allocations: 1.113 MB / 4.351 GB, free: 113.9 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01734/9.075, allocations: 2.719 MB / 4.354 GB, free: 113.8 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve.filter.x[1],valve.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 36 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$whenCondition1,pipe1.statesFM[2].phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (173): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 13 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02078/9.096, allocations: 3.083 MB / 4.357 GB, free: 113.5 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.01348/9.11, allocations: 5.511 MB / 4.362 GB, free: 113.3 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-05/9.11, allocations: 2.125 kB / 4.362 GB, free: 113.3 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.005114/9.115, allocations: 2.872 MB / 4.365 GB, free: 113.3 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005979/9.121, allocations: 0.7356 MB / 4.366 GB, free: 113.3 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01833/9.139, allocations: 5.936 MB / 4.372 GB, free: 112.3 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005312/9.145, allocations: 2.335 MB / 4.374 GB, free: 111.5 MB / 0.6042 GB Notification: Performance of SimCode: time 1.743e-06/9.145, allocations: 0 / 4.374 GB, free: 111.5 MB / 0.6042 GB Notification: Performance of Templates: time 0.1775/9.322, allocations: 90.45 MB / 4.462 GB, free: 97.7 MB / 0.6042 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/SeriesPipes1/SeriesPipes1.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches