Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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) 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/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation") translateModel(BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation") [: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/BuildingSystems 2.0.0-master/package.mo): time 0.751/0.751, allocations: 141.8 MB / 149.1 MB, free: 4.551 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 178.3 kB / 181.9 MB, free: 196 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.555/1.555, allocations: 221.3 MB / 436 MB, free: 9.25 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 106.3 kB / 0.507 GB, free: 24.23 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002108/0.002108, allocations: 266.5 kB / 0.5884 GB, free: 12.28 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 1.113e-05/1.117e-05, allocations: 0 / 0.6759 GB, free: 2.652 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5505/0.5505, allocations: 82.77 MB / 0.7567 GB, free: 112.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7883/1.339, allocations: 359.6 MB / 1.108 GB, free: 7.02 MB / 0.6357 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002501/1.339, allocations: 85.56 kB / 1.108 GB, free: 6.977 MB / 0.6357 GB Notification: Performance of FrontEnd: time 0.9546/2.294, allocations: 258.5 MB / 1.36 GB, free: 75.36 MB / 0.6825 GB Notification: Performance of Transformations before backend: time 8.014e-05/2.294, allocations: 19.98 kB / 1.36 GB, free: 75.34 MB / 0.6825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.002253/2.296, allocations: 0.9174 MB / 1.361 GB, free: 74.37 MB / 0.6825 GB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/2.296, allocations: 9.281 kB / 1.361 GB, free: 74.36 MB / 0.6825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001074/2.297, allocations: 199 kB / 1.362 GB, free: 74.17 MB / 0.6825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02783/2.325, allocations: 12.06 MB / 1.373 GB, free: 61.92 MB / 0.6825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003495/2.325, allocations: 84.72 kB / 1.373 GB, free: 61.84 MB / 0.6825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000194/2.326, allocations: 28 kB / 1.373 GB, free: 61.81 MB / 0.6825 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007499/2.326, allocations: 297.5 kB / 1.374 GB, free: 61.52 MB / 0.6825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007354/2.327, allocations: 408.5 kB / 1.374 GB, free: 61.1 MB / 0.6825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.176e-05/2.327, allocations: 0 / 1.374 GB, free: 61.1 MB / 0.6825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.587e-05/2.327, allocations: 4 kB / 1.374 GB, free: 61.09 MB / 0.6825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.411e-05/2.327, allocations: 16.66 kB / 1.374 GB, free: 61.08 MB / 0.6825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003587/2.331, allocations: 2.219 MB / 1.376 GB, free: 58.67 MB / 0.6825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004513/2.331, allocations: 262.9 kB / 1.377 GB, free: 58.4 MB / 0.6825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002199/2.332, allocations: 177 kB / 1.377 GB, free: 58.23 MB / 0.6825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002665/2.332, allocations: 348.6 kB / 1.377 GB, free: 57.81 MB / 0.6825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003128/2.332, allocations: 242.8 kB / 1.377 GB, free: 57.55 MB / 0.6825 GB Notification: Performance of pre-optimization done (n=33): time 2.945e-06/2.332, allocations: 4 kB / 1.377 GB, free: 57.55 MB / 0.6825 GB Notification: Performance of matching and sorting (n=33): time 0.001208/2.334, allocations: 438 kB / 1.378 GB, free: 57.12 MB / 0.6825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.464e-05/2.334, allocations: 81.11 kB / 1.378 GB, free: 57.02 MB / 0.6825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004863/2.334, allocations: 365.3 kB / 1.378 GB, free: 56.66 MB / 0.6825 GB Notification: Performance of collectPreVariables (initialization): time 6.774e-05/2.334, allocations: 33.64 kB / 1.378 GB, free: 56.62 MB / 0.6825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001749/2.334, allocations: 204.3 kB / 1.378 GB, free: 56.41 MB / 0.6825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001327/2.334, allocations: 122.3 kB / 1.378 GB, free: 56.29 MB / 0.6825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.069e-05/2.334, allocations: 0 / 1.378 GB, free: 56.29 MB / 0.6825 GB Notification: Performance of setup shared object (initialization): time 0.0001228/2.335, allocations: 362.7 kB / 1.379 GB, free: 55.93 MB / 0.6825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001896/2.335, allocations: 120 kB / 1.379 GB, free: 55.81 MB / 0.6825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002354/2.335, allocations: 215.1 kB / 1.379 GB, free: 55.56 MB / 0.6825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004391/2.335, allocations: 177.1 kB / 1.379 GB, free: 55.39 MB / 0.6825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.177e-06/2.336, allocations: 0 / 1.379 GB, free: 55.39 MB / 0.6825 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000984/2.336, allocations: 477.7 kB / 1.38 GB, free: 54.91 MB / 0.6825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001847/2.337, allocations: 0.6114 MB / 1.38 GB, free: 54.25 MB / 0.6825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/2.337, allocations: 4 kB / 1.38 GB, free: 54.25 MB / 0.6825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000216/2.337, allocations: 52.73 kB / 1.38 GB, free: 54.2 MB / 0.6825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003979/2.337, allocations: 87.88 kB / 1.381 GB, free: 54.11 MB / 0.6825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004048/2.338, allocations: 0.5992 MB / 1.381 GB, free: 53.48 MB / 0.6825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006846/2.338, allocations: 79.69 kB / 1.381 GB, free: 53.41 MB / 0.6825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.191e-05/2.339, allocations: 24.05 kB / 1.381 GB, free: 53.38 MB / 0.6825 GB Notification: Performance of prepare postOptimizeDAE: time 9.007e-06/2.339, allocations: 4 kB / 1.381 GB, free: 53.38 MB / 0.6825 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007374/2.339, allocations: 368.2 kB / 1.382 GB, free: 53.02 MB / 0.6825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/2.339, allocations: 8.047 kB / 1.382 GB, free: 53.01 MB / 0.6825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001614/2.339, allocations: 56.95 kB / 1.382 GB, free: 52.95 MB / 0.6825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003638/2.34, allocations: 79.94 kB / 1.382 GB, free: 52.87 MB / 0.6825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001247/2.341, allocations: 1.501 MB / 1.383 GB, free: 51.25 MB / 0.6825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005979/2.342, allocations: 75.75 kB / 1.383 GB, free: 51.18 MB / 0.6825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.719e-05/2.342, allocations: 20.05 kB / 1.383 GB, free: 51.16 MB / 0.6825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,$PRE.QSen_flow.nextEvent,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * 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 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001766/2.342, allocations: 146.8 kB / 1.383 GB, free: 51 MB / 0.6825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001091/2.342, allocations: 55.34 kB / 1.383 GB, free: 50.95 MB / 0.6825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001024/2.343, allocations: 499.7 kB / 1.384 GB, free: 50.45 MB / 0.6825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/2.343, allocations: 8 kB / 1.384 GB, free: 50.45 MB / 0.6825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.883e-06/2.343, allocations: 0 / 1.384 GB, free: 50.45 MB / 0.6825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007213/2.344, allocations: 0.6538 MB / 1.385 GB, free: 49.72 MB / 0.6825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001758/2.346, allocations: 1.095 MB / 1.386 GB, free: 48.57 MB / 0.6825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.137e-06/2.346, allocations: 0 / 1.386 GB, free: 48.57 MB / 0.6825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003527/2.346, allocations: 72.16 kB / 1.386 GB, free: 48.5 MB / 0.6825 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.654e-05/2.346, allocations: 48.78 kB / 1.386 GB, free: 48.45 MB / 0.6825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.668e-05/2.346, allocations: 11.91 kB / 1.386 GB, free: 48.44 MB / 0.6825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002787/2.346, allocations: 0.5757 MB / 1.386 GB, free: 47.84 MB / 0.6825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/2.346, allocations: 4 kB / 1.386 GB, free: 47.83 MB / 0.6825 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001123/2.348, allocations: 0.8109 MB / 1.387 GB, free: 46.97 MB / 0.6825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003524/2.348, allocations: 184.3 kB / 1.387 GB, free: 46.77 MB / 0.6825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001059/2.348, allocations: 12.05 kB / 1.387 GB, free: 46.76 MB / 0.6825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006392/2.349, allocations: 63.84 kB / 1.387 GB, free: 46.7 MB / 0.6825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.88e-05/2.349, allocations: 19.98 kB / 1.387 GB, free: 46.68 MB / 0.6825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.285e-05/2.349, allocations: 23.97 kB / 1.387 GB, free: 46.66 MB / 0.6825 GB Notification: Performance of sort global known variables: time 0.0003135/2.349, allocations: 283 kB / 1.388 GB, free: 46.38 MB / 0.6825 GB Notification: Performance of remove unused functions: time 0.001678/2.351, allocations: 363.3 kB / 1.388 GB, free: 46.03 MB / 0.6825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (dyn.U) * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 6 (QSen_flow.nextEvent,QSen_flow.last,QSen_flow.nextEventScaled,QSen_flow.b,QSen_flow.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * 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 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001404/2.352, allocations: 430.2 kB / 1.388 GB, free: 45.61 MB / 0.6825 GB Notification: Performance of simCode: created initialization part: time 0.001514/2.354, allocations: 0.7034 MB / 1.389 GB, free: 44.89 MB / 0.6825 GB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/2.354, allocations: 0 / 1.389 GB, free: 44.89 MB / 0.6825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003715/2.354, allocations: 238.5 kB / 1.389 GB, free: 44.65 MB / 0.6825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001324/2.356, allocations: 219.4 kB / 1.39 GB, free: 44.44 MB / 0.6825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002031/2.358, allocations: 0.7746 MB / 1.39 GB, free: 43.63 MB / 0.6825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005478/2.358, allocations: 0.9447 MB / 1.391 GB, free: 42.66 MB / 0.6825 GB Notification: Performance of SimCode: time 8.12e-07/2.358, allocations: 0 / 1.391 GB, free: 42.66 MB / 0.6825 GB Notification: Performance of Templates: time 0.02144/2.38, allocations: 12.83 MB / 1.404 GB, free: 29.93 MB / 0.6825 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.sim & ./BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.pipe 2>&1)