Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.Movers.Examples.FlowMachine_y_linear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Running command: translateModel(Buildings.Fluid.Movers.Examples.FlowMachine_y_linear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Movers.Examples.FlowMachine_y_linear") translateModel(Buildings.Fluid.Movers.Examples.FlowMachine_y_linear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Movers.Examples.FlowMachine_y_linear") [: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/Buildings 1.6.0+build.1/package.mo): time 0.4982/0.4982, allocations: 94.74 MB / 102 MB, free: 10.37 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001258/0.001258, allocations: 176.6 kB / 125.3 MB, free: 12 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.365/1.365, allocations: 170.5 MB / 319 MB, free: 9.523 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001715/0.001715, allocations: 105.2 kB / 381 MB, free: 18.1 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.106e-05/1.109e-05, allocations: 224 / 448.6 MB, free: 2.141 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1727/0.1728, allocations: 61.52 MB / 0.4981 GB, free: 4.527 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.298/1.471, allocations: 439 MB / 0.9268 GB, free: 179.9 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003431/1.472, allocations: 84.47 kB / 0.9269 GB, free: 179.9 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.497/2.968, allocations: 435.8 MB / 1.352 GB, free: 79.29 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.000314/2.969, allocations: 39.45 kB / 1.352 GB, free: 79.29 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 229 * Number of variables: 229 Notification: Performance of Generate backend data structure: time 0.007586/2.976, allocations: 1.953 MB / 1.354 GB, free: 78.51 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/2.976, allocations: 10.06 kB / 1.354 GB, free: 78.51 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001874/2.978, allocations: 216.5 kB / 1.355 GB, free: 78.42 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006034/2.984, allocations: 1.774 MB / 1.356 GB, free: 78.12 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002743/2.984, allocations: 120.3 kB / 1.356 GB, free: 78.05 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003743/2.985, allocations: 63.91 kB / 1.357 GB, free: 78.05 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002548/2.987, allocations: 1.612 MB / 1.358 GB, free: 78.05 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00209/2.989, allocations: 1.459 MB / 1.36 GB, free: 77.81 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.543e-05/2.989, allocations: 3.906 kB / 1.36 GB, free: 77.8 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001294/2.99, allocations: 7.609 kB / 1.36 GB, free: 77.8 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.177e-05/2.99, allocations: 24.66 kB / 1.36 GB, free: 77.8 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008288/2.998, allocations: 6.556 MB / 1.366 GB, free: 74.29 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003935/3.002, allocations: 1.625 MB / 1.368 GB, free: 74.27 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008339/3.003, allocations: 0.6515 MB / 1.368 GB, free: 74.25 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005612/3.008, allocations: 4.194 MB / 1.372 GB, free: 71.31 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.63e-05/3.008, allocations: 44.56 kB / 1.372 GB, free: 71.27 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=49): time 3.316e-06/3.008, allocations: 3.516 kB / 1.372 GB, free: 71.27 MB / 0.5261 GB Notification: Performance of matching and sorting (n=49): time 0.004238/3.013, allocations: 1.841 MB / 1.374 GB, free: 71.15 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.109e-05/3.013, allocations: 169.1 kB / 1.374 GB, free: 70.96 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001475/3.014, allocations: 1.042 MB / 1.375 GB, free: 70.78 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001375/3.014, allocations: 33.55 kB / 1.375 GB, free: 70.75 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003637/3.015, allocations: 0.5277 MB / 1.376 GB, free: 70.44 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001889/3.015, allocations: 169.5 kB / 1.376 GB, free: 70.34 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001325/3.015, allocations: 7.219 kB / 1.376 GB, free: 70.34 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001051/3.015, allocations: 362.7 kB / 1.376 GB, free: 70.03 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001362/3.017, allocations: 1.057 MB / 1.377 GB, free: 70.03 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001464/3.018, allocations: 1.393 MB / 1.379 GB, free: 69.64 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002967/3.021, allocations: 1.264 MB / 1.38 GB, free: 69.62 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.386e-06/3.021, allocations: 3.875 kB / 1.38 GB, free: 69.62 MB / 0.5261 GB Notification: Performance of matching and sorting (n=181) (initialization): time 0.006413/3.028, allocations: 3.324 MB / 1.383 GB, free: 69.49 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008779/3.028, allocations: 3.577 MB / 1.387 GB, free: 65.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.303e-05/3.028, allocations: 13.25 kB / 1.387 GB, free: 65.77 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001371/3.03, allocations: 0.9795 MB / 1.388 GB, free: 65.77 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009347/3.031, allocations: 222.5 kB / 1.388 GB, free: 65.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002252/3.033, allocations: 1.627 MB / 1.389 GB, free: 65.24 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002753/3.036, allocations: 220.2 kB / 1.39 GB, free: 65.16 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004083/3.036, allocations: 157.2 kB / 1.39 GB, free: 65.16 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/3.036, allocations: 3.969 kB / 1.39 GB, free: 65.16 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006331/3.043, allocations: 3.014 MB / 1.393 GB, free: 65.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.139e-05/3.043, allocations: 7.781 kB / 1.393 GB, free: 65.12 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002314/3.045, allocations: 1.091 MB / 1.394 GB, free: 65.12 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007782/3.046, allocations: 207.7 kB / 1.394 GB, free: 65.12 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01521/3.061, allocations: 7.498 MB / 1.401 GB, free: 62.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002225/3.063, allocations: 175.1 kB / 1.402 GB, free: 62.09 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003197/3.064, allocations: 136.1 kB / 1.402 GB, free: 62.09 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 8 (pumFixDp.curve,pumFixDp.haveMinimumDecrease,pumFixDp.haveDPMax,pumFixDp.haveVMax,pumFixM_flow.curve,pumFixM_flow.haveMinimumDecrease,pumFixM_flow.haveDPMax,pumFixM_flow.haveVMax) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 4 * 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 4} Notification: Performance of prepare postOptimizeDAE: time 0.0005914/3.064, allocations: 151.8 kB / 1.402 GB, free: 61.98 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003295/3.065, allocations: 129.1 kB / 1.402 GB, free: 61.91 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003016/3.068, allocations: 1.158 MB / 1.403 GB, free: 61.8 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-05/3.068, allocations: 5.938 kB / 1.403 GB, free: 61.8 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/3.068, allocations: 0 / 1.403 GB, free: 61.8 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.795e-06/3.068, allocations: 4.953 kB / 1.403 GB, free: 61.8 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001551/3.069, allocations: 0.8448 MB / 1.404 GB, free: 61.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/3.069, allocations: 0 / 1.404 GB, free: 61.62 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004206/3.07, allocations: 108.6 kB / 1.404 GB, free: 61.62 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004188/3.07, allocations: 294.5 kB / 1.404 GB, free: 61.61 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.768e-05/3.07, allocations: 12.91 kB / 1.404 GB, free: 61.61 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008784/3.071, allocations: 0.8675 MB / 1.405 GB, free: 61.09 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/3.071, allocations: 0 / 1.405 GB, free: 61.09 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002566/3.074, allocations: 1.13 MB / 1.406 GB, free: 60.83 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006399/3.074, allocations: 315.9 kB / 1.407 GB, free: 60.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001872/3.074, allocations: 0 / 1.407 GB, free: 60.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006286/3.075, allocations: 46.59 kB / 1.407 GB, free: 60.66 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001509/3.075, allocations: 38.91 kB / 1.407 GB, free: 60.65 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.346e-05/3.075, allocations: 41.03 kB / 1.407 GB, free: 60.65 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.001098/3.076, allocations: 0.7336 MB / 1.407 GB, free: 60.54 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004054/3.08, allocations: 1.018 MB / 1.408 GB, free: 60.39 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 50 * 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 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.001958/3.082, allocations: 0.9208 MB / 1.409 GB, free: 60.17 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.006415/3.089, allocations: 4.771 MB / 1.414 GB, free: 59.8 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/3.089, allocations: 4.781 kB / 1.414 GB, free: 59.8 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0005629/3.089, allocations: 322.2 kB / 1.414 GB, free: 59.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002875/3.092, allocations: 0.4929 MB / 1.415 GB, free: 59.78 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004234/3.097, allocations: 1.65 MB / 1.416 GB, free: 59.32 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001228/3.098, allocations: 1.369 MB / 1.418 GB, free: 58.6 MB / 0.5261 GB Notification: Performance of SimCode: time 2.094e-06/3.098, allocations: 0 / 1.418 GB, free: 58.6 MB / 0.5261 GB Notification: Performance of Templates: time 0.07813/3.176, allocations: 41.62 MB / 1.458 GB, free: 53.89 MB / 0.5261 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Movers.Examples.FlowMachine_y_linear.makefile (rm -f Buildings_1.6_Buildings.Fluid.Movers.Examples.FlowMachine_y_linear.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Movers.Examples.FlowMachine_y_linear.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Movers.Examples.FlowMachine_y_linear.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Movers.Examples.FlowMachine_y_linear.sim & ./Buildings_1.6_Buildings.Fluid.Movers.Examples.FlowMachine_y_linear -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Movers.Examples.FlowMachine_y_linear.pipe 2>&1)