Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.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.LimPID,fileNamePrefix="IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Controls.Continuous.Examples.LimPID,fileNamePrefix="IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009574/0.0009575, allocations: 176.7 kB / 8.008 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4833/0.4833, allocations: 90.91 MB / 99.34 MB, free: 2.203 MB / 74.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 221.5 MB / 343.2 MB, free: 1.586 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008604/0.0008604, allocations: 91.19 kB / 415.9 MB, free: 11.19 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.565e-05/1.565e-05, allocations: 0 / 494.6 MB, free: 52.32 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1245, allocations: 72.31 MB / 0.5536 GB, free: 12.21 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4478/0.5724, allocations: 108.8 MB / 0.6598 GB, free: 1.316 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002951/0.5727, allocations: 83.5 kB / 0.6599 GB, free: 1.273 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04406/0.6168, allocations: 16.8 MB / 0.6763 GB, free: 3.348 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.6168, allocations: 0 / 0.6763 GB, free: 3.348 MB / 474.7 MB Notification: Performance of Transformations before backend: time 7.302e-05/0.6169, allocations: 16 kB / 0.6763 GB, free: 3.332 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.00166/0.6186, allocations: 0.9446 MB / 0.6773 GB, free: 2.383 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.6186, allocations: 8.031 kB / 0.6773 GB, free: 2.375 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002511/0.6189, allocations: 94.88 kB / 0.6774 GB, free: 2.281 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009349/0.6198, allocations: 0.5798 MB / 0.6779 GB, free: 1.754 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001116/0.6199, allocations: 88.64 kB / 0.678 GB, free: 1.652 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.929e-05/0.62, allocations: 39.2 kB / 0.6781 GB, free: 1.617 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005873/0.6206, allocations: 338.9 kB / 0.6784 GB, free: 1.426 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007694/0.6214, allocations: 0.5078 MB / 0.6789 GB, free: 1 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.6214, allocations: 3.938 kB / 0.6789 GB, free: 0.9961 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.981e-05/0.6215, allocations: 0 / 0.6789 GB, free: 0.9961 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/0.6215, allocations: 16 kB / 0.6789 GB, free: 0.9805 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002931/0.6245, allocations: 2.102 MB / 0.6809 GB, free: 15.16 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000747/0.6252, allocations: 440.2 kB / 0.6814 GB, free: 14.88 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002223/0.6254, allocations: 154.3 kB / 0.6815 GB, free: 14.79 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.567e-05/0.6255, allocations: 4.719 kB / 0.6815 GB, free: 14.78 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004044/0.6259, allocations: 235.8 kB / 0.6817 GB, free: 14.61 MB / 490.7 MB Notification: Performance of pre-optimization done (n=45): time 1.744e-06/0.6259, allocations: 0 / 0.6817 GB, free: 14.61 MB / 490.7 MB Notification: Performance of matching and sorting (n=45): time 0.0006762/0.6266, allocations: 381.2 kB / 0.6821 GB, free: 14.32 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/0.6267, allocations: 195.2 kB / 0.6823 GB, free: 14.09 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005525/0.6273, allocations: 475.7 kB / 0.6827 GB, free: 13.73 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 5.457e-05/0.6273, allocations: 33.08 kB / 0.6828 GB, free: 13.7 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002379/0.6276, allocations: 362.8 kB / 0.6831 GB, free: 13.47 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001136/0.6277, allocations: 155.3 kB / 0.6833 GB, free: 13.34 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.508e-05/0.6277, allocations: 0 / 0.6833 GB, free: 13.34 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.6279, allocations: 383.1 kB / 0.6836 GB, free: 12.98 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002155/0.6281, allocations: 134 kB / 0.6838 GB, free: 12.91 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002915/0.6284, allocations: 269.2 kB / 0.684 GB, free: 12.67 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000242/0.6287, allocations: 164.3 kB / 0.6842 GB, free: 12.58 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.6287, allocations: 4 kB / 0.6842 GB, free: 12.57 MB / 490.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.000695/0.6294, allocations: 477.8 kB / 0.6846 GB, free: 12.22 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003738/0.6298, allocations: 0.9875 MB / 0.6856 GB, free: 11.16 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.6298, allocations: 4 kB / 0.6856 GB, free: 11.16 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.126e-05/0.6298, allocations: 4 kB / 0.6856 GB, free: 11.16 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000518/0.6304, allocations: 125.4 kB / 0.6857 GB, free: 11.04 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.749e-06/0.6304, allocations: 4 kB / 0.6857 GB, free: 11.04 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004757/0.6309, allocations: 71.48 kB / 0.6858 GB, free: 10.96 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.234e-05/0.6309, allocations: 27.45 kB / 0.6858 GB, free: 10.94 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.034e-05/0.6309, allocations: 7.938 kB / 0.6858 GB, free: 10.93 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005806/0.6315, allocations: 382.7 kB / 0.6862 GB, free: 10.68 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/0.6315, allocations: 0 / 0.6862 GB, free: 10.68 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.516e-06/0.6315, allocations: 11.98 kB / 0.6862 GB, free: 10.66 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004472/0.632, allocations: 112 kB / 0.6863 GB, free: 10.56 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.632, allocations: 15.91 kB / 0.6863 GB, free: 10.54 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004226/0.6324, allocations: 51.72 kB / 0.6864 GB, free: 10.49 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.635e-05/0.6325, allocations: 18.69 kB / 0.6864 GB, free: 10.48 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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.0001395/0.6326, allocations: 124.8 kB / 0.6865 GB, free: 10.35 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005469/0.6332, allocations: 391.7 kB / 0.6869 GB, free: 10.06 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.08e-05/0.6333, allocations: 71.16 kB / 0.687 GB, free: 9.988 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00013/0.6334, allocations: 68.48 kB / 0.687 GB, free: 9.953 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.6334, allocations: 4 kB / 0.687 GB, free: 9.949 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.421e-06/0.6334, allocations: 0 / 0.687 GB, free: 9.949 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.6335, allocations: 3.984 kB / 0.687 GB, free: 9.945 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005984/0.6341, allocations: 0.582 MB / 0.6876 GB, free: 9.469 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.6341, allocations: 0 / 0.6876 GB, free: 9.469 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005001/0.6346, allocations: 107.3 kB / 0.6877 GB, free: 9.367 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.802e-06/0.6346, allocations: 4 kB / 0.6877 GB, free: 9.363 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.231e-05/0.6346, allocations: 2.875 kB / 0.6877 GB, free: 9.363 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.6347, allocations: 4 kB / 0.6877 GB, free: 9.359 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.6347, allocations: 0 / 0.6877 GB, free: 9.359 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008264/0.6355, allocations: 0.6212 MB / 0.6883 GB, free: 8.926 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000224/0.6357, allocations: 194.2 kB / 0.6885 GB, free: 8.746 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.325e-05/0.6358, allocations: 11.94 kB / 0.6885 GB, free: 8.734 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004986/0.6363, allocations: 51.95 kB / 0.6886 GB, free: 8.684 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.114e-05/0.6364, allocations: 35.64 kB / 0.6886 GB, free: 8.656 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.648e-05/0.6365, allocations: 11.98 kB / 0.6886 GB, free: 8.645 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003758/0.6368, allocations: 369.1 kB / 0.689 GB, free: 8.379 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6368, allocations: 0 / 0.689 GB, free: 8.379 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0006148/0.6375, allocations: 211.1 kB / 0.6892 GB, free: 8.172 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * 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.00112/0.6386, allocations: 1.182 MB / 0.6903 GB, free: 7.168 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0009089/0.6395, allocations: 0.7007 MB / 0.691 GB, free: 6.656 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.6395, allocations: 5.25 kB / 0.691 GB, free: 6.652 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002458/0.6398, allocations: 178 kB / 0.6912 GB, free: 6.531 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008067/0.6406, allocations: 170 kB / 0.6913 GB, free: 6.367 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00187/0.6425, allocations: 0.9619 MB / 0.6923 GB, free: 5.363 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004269/0.6429, allocations: 0.9308 MB / 0.6932 GB, free: 4.406 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0005659/0.6435, allocations: 131.5 kB / 0.6933 GB, free: 4.273 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003194/0.6438, allocations: 255.4 kB / 0.6936 GB, free: 4.023 MB / 490.7 MB Notification: Performance of SimCode: time 5.61e-07/0.6438, allocations: 0 / 0.6936 GB, free: 4.023 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03647/0.6803, allocations: 13.64 MB / 0.7069 GB, free: 6.488 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001755/0.6805, allocations: 128.5 kB / 0.707 GB, free: 6.293 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.303/2.983, allocations: 4 kB / 0.707 GB, free: 6.289 MB / 0.4948 GB (rm -f IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe >> ../files/IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPID.fmu > IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPID.pipe 2>&1)