Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.conf.json 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/IBPSA 4.0.0-master/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) 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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPIDWithReset",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/Complex 4.0.0+maint.om/package.mo): time 0.001548/0.001548, allocations: 190.5 kB / 7.807 MB, free: 2.434 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.458/0.458, allocations: 90.85 MB / 99.07 MB, free: 14.95 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.279/1.279, allocations: 221.4 MB / 342.7 MB, free: 5.203 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009189/0.000919, allocations: 91.89 kB / 415.5 MB, free: 6.418 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1775/0.1785, allocations: 78.44 MB / 493.9 MB, free: 7.98 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3759/0.5544, allocations: 72.31 MB / 0.553 GB, free: 73.32 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1292/0.6836, allocations: 107.3 MB / 0.6578 GB, free: 2.648 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002197/0.6839, allocations: 81.17 kB / 0.6579 GB, free: 2.57 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.0341/0.718, allocations: 12.91 MB / 0.6705 GB, free: 5.699 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.718, allocations: 8 kB / 0.6705 GB, free: 5.691 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001605/0.7182, allocations: 86.97 kB / 0.6706 GB, free: 5.605 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008733/0.7191, allocations: 0.5289 MB / 0.6711 GB, free: 5.031 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.869e-05/0.7191, allocations: 20 kB / 0.6711 GB, free: 5.012 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.035e-05/0.7192, allocations: 36 kB / 0.6711 GB, free: 4.977 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007922/0.72, allocations: 398.5 kB / 0.6715 GB, free: 4.59 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008922/0.7209, allocations: 0.5208 MB / 0.672 GB, free: 4.035 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.411e-05/0.721, allocations: 3.906 kB / 0.672 GB, free: 4.031 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.839e-05/0.721, allocations: 0 / 0.672 GB, free: 4.031 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.953e-05/0.721, allocations: 20 kB / 0.6721 GB, free: 4.012 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003131/0.7242, allocations: 1.991 MB / 0.674 GB, free: 1.969 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005662/0.7247, allocations: 302.7 kB / 0.6743 GB, free: 1.668 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003408/0.7251, allocations: 202.5 kB / 0.6745 GB, free: 1.465 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.165e-05/0.7252, allocations: 8.469 kB / 0.6745 GB, free: 1.453 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003759/0.7255, allocations: 228.4 kB / 0.6747 GB, free: 1.223 MB / 490.7 MB Notification: Performance of pre-optimization done (n=50): time 2.114e-06/0.7256, allocations: 1.594 kB / 0.6747 GB, free: 1.223 MB / 490.7 MB Notification: Performance of matching and sorting (n=50): time 0.0007411/0.7263, allocations: 391.3 kB / 0.6751 GB, free: 0.832 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.157e-05/0.7264, allocations: 166.7 kB / 0.6752 GB, free: 0.6328 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004275/0.7268, allocations: 349.2 kB / 0.6756 GB, free: 296 kB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.977e-05/0.7269, allocations: 29.64 kB / 0.6756 GB, free: 260 kB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001761/0.7271, allocations: 256.3 kB / 0.6758 GB, free: 0 / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001706/0.7272, allocations: 157.8 kB / 0.676 GB, free: 15.84 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.164e-05/0.7273, allocations: 0 / 0.676 GB, free: 15.84 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001713/0.7275, allocations: 366.8 kB / 0.6763 GB, free: 15.47 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002576/0.7277, allocations: 145.3 kB / 0.6765 GB, free: 15.33 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000355/0.7281, allocations: 247.1 kB / 0.6767 GB, free: 15.06 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002897/0.7284, allocations: 169.4 kB / 0.6769 GB, free: 14.89 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.7284, allocations: 4 kB / 0.6769 GB, free: 14.89 MB / 0.4948 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0007435/0.7291, allocations: 459.8 kB / 0.6773 GB, free: 14.43 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.7292, allocations: 7.984 kB / 0.6773 GB, free: 14.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.7292, allocations: 4 kB / 0.6773 GB, free: 14.42 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.7292, allocations: 4 kB / 0.6773 GB, free: 14.42 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005482/0.7297, allocations: 130 kB / 0.6775 GB, free: 14.29 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.415e-06/0.7298, allocations: 4 kB / 0.6775 GB, free: 14.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004251/0.7302, allocations: 67.64 kB / 0.6775 GB, free: 14.22 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.735e-05/0.7303, allocations: 30.66 kB / 0.6776 GB, free: 14.2 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.conPID.trigger,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001311/0.7304, allocations: 116.9 kB / 0.6777 GB, free: 14.07 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.388e-05/0.7305, allocations: 55.34 kB / 0.6777 GB, free: 14.02 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001203/0.7306, allocations: 57.19 kB / 0.6778 GB, free: 13.96 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.7306, allocations: 4 kB / 0.6778 GB, free: 13.96 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.7306, allocations: 0 / 0.6778 GB, free: 13.96 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/0.7306, allocations: 3.984 kB / 0.6778 GB, free: 13.96 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00156/0.7322, allocations: 1.107 MB / 0.6789 GB, free: 12.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.7322, allocations: 0 / 0.6789 GB, free: 12.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005801/0.7328, allocations: 111.9 kB / 0.679 GB, free: 12.69 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.438e-06/0.7328, allocations: 4 kB / 0.679 GB, free: 12.69 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.367e-05/0.7329, allocations: 7.984 kB / 0.679 GB, free: 12.68 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/0.7329, allocations: 7.938 kB / 0.679 GB, free: 12.67 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.7329, allocations: 48 / 0.679 GB, free: 12.67 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001034/0.7339, allocations: 0.7127 MB / 0.6797 GB, free: 11.95 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001456/0.7354, allocations: 1.31 MB / 0.681 GB, free: 10.62 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002145/0.7356, allocations: 176.3 kB / 0.6811 GB, free: 10.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.444e-05/0.7357, allocations: 8 kB / 0.6811 GB, free: 10.42 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004092/0.7361, allocations: 49.55 kB / 0.6812 GB, free: 10.37 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.997e-05/0.7362, allocations: 28.39 kB / 0.6812 GB, free: 10.34 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.948e-05/0.7363, allocations: 23.27 kB / 0.6812 GB, free: 10.32 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0003162/0.7366, allocations: 271.2 kB / 0.6815 GB, free: 10.06 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001062/0.7377, allocations: 131.5 kB / 0.6816 GB, free: 9.934 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.conPID.trigger,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001969/0.7379, allocations: 115.2 kB / 0.6817 GB, free: 9.809 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0007414/0.7386, allocations: 409.2 kB / 0.6821 GB, free: 9.406 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.7386, allocations: 0 / 0.6821 GB, free: 9.406 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0003524/0.739, allocations: 209.6 kB / 0.6823 GB, free: 9.199 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000705/0.7397, allocations: 119 kB / 0.6824 GB, free: 9.094 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003112/0.7428, allocations: 1.261 MB / 0.6837 GB, free: 7.797 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007662/0.7436, allocations: 0.9609 MB / 0.6846 GB, free: 6.809 MB / 0.4948 GB Notification: Performance of SimCode: time 3.31e-07/0.7436, allocations: 0 / 0.6846 GB, free: 6.809 MB / 0.4948 GB (rm -f IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPIDWithReset.fmu > IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)