Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.MassExchangers.Examples.ConstantEffectiveness.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.MassExchangers.Examples.ConstantEffectiveness,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_MassExchangers_Examples_ConstantEffectiveness",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.MassExchangers.Examples.ConstantEffectiveness,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_MassExchangers_Examples_ConstantEffectiveness",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.7133/0.7133, allocations: 141.8 MB / 149.1 MB, free: 3.688 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.001118/0.001118, allocations: 193.5 kB / 181.9 MB, free: 15.46 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.246/1.246, allocations: 221.3 MB / 436 MB, free: 8.582 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.0008517/0.0008517, allocations: 92.09 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.001771/0.001771, allocations: 285.6 kB / 0.5884 GB, free: 11.64 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1631/0.1649, allocations: 89.64 MB / 0.676 GB, free: 1.918 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3349/0.4998, allocations: 82.76 MB / 0.7568 GB, free: 112.2 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.271/3.771, allocations: 1.855 GB / 2.612 GB, free: 219.9 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002778/3.771, allocations: 88.62 kB / 2.612 GB, free: 219.8 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: 209 * Number of variables: 209 Notification: Performance of Generate backend data structure: time 3.409/7.18, allocations: 1.012 GB / 3.624 GB, free: 100.7 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/7.18, allocations: 12.03 kB / 3.624 GB, free: 100.7 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003412/7.183, allocations: 0.5899 MB / 3.624 GB, free: 100.6 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00279/7.186, allocations: 1.082 MB / 3.625 GB, free: 100.3 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006/7.187, allocations: 184.3 kB / 3.626 GB, free: 100.3 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001478/7.187, allocations: 48.44 kB / 3.626 GB, free: 100.3 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001603/7.188, allocations: 1.014 MB / 3.627 GB, free: 100.3 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001503/7.19, allocations: 1.045 MB / 3.628 GB, free: 100.2 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.026e-05/7.19, allocations: 2.312 kB / 3.628 GB, free: 100.2 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.546e-05/7.19, allocations: 0 / 3.628 GB, free: 100.2 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.757e-05/7.19, allocations: 45.91 kB / 3.628 GB, free: 100.2 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006254/7.196, allocations: 4.109 MB / 3.632 GB, free: 98.75 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009665/7.197, allocations: 0.7235 MB / 3.632 GB, free: 98.71 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006028/7.198, allocations: 0.5072 MB / 3.633 GB, free: 98.71 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009191/7.199, allocations: 0.6126 MB / 3.634 GB, free: 98.14 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.39e-05/7.199, allocations: 48.31 kB / 3.634 GB, free: 98.11 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=76): time 2.695e-06/7.199, allocations: 0 / 3.634 GB, free: 98.11 MB / 0.7138 GB Notification: Performance of matching and sorting (n=76): time 0.002408/7.201, allocations: 1.196 MB / 3.635 GB, free: 98.02 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.248e-05/7.201, allocations: 59.16 kB / 3.635 GB, free: 97.96 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006322/7.202, allocations: 0.5649 MB / 3.635 GB, free: 97.84 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 8.613e-05/7.202, allocations: 25.7 kB / 3.635 GB, free: 97.8 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001624/7.202, allocations: 331.9 kB / 3.636 GB, free: 97.65 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001771/7.202, allocations: 245.2 kB / 3.636 GB, free: 97.52 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.066e-05/7.203, allocations: 0 / 3.636 GB, free: 97.52 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 7.69e-05/7.203, allocations: 337.6 kB / 3.636 GB, free: 97.21 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005471/7.203, allocations: 417 kB / 3.637 GB, free: 97.21 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006159/7.204, allocations: 0.5359 MB / 3.637 GB, free: 97.09 MB / 0.7138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001109/7.205, allocations: 0.6176 MB / 3.638 GB, free: 97.08 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/7.205, allocations: 0 / 3.638 GB, free: 97.08 MB / 0.7138 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001996/7.207, allocations: 1.219 MB / 3.639 GB, free: 96.99 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001123/7.207, allocations: 449.1 kB / 3.639 GB, free: 96.54 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/7.207, allocations: 6.594 kB / 3.639 GB, free: 96.54 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.095e-05/7.207, allocations: 2.875 kB / 3.639 GB, free: 96.54 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001666/7.209, allocations: 287.1 kB / 3.64 GB, free: 96.54 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005845/7.209, allocations: 1.209 MB / 3.641 GB, free: 95.37 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001452/7.211, allocations: 185 kB / 3.641 GB, free: 95.35 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001215/7.211, allocations: 41.41 kB / 3.641 GB, free: 95.35 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/7.211, allocations: 3.625 kB / 3.641 GB, free: 95.35 MB / 0.7138 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001939/7.213, allocations: 1.099 MB / 3.642 GB, free: 95.34 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/7.213, allocations: 3.781 kB / 3.642 GB, free: 95.34 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.656e-06/7.213, allocations: 3.938 kB / 3.642 GB, free: 95.34 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001302/7.214, allocations: 273 kB / 3.642 GB, free: 95.34 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/7.214, allocations: 5.844 kB / 3.642 GB, free: 95.34 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001392/7.216, allocations: 186.2 kB / 3.643 GB, free: 95.32 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001044/7.216, allocations: 39.41 kB / 3.643 GB, free: 95.32 MB / 0.7138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (hex.i1_w,hex.i2_w) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002668/7.216, allocations: 117.9 kB / 3.643 GB, free: 95.22 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001977/7.216, allocations: 97.19 kB / 3.643 GB, free: 95.17 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002373/7.219, allocations: 1.264 MB / 3.644 GB, free: 95.1 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/7.219, allocations: 7.625 kB / 3.644 GB, free: 95.1 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/7.219, allocations: 1.062 kB / 3.644 GB, free: 95.1 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/7.219, allocations: 7.797 kB / 3.644 GB, free: 95.1 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004179/7.223, allocations: 2.645 MB / 3.647 GB, free: 94.68 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.64e-06/7.223, allocations: 3.875 kB / 3.647 GB, free: 94.68 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001385/7.224, allocations: 272 kB / 3.647 GB, free: 94.68 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.2e-05/7.224, allocations: 6.531 kB / 3.647 GB, free: 94.68 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.56e-05/7.224, allocations: 19.94 kB / 3.647 GB, free: 94.68 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004064/7.225, allocations: 1.207 MB / 3.648 GB, free: 93.5 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/7.225, allocations: 13.06 kB / 3.648 GB, free: 93.5 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002047/7.227, allocations: 1.531 MB / 3.65 GB, free: 92.94 MB / 0.7138 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002482/7.229, allocations: 2.061 MB / 3.652 GB, free: 92 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005786/7.23, allocations: 307.3 kB / 3.652 GB, free: 91.86 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000168/7.23, allocations: 3.812 kB / 3.652 GB, free: 91.86 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001358/7.232, allocations: 170.9 kB / 3.652 GB, free: 91.86 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001238/7.232, allocations: 55.73 kB / 3.652 GB, free: 91.85 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.72e-05/7.232, allocations: 40.75 kB / 3.652 GB, free: 91.85 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.0005481/7.232, allocations: 449.6 kB / 3.653 GB, free: 91.76 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.004123/7.236, allocations: 1.284 MB / 3.654 GB, free: 91.73 MB / 0.7138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00335/7.24, allocations: 2.634 MB / 3.657 GB, free: 90.92 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.00298/7.243, allocations: 1.614 MB / 3.658 GB, free: 90.83 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 6.081e-06/7.243, allocations: 0 / 3.658 GB, free: 90.83 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.0008742/7.244, allocations: 0.5428 MB / 3.659 GB, free: 90.83 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002202/7.246, allocations: 406.4 kB / 3.659 GB, free: 90.82 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01539/7.261, allocations: 2.421 MB / 3.661 GB, free: 90.36 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001018/7.262, allocations: 1.237 MB / 3.663 GB, free: 89.64 MB / 0.7138 GB Notification: Performance of SimCode: time 1.212e-06/7.262, allocations: 2.562 kB / 3.663 GB, free: 89.64 MB / 0.7138 GB (rm -f BuildingSystems_BuildingSystems.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.MassExchangers.Examples.ConstantEffectiveness.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_MassExchangers_Examples_ConstantEffectiveness_fmu --startTime=0 --stopTime=360 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_MassExchangers_Examples_ConstantEffectiveness.fmu > BuildingSystems_BuildingSystems.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe 2>&1)