Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Humidifiers.Examples.Humidifier_u.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.Fluid.Humidifiers.Examples.Humidifier_u,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Humidifiers_Examples_Humidifier_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Humidifiers.Examples.Humidifier_u,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Humidifiers_Examples_Humidifier_u",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.6984/0.6984, allocations: 141.8 MB / 149.1 MB, free: 3.953 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.001053/0.001053, allocations: 186 kB / 181.9 MB, free: 15.68 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.281/1.281, allocations: 221.3 MB / 436 MB, free: 8.812 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.00098/0.0009798, allocations: 102.8 kB / 0.507 GB, free: 24.2 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001763/0.001763, allocations: 282.8 kB / 0.5884 GB, free: 11.85 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1901/0.1919, allocations: 89.64 MB / 0.676 GB, free: 2.129 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3945/0.5865, allocations: 82.76 MB / 0.7568 GB, free: 112.5 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.473/4.06, allocations: 1.892 GB / 2.649 GB, free: 143.6 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002861/4.06, allocations: 91.17 kB / 2.649 GB, free: 143.6 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: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 3.168/7.228, allocations: 1.052 GB / 3.7 GB, free: 96.52 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/7.228, allocations: 7.75 kB / 3.7 GB, free: 96.52 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004103/7.232, allocations: 0.6376 MB / 3.701 GB, free: 96.41 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003366/7.236, allocations: 1.466 MB / 3.703 GB, free: 96.09 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000352/7.236, allocations: 124.5 kB / 3.703 GB, free: 96.08 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002234/7.236, allocations: 77.72 kB / 3.703 GB, free: 96.08 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001753/7.238, allocations: 1.019 MB / 3.704 GB, free: 96.07 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001818/7.24, allocations: 1.227 MB / 3.705 GB, free: 95.88 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.668e-05/7.24, allocations: 0 / 3.705 GB, free: 95.88 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001049/7.24, allocations: 3.781 kB / 3.705 GB, free: 95.88 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.18e-05/7.24, allocations: 45.03 kB / 3.705 GB, free: 95.87 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008457/7.248, allocations: 6.151 MB / 3.711 GB, free: 93.25 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007352/7.249, allocations: 0.5326 MB / 3.711 GB, free: 93.23 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005494/7.25, allocations: 463.1 kB / 3.712 GB, free: 93.21 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005805/7.25, allocations: 481.2 kB / 3.712 GB, free: 92.74 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006336/7.251, allocations: 0.4965 MB / 3.713 GB, free: 92.65 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=79): time 3.136e-06/7.251, allocations: 0 / 3.713 GB, free: 92.65 MB / 0.7138 GB Notification: Performance of matching and sorting (n=79): time 0.002802/7.254, allocations: 1.119 MB / 3.714 GB, free: 92.52 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.225e-05/7.254, allocations: 193.4 kB / 3.714 GB, free: 92.3 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001297/7.255, allocations: 0.9346 MB / 3.715 GB, free: 92.15 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 9.477e-05/7.255, allocations: 29.48 kB / 3.715 GB, free: 92.12 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.000368/7.256, allocations: 0.5029 MB / 3.716 GB, free: 91.84 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002209/7.256, allocations: 261 kB / 3.716 GB, free: 91.67 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.656e-05/7.256, allocations: 3.75 kB / 3.716 GB, free: 91.67 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 6.96e-05/7.256, allocations: 337.5 kB / 3.716 GB, free: 91.37 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004561/7.256, allocations: 336.9 kB / 3.716 GB, free: 91.37 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005856/7.257, allocations: 0.5741 MB / 3.717 GB, free: 91.09 MB / 0.7138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008734/7.258, allocations: 465.7 kB / 3.717 GB, free: 91.08 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.381e-06/7.258, allocations: 5.031 kB / 3.717 GB, free: 91.07 MB / 0.7138 GB Notification: Performance of matching and sorting (n=104) (initialization): time 0.002417/7.26, allocations: 1.117 MB / 3.719 GB, free: 90.95 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003585/7.261, allocations: 1.698 MB / 3.72 GB, free: 89.22 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/7.261, allocations: 2.938 kB / 3.72 GB, free: 89.22 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001954/7.261, allocations: 45.14 kB / 3.72 GB, free: 89.21 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000938/7.262, allocations: 207.1 kB / 3.72 GB, free: 89.21 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003711/7.262, allocations: 0.6046 MB / 3.721 GB, free: 88.69 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001719/7.264, allocations: 159.1 kB / 3.721 GB, free: 88.66 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001064/7.264, allocations: 40.97 kB / 3.721 GB, free: 88.66 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 9.277e-06/7.264, allocations: 3.625 kB / 3.721 GB, free: 88.66 MB / 0.7138 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001594/7.266, allocations: 0.9281 MB / 3.722 GB, free: 88.63 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/7.266, allocations: 4.219 kB / 3.722 GB, free: 88.63 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001322/7.266, allocations: 53.28 kB / 3.722 GB, free: 88.62 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008779/7.267, allocations: 204.1 kB / 3.722 GB, free: 88.62 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001176/7.268, allocations: 1.462 MB / 3.724 GB, free: 87.35 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001732/7.27, allocations: 158.8 kB / 3.724 GB, free: 87.32 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.865e-05/7.27, allocations: 39.84 kB / 3.724 GB, free: 87.32 MB / 0.7138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,TSet.a,TSet.b,TSet.last,$PRE.TSet.nextEvent,TSet.nextEvent,TSet.nextEventScaled,con2.I.trigger_internal,con1.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * 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 4} Notification: Performance of prepare postOptimizeDAE: time 0.0002962/7.27, allocations: 162.9 kB / 3.724 GB, free: 87.18 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002427/7.27, allocations: 152.9 kB / 3.724 GB, free: 87.11 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002186/7.273, allocations: 1.052 MB / 3.725 GB, free: 87.02 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/7.273, allocations: 7.125 kB / 3.725 GB, free: 87.02 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/7.273, allocations: 3.797 kB / 3.725 GB, free: 87.02 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001424/7.274, allocations: 0.9422 MB / 3.726 GB, free: 86.84 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004467/7.279, allocations: 2.548 MB / 3.729 GB, free: 86.43 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.8e-06/7.279, allocations: 3.406 kB / 3.729 GB, free: 86.43 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001013/7.28, allocations: 195 kB / 3.729 GB, free: 86.43 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001041/7.28, allocations: 43.45 kB / 3.729 GB, free: 86.42 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.663e-05/7.28, allocations: 11.47 kB / 3.729 GB, free: 86.42 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002861/7.28, allocations: 0.5924 MB / 3.73 GB, free: 85.9 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/7.28, allocations: 2.562 kB / 3.73 GB, free: 85.9 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002301/7.282, allocations: 1.829 MB / 3.731 GB, free: 85.4 MB / 0.7138 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003141/7.286, allocations: 2.895 MB / 3.734 GB, free: 84.51 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006357/7.286, allocations: 348.1 kB / 3.735 GB, free: 84.34 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002259/7.286, allocations: 6.312 kB / 3.735 GB, free: 84.34 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001232/7.288, allocations: 129.1 kB / 3.735 GB, free: 84.33 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.329e-05/7.288, allocations: 41.86 kB / 3.735 GB, free: 84.33 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.589e-05/7.288, allocations: 32.12 kB / 3.735 GB, free: 84.33 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.0009526/7.289, allocations: 0.7144 MB / 3.735 GB, free: 84.22 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.004806/7.294, allocations: 1.574 MB / 3.737 GB, free: 84.08 MB / 0.7138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (senTem1.T,con1.I.y,humDyn.vol.dynBal.U,humDyn.vol.dynBal.mXi[1],senTem2.T,con2.I.y) * Number of discrete variables: 6 ($whenCondition1,TSet.a,TSet.b,TSet.last,TSet.nextEvent,TSet.nextEventScaled) * Number of discrete states: 6 (TSet.nextEvent,TSet.last,TSet.nextEventScaled,TSet.b,TSet.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 68 * 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 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.003052/7.297, allocations: 2.654 MB / 3.74 GB, free: 83.25 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.002339/7.299, allocations: 1.525 MB / 3.741 GB, free: 83.06 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/7.299, allocations: 0 / 3.741 GB, free: 83.06 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.0006121/7.3, allocations: 498.5 kB / 3.742 GB, free: 83.03 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003244/7.303, allocations: 0.6671 MB / 3.742 GB, free: 83 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006224/7.309, allocations: 2.567 MB / 3.745 GB, free: 82.38 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001165/7.31, allocations: 1.492 MB / 3.746 GB, free: 81.66 MB / 0.7138 GB Notification: Performance of SimCode: time 5.41e-07/7.31, allocations: 0 / 3.746 GB, free: 81.66 MB / 0.7138 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Humidifiers.Examples.Humidifier_u.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Humidifiers.Examples.Humidifier_u.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Humidifiers.Examples.Humidifier_u.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Humidifiers.Examples.Humidifier_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Humidifiers_Examples_Humidifier_u_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Humidifiers_Examples_Humidifier_u.fmu > BuildingSystems_BuildingSystems.Fluid.Humidifiers.Examples.Humidifier_u.pipe 2>&1)