Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.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.FixedResistances.Examples.CheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve") translateModel(BuildingSystems.Fluid.FixedResistances.Examples.CheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve") [: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.7733/0.7733, allocations: 141.8 MB / 149.1 MB, free: 3.977 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.001132/0.001132, allocations: 177.1 kB / 181.9 MB, free: 15.7 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.49/1.49, allocations: 221.4 MB / 436 MB, free: 8.789 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.001074/0.001074, allocations: 108 kB / 0.507 GB, free: 24.26 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002045/0.002045, allocations: 273.6 kB / 0.5884 GB, free: 11.83 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 8.596e-06/9.037e-06, allocations: 4 kB / 0.6759 GB, free: 2.195 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4634/0.4634, allocations: 82.75 MB / 0.7567 GB, free: 112.4 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.677/1.14, allocations: 349.2 MB / 1.098 GB, free: 15.87 MB / 0.6357 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002385/1.141, allocations: 91.14 kB / 1.098 GB, free: 15.82 MB / 0.6357 GB Notification: Performance of FrontEnd: time 0.8601/2.001, allocations: 256 MB / 1.348 GB, free: 103.7 MB / 0.6982 GB Notification: Performance of Transformations before backend: time 4.219e-05/2.001, allocations: 16 kB / 1.348 GB, free: 103.7 MB / 0.6982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001306/2.002, allocations: 0.8363 MB / 1.349 GB, free: 102.8 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/2.002, allocations: 9.281 kB / 1.349 GB, free: 102.8 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001061/2.002, allocations: 67.19 kB / 1.349 GB, free: 102.8 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006678/2.003, allocations: 462.9 kB / 1.349 GB, free: 102.3 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.026e-05/2.003, allocations: 15.88 kB / 1.349 GB, free: 102.3 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.059e-05/2.003, allocations: 24 kB / 1.349 GB, free: 102.2 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003361/2.004, allocations: 189.3 kB / 1.349 GB, free: 102.1 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003453/2.004, allocations: 228.8 kB / 1.35 GB, free: 101.8 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/2.004, allocations: 8 kB / 1.35 GB, free: 101.8 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.755e-05/2.004, allocations: 0 / 1.35 GB, free: 101.8 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/2.004, allocations: 4 kB / 1.35 GB, free: 101.8 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001428/2.005, allocations: 1.238 MB / 1.351 GB, free: 100.5 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004408/2.006, allocations: 226.3 kB / 1.351 GB, free: 100.3 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001392/2.006, allocations: 101.2 kB / 1.351 GB, free: 100.2 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003147/2.006, allocations: 0.4986 MB / 1.352 GB, free: 99.55 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.827e-05/2.006, allocations: 42.5 kB / 1.352 GB, free: 99.5 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=25): time 1.703e-06/2.006, allocations: 0 / 1.352 GB, free: 99.5 MB / 0.6982 GB Notification: Performance of matching and sorting (n=25): time 0.0006415/2.007, allocations: 260.8 kB / 1.352 GB, free: 99.24 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.914e-05/2.007, allocations: 55.41 kB / 1.352 GB, free: 99.17 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003066/2.007, allocations: 353.2 kB / 1.352 GB, free: 98.82 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 3.105e-05/2.007, allocations: 33.91 kB / 1.352 GB, free: 98.78 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 8.125e-05/2.007, allocations: 180.6 kB / 1.353 GB, free: 98.6 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 4.868e-05/2.008, allocations: 86.7 kB / 1.353 GB, free: 98.51 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.517e-05/2.008, allocations: 0 / 1.353 GB, free: 98.51 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 8.027e-05/2.008, allocations: 354.8 kB / 1.353 GB, free: 98.16 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001297/2.008, allocations: 79.98 kB / 1.353 GB, free: 98.08 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001833/2.008, allocations: 186.5 kB / 1.353 GB, free: 97.86 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002637/2.008, allocations: 114.8 kB / 1.353 GB, free: 97.75 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/2.008, allocations: 0 / 1.353 GB, free: 97.75 MB / 0.6982 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006908/2.009, allocations: 348.5 kB / 1.354 GB, free: 97.4 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 6.745e-05/2.009, allocations: 274.8 kB / 1.354 GB, free: 97.11 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/2.009, allocations: 0 / 1.354 GB, free: 97.11 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002168/2.009, allocations: 48.86 kB / 1.354 GB, free: 97.06 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003662/2.01, allocations: 79.83 kB / 1.354 GB, free: 96.98 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003575/2.01, allocations: 0.5718 MB / 1.355 GB, free: 96.38 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005043/2.01, allocations: 63.8 kB / 1.355 GB, free: 96.32 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.089e-05/2.011, allocations: 16 kB / 1.355 GB, free: 96.3 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 5.851e-06/2.011, allocations: 4 kB / 1.355 GB, free: 96.3 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000441/2.011, allocations: 220.1 kB / 1.355 GB, free: 96.09 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.426e-06/2.011, allocations: 3.984 kB / 1.355 GB, free: 96.09 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.339e-06/2.011, allocations: 4 kB / 1.355 GB, free: 96.08 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003961/2.011, allocations: 87.89 kB / 1.355 GB, free: 96 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.665e-06/2.011, allocations: 4 kB / 1.355 GB, free: 95.99 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004381/2.012, allocations: 63.69 kB / 1.355 GB, free: 95.93 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.081e-05/2.012, allocations: 11.98 kB / 1.355 GB, free: 95.92 MB / 0.6982 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: checkValve_m_flow.a:VARIABLE(protected = true ) "Scaled pressure variable" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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 3} Notification: Performance of prepare postOptimizeDAE: time 0.0001306/2.012, allocations: 124.8 kB / 1.355 GB, free: 95.79 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.882e-05/2.012, allocations: 51.34 kB / 1.355 GB, free: 95.74 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000728/2.013, allocations: 347.1 kB / 1.356 GB, free: 95.39 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/2.013, allocations: 7.938 kB / 1.356 GB, free: 95.38 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/2.013, allocations: 0 / 1.356 GB, free: 95.38 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/2.013, allocations: 7.984 kB / 1.356 GB, free: 95.38 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/2.014, allocations: 0.8094 MB / 1.356 GB, free: 94.52 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/2.014, allocations: 0 / 1.356 GB, free: 94.52 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002481/2.014, allocations: 60.02 kB / 1.356 GB, free: 94.46 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001327/2.014, allocations: 36.84 kB / 1.356 GB, free: 94.42 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.285e-05/2.014, allocations: 11.98 kB / 1.356 GB, free: 94.41 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00025/2.015, allocations: 0.5679 MB / 1.357 GB, free: 93.81 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/2.015, allocations: 0 / 1.357 GB, free: 93.81 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000517/2.015, allocations: 474 kB / 1.357 GB, free: 93.29 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001417/2.015, allocations: 156.3 kB / 1.358 GB, free: 93.12 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.759e-05/2.015, allocations: 0 / 1.358 GB, free: 93.12 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003892/2.016, allocations: 47.86 kB / 1.358 GB, free: 93.07 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.166e-05/2.016, allocations: 23.91 kB / 1.358 GB, free: 93.05 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.49e-05/2.016, allocations: 12 kB / 1.358 GB, free: 93.04 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0002419/2.016, allocations: 274.9 kB / 1.358 GB, free: 92.77 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.0008476/2.017, allocations: 267.5 kB / 1.358 GB, free: 92.51 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006031/2.018, allocations: 369.1 kB / 1.359 GB, free: 92.17 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.0007065/2.018, allocations: 378.3 kB / 1.359 GB, free: 91.8 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 3.686e-06/2.018, allocations: 4 kB / 1.359 GB, free: 91.8 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.000225/2.019, allocations: 136.6 kB / 1.359 GB, free: 91.66 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001126/2.02, allocations: 218.1 kB / 1.359 GB, free: 91.45 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00116/2.021, allocations: 0.5938 MB / 1.36 GB, free: 90.83 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003465/2.021, allocations: 0.9137 MB / 1.361 GB, free: 89.89 MB / 0.6982 GB Notification: Performance of SimCode: time 3.31e-07/2.021, allocations: 0 / 1.361 GB, free: 89.89 MB / 0.6982 GB Notification: Performance of Templates: time 0.01685/2.038, allocations: 11.37 MB / 1.372 GB, free: 78.7 MB / 0.6982 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.sim & ./BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.pipe 2>&1)