Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7375/0.7375, allocations: 128.7 MB / 143.7 MB, free: 2.309 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001318/0.001318, allocations: 182 kB / 173.7 MB, free: 6.129 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.389/1.389, allocations: 205.4 MB / 409 MB, free: 10.53 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008707/0.0008708, allocations: 88.28 kB / 486.5 MB, free: 13.02 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003113/0.0003113, allocations: 8.031 kB / 0.5604 GB, free: 97.5 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1411, allocations: 76.77 MB / 0.6354 GB, free: 30.48 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1331/0.2743, allocations: 110 MB / 0.7428 GB, free: 352 kB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002254/0.2746, allocations: 91.94 kB / 0.7429 GB, free: 260 kB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.3391/0.6137, allocations: 13.18 MB / 0.7558 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.874e-06/0.6138, allocations: 1.312 kB / 0.7558 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.000106/0.6139, allocations: 22.34 kB / 0.7558 GB, free: 108.5 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 148 * Number of variables: 148 Notification: Performance of Generate backend data structure: time 0.002905/0.6168, allocations: 0.9654 MB / 0.7567 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.411e-05/0.6169, allocations: 13.38 kB / 0.7567 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003427/0.6172, allocations: 103.7 kB / 0.7568 GB, free: 107.7 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004236/0.6177, allocations: 85.5 kB / 0.7569 GB, free: 107.7 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001385/0.6191, allocations: 0.5379 MB / 0.7574 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.93e-05/0.6192, allocations: 52.14 kB / 0.7575 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001621/0.6193, allocations: 59.72 kB / 0.7575 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001936/0.6213, allocations: 0.6638 MB / 0.7582 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.034e-05/0.6213, allocations: 9.281 kB / 0.7582 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.202e-05/0.6214, allocations: 23.81 kB / 0.7582 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.668e-05/0.6215, allocations: 13.94 kB / 0.7582 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00189/0.6234, allocations: 0.5229 MB / 0.7587 GB, free: 107 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005066/0.6284, allocations: 2.121 MB / 0.7608 GB, free: 106 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001657/0.6301, allocations: 0.5308 MB / 0.7613 GB, free: 105.8 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 4.837e-05/0.6302, allocations: 8.625 kB / 0.7613 GB, free: 105.8 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008858/0.6311, allocations: 303.8 kB / 0.7616 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=50): time 3.397e-06/0.6311, allocations: 0 / 0.7616 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=50): time 0.002246/0.6334, allocations: 0.7007 MB / 0.7623 GB, free: 105.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.268e-05/0.6334, allocations: 168.3 kB / 0.7625 GB, free: 105 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00078/0.6342, allocations: 407.9 kB / 0.7629 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 6.702e-05/0.6343, allocations: 35.98 kB / 0.7629 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002999/0.6346, allocations: 330 kB / 0.7632 GB, free: 104.5 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001901/0.6348, allocations: 161.8 kB / 0.7634 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.982e-05/0.6349, allocations: 10 kB / 0.7634 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001455/0.6351, allocations: 375.3 kB / 0.7637 GB, free: 104 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007217/0.6358, allocations: 204.7 kB / 0.7639 GB, free: 103.9 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007524/0.6366, allocations: 307.7 kB / 0.7642 GB, free: 103.7 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005452/0.6371, allocations: 257.4 kB / 0.7645 GB, free: 103.5 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.6371, allocations: 1.438 kB / 0.7645 GB, free: 103.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001323/0.6385, allocations: 0.6259 MB / 0.7651 GB, free: 103.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001673/0.6386, allocations: 0.6405 MB / 0.7657 GB, free: 102.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.6387, allocations: 6.438 kB / 0.7657 GB, free: 102.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.906e-05/0.6387, allocations: 4.125 kB / 0.7657 GB, free: 102.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005398/0.6392, allocations: 121.2 kB / 0.7658 GB, free: 102.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.526e-05/0.6393, allocations: 8.516 kB / 0.7658 GB, free: 102.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005533/0.6398, allocations: 87.05 kB / 0.7659 GB, free: 102.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.874e-05/0.6399, allocations: 17.53 kB / 0.7659 GB, free: 102.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/0.6399, allocations: 3.688 kB / 0.7659 GB, free: 102.4 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009294/0.6408, allocations: 0.5024 MB / 0.7664 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.6409, allocations: 1.469 kB / 0.7664 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.044e-05/0.6409, allocations: 4.281 kB / 0.7664 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004679/0.6414, allocations: 108.5 kB / 0.7665 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/0.6414, allocations: 4.469 kB / 0.7666 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004944/0.6419, allocations: 69.22 kB / 0.7666 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.842e-05/0.6419, allocations: 16.94 kB / 0.7666 GB, free: 102.1 MB / 0.5105 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 () * Number of clocked 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.0004392/0.6424, allocations: 298.2 kB / 0.7669 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001267/0.6425, allocations: 55.97 kB / 0.767 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001826/0.6427, allocations: 70.41 kB / 0.767 GB, free: 101.7 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.947e-06/0.6427, allocations: 9.5 kB / 0.767 GB, free: 101.7 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.073e-05/0.6427, allocations: 0 / 0.767 GB, free: 101.7 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/0.6427, allocations: 0 / 0.767 GB, free: 101.7 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002243/0.645, allocations: 1.32 MB / 0.7683 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.645, allocations: 0 / 0.7683 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000559/0.6456, allocations: 107.2 kB / 0.7684 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.306e-06/0.6456, allocations: 6.625 kB / 0.7684 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.803e-05/0.6456, allocations: 10.28 kB / 0.7685 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.629e-06/0.6457, allocations: 2.562 kB / 0.7685 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.6457, allocations: 0 / 0.7685 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001762/0.6474, allocations: 0.8973 MB / 0.7693 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002744/0.6477, allocations: 185.9 kB / 0.7695 GB, free: 100.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.646e-05/0.6478, allocations: 12.69 kB / 0.7695 GB, free: 100.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004299/0.6483, allocations: 46.11 kB / 0.7696 GB, free: 100.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.6484, allocations: 43.59 kB / 0.7696 GB, free: 100 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.28e-05/0.6484, allocations: 9.375 kB / 0.7696 GB, free: 100 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0005679/0.649, allocations: 321.8 kB / 0.7699 GB, free: 99.83 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.2e-07/0.649, allocations: 0 / 0.7699 GB, free: 99.83 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001133/0.6501, allocations: 269.8 kB / 0.7702 GB, free: 99.75 MB / 0.5105 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) * Number of clocked states: 0 () * 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.001833/0.652, allocations: 1.463 MB / 0.7716 GB, free: 98.7 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00153/0.6535, allocations: 0.8558 MB / 0.7724 GB, free: 98.25 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.6535, allocations: 0 / 0.7724 GB, free: 98.25 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0004427/0.654, allocations: 260.3 kB / 0.7727 GB, free: 98.14 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000774/0.6548, allocations: 148.2 kB / 0.7728 GB, free: 98.07 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006823/0.6616, allocations: 4.863 MB / 0.7776 GB, free: 93.31 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003415/0.662, allocations: 0.9062 MB / 0.7785 GB, free: 92.38 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0004088/0.6624, allocations: 72.53 kB / 0.7785 GB, free: 92.31 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002841/0.6627, allocations: 227.4 kB / 0.7788 GB, free: 92.09 MB / 0.5105 GB Notification: Performance of SimCode: time 1.312e-06/0.6627, allocations: 0 / 0.7788 GB, free: 92.09 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03087/0.6936, allocations: 12.19 MB / 0.7907 GB, free: 80.14 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001737/0.6938, allocations: 199 kB / 0.7909 GB, free: 79.88 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.265/2.959, allocations: 0 / 0.7909 GB, free: 79.88 MB / 0.5105 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPIDWithReset.fmu > BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)