Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.Orifice.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: "" <> buildModelFMU(BuildingSystems.Airflow.Multizone.Examples.Orifice,fileNamePrefix="BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_Orifice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Airflow.Multizone.Examples.Orifice,fileNamePrefix="BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_Orifice",fmuType="me",version="2.0",platforms={"static"}) [: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.8184/0.8184, allocations: 141.8 MB / 149.1 MB, free: 12.15 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001365/0.001365, allocations: 176.2 kB / 181.9 MB, free: 8.918 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.507/1.507, allocations: 221.3 MB / 436 MB, free: 1.125 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.001045/0.001045, allocations: 99.62 kB / 0.507 GB, free: 10.11 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001919/0.001919, allocations: 272.1 kB / 0.5884 GB, free: 6.918 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.2251/0.227, allocations: 89.65 MB / 0.676 GB, free: 13.19 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4943/0.7214, allocations: 82.76 MB / 0.7568 GB, free: 138.1 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.948/4.67, allocations: 1.87 GB / 2.627 GB, free: 121.5 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003419/4.67, allocations: 99.17 kB / 2.627 GB, free: 121.4 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 1.064/5.735, allocations: 360.6 MB / 2.979 GB, free: 41.68 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 5.197e-05/5.735, allocations: 8 kB / 2.979 GB, free: 41.67 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001589/5.736, allocations: 195.1 kB / 2.979 GB, free: 41.48 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008231/5.737, allocations: 412 kB / 2.979 GB, free: 41.04 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.909e-05/5.737, allocations: 8 kB / 2.979 GB, free: 41.03 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.976e-05/5.737, allocations: 20 kB / 2.979 GB, free: 41.01 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004648/5.738, allocations: 265.1 kB / 2.98 GB, free: 40.75 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005027/5.738, allocations: 335.1 kB / 2.98 GB, free: 40.4 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.16e-05/5.738, allocations: 7.984 kB / 2.98 GB, free: 40.39 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.461e-05/5.738, allocations: 4 kB / 2.98 GB, free: 40.39 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.34e-05/5.738, allocations: 8 kB / 2.98 GB, free: 40.38 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002008/5.74, allocations: 1.631 MB / 2.982 GB, free: 38.64 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004122/5.741, allocations: 250.7 kB / 2.982 GB, free: 38.38 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001642/5.741, allocations: 128.7 kB / 2.982 GB, free: 38.25 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009005/5.742, allocations: 1.036 MB / 2.983 GB, free: 37 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.213e-05/5.742, allocations: 34.56 kB / 2.983 GB, free: 36.95 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=25): time 3.336e-06/5.742, allocations: 3.938 kB / 2.983 GB, free: 36.95 MB / 0.6982 GB Notification: Performance of matching and sorting (n=25): time 0.001224/5.743, allocations: 320.5 kB / 2.983 GB, free: 36.63 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.687e-05/5.743, allocations: 55.41 kB / 2.983 GB, free: 36.57 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002599/5.743, allocations: 254.1 kB / 2.984 GB, free: 36.31 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 3.018e-05/5.743, allocations: 25.7 kB / 2.984 GB, free: 36.28 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 8.812e-05/5.744, allocations: 164.3 kB / 2.984 GB, free: 36.12 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 8.32e-05/5.744, allocations: 90.66 kB / 2.984 GB, free: 36.03 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.36e-05/5.744, allocations: 0 / 2.984 GB, free: 36.03 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 0.0001008/5.744, allocations: 346.7 kB / 2.984 GB, free: 35.68 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/5.744, allocations: 60.47 kB / 2.984 GB, free: 35.62 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001264/5.744, allocations: 106 kB / 2.984 GB, free: 35.5 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003135/5.744, allocations: 132.7 kB / 2.984 GB, free: 35.37 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/5.744, allocations: 0 / 2.984 GB, free: 35.37 MB / 0.6982 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005404/5.745, allocations: 283 kB / 2.985 GB, free: 35.09 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/5.745, allocations: 8.031 kB / 2.985 GB, free: 35.08 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/5.745, allocations: 4 kB / 2.985 GB, free: 35.08 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.087e-05/5.745, allocations: 0 / 2.985 GB, free: 35.08 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002786/5.745, allocations: 59.81 kB / 2.985 GB, free: 35.02 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/5.745, allocations: 4 kB / 2.985 GB, free: 35.02 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002846/5.746, allocations: 31.83 kB / 2.985 GB, free: 34.98 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.152e-05/5.746, allocations: 12 kB / 2.985 GB, free: 34.97 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.823e-05/5.746, allocations: 115.2 kB / 2.985 GB, free: 34.86 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.837e-05/5.746, allocations: 35.53 kB / 2.985 GB, free: 34.82 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005938/5.746, allocations: 296.5 kB / 2.985 GB, free: 34.52 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/5.746, allocations: 8 kB / 2.985 GB, free: 34.52 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/5.746, allocations: 0 / 2.985 GB, free: 34.52 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/5.746, allocations: 0 / 2.985 GB, free: 34.52 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001262/5.748, allocations: 0.7978 MB / 2.986 GB, free: 33.65 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/5.748, allocations: 0 / 2.986 GB, free: 33.65 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002657/5.748, allocations: 51.92 kB / 2.986 GB, free: 33.6 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.886e-06/5.748, allocations: 4 kB / 2.986 GB, free: 33.59 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.585e-05/5.748, allocations: 15.98 kB / 2.986 GB, free: 33.58 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/5.748, allocations: 256 / 2.986 GB, free: 33.58 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/5.748, allocations: 8 kB / 2.986 GB, free: 33.57 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007971/5.749, allocations: 0.6062 MB / 2.987 GB, free: 32.88 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001128/5.75, allocations: 1.141 MB / 2.988 GB, free: 31.64 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001487/5.75, allocations: 136.5 kB / 2.988 GB, free: 31.49 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.419e-05/5.75, allocations: 4 kB / 2.988 GB, free: 31.49 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003241/5.751, allocations: 27.97 kB / 2.988 GB, free: 31.46 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.333e-05/5.751, allocations: 15.98 kB / 2.988 GB, free: 31.45 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.061e-05/5.751, allocations: 15.98 kB / 2.988 GB, free: 31.43 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0001762/5.751, allocations: 204.5 kB / 2.988 GB, free: 31.23 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.001616/5.752, allocations: 339.7 kB / 2.989 GB, free: 30.9 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 3 (ori.mExc,den1.d,den2.d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 25 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001956/5.754, allocations: 1.383 MB / 2.99 GB, free: 29.49 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.0003437/5.755, allocations: 175.7 kB / 2.99 GB, free: 29.32 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/5.755, allocations: 4 kB / 2.99 GB, free: 29.31 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0001402/5.755, allocations: 99.86 kB / 2.99 GB, free: 29.21 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008308/5.756, allocations: 136.3 kB / 2.99 GB, free: 29.09 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001508/5.757, allocations: 0.6708 MB / 2.991 GB, free: 28.36 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004085/5.758, allocations: 0.8687 MB / 2.992 GB, free: 27.46 MB / 0.6982 GB Notification: Performance of SimCode: time 5.11e-07/5.758, allocations: 0 / 2.992 GB, free: 27.46 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.Orifice.pipe ; mkfifo BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.Orifice.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.Orifice.pipe >> ../files/BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.Orifice.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_Orifice_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Airflow_Multizone_Examples_Orifice.fmu > BuildingSystems_BuildingSystems.Airflow.Multizone.Examples.Orifice.pipe 2>&1)