Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.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.LimPID,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPID",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.6664/0.6664, allocations: 128.7 MB / 143.7 MB, free: 2.332 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.001044/0.001044, allocations: 189.6 kB / 173.7 MB, free: 6.117 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.374/1.374, allocations: 205.4 MB / 409 MB, free: 10.49 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.0008284/0.0008283, allocations: 93.41 kB / 486.5 MB, free: 13 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004361/0.0004363, allocations: 8.688 kB / 0.5604 GB, free: 97.47 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1317, allocations: 76.76 MB / 0.6354 GB, free: 30.45 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4423/0.5741, allocations: 110.7 MB / 0.7435 GB, free: 36.69 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002814/0.5744, allocations: 86.27 kB / 0.7436 GB, free: 36.69 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.04855/0.623, allocations: 17.79 MB / 0.761 GB, free: 35.36 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.895e-06/0.6231, allocations: 0 / 0.761 GB, free: 35.36 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 9.32e-05/0.6232, allocations: 22.25 kB / 0.761 GB, free: 35.36 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.002497/0.6257, allocations: 1.084 MB / 0.7621 GB, free: 34.66 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/0.6257, allocations: 8.812 kB / 0.7621 GB, free: 34.66 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002002/0.6259, allocations: 93.34 kB / 0.7622 GB, free: 34.62 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002676/0.6262, allocations: 97.66 kB / 0.7623 GB, free: 34.57 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001147/0.6274, allocations: 0.5991 MB / 0.7629 GB, free: 34.27 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001223/0.6275, allocations: 102.6 kB / 0.763 GB, free: 34.2 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001039/0.6276, allocations: 57.41 kB / 0.763 GB, free: 34.2 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001188/0.6288, allocations: 0.6706 MB / 0.7637 GB, free: 34.02 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.6288, allocations: 1 kB / 0.7637 GB, free: 34.02 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.859e-05/0.6289, allocations: 21.22 kB / 0.7637 GB, free: 34.02 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.89e-05/0.6289, allocations: 12.31 kB / 0.7637 GB, free: 34.02 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0011/0.63, allocations: 0.4908 MB / 0.7642 GB, free: 34 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002909/0.633, allocations: 2.234 MB / 0.7664 GB, free: 32.93 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001423/0.6344, allocations: 0.6011 MB / 0.7669 GB, free: 32.88 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 4.181e-05/0.6344, allocations: 5.625 kB / 0.7669 GB, free: 32.88 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007461/0.6352, allocations: 324.3 kB / 0.7673 GB, free: 32.82 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=45): time 2.705e-06/0.6352, allocations: 0 / 0.7673 GB, free: 32.82 MB / 0.5105 GB Notification: Performance of matching and sorting (n=45): time 0.001635/0.6369, allocations: 0.7175 MB / 0.768 GB, free: 32.73 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.226e-05/0.6369, allocations: 190 kB / 0.7681 GB, free: 32.5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007552/0.6377, allocations: 0.5506 MB / 0.7687 GB, free: 32.38 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 5.913e-05/0.6378, allocations: 43.78 kB / 0.7687 GB, free: 32.34 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002189/0.638, allocations: 361.3 kB / 0.7691 GB, free: 32.2 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/0.6381, allocations: 152.8 kB / 0.7692 GB, free: 32.11 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.497e-05/0.6381, allocations: 9.594 kB / 0.7692 GB, free: 32.11 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.195e-05/0.6382, allocations: 329.3 kB / 0.7695 GB, free: 31.8 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000469/0.6387, allocations: 207.8 kB / 0.7697 GB, free: 31.79 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000526/0.6392, allocations: 355.9 kB / 0.7701 GB, free: 31.64 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005002/0.6397, allocations: 260.8 kB / 0.7703 GB, free: 31.6 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.6398, allocations: 0 / 0.7703 GB, free: 31.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001262/0.641, allocations: 0.6672 MB / 0.771 GB, free: 31.46 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002581/0.6413, allocations: 0.9942 MB / 0.7719 GB, free: 30.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/0.6413, allocations: 3.094 kB / 0.7719 GB, free: 30.43 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.488e-05/0.6413, allocations: 5.344 kB / 0.7719 GB, free: 30.43 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005098/0.6419, allocations: 125.5 kB / 0.7721 GB, free: 30.42 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.586e-05/0.6419, allocations: 13.52 kB / 0.7721 GB, free: 30.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005152/0.6424, allocations: 76.61 kB / 0.7722 GB, free: 30.39 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.993e-05/0.6425, allocations: 21.86 kB / 0.7722 GB, free: 30.39 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.084e-05/0.6425, allocations: 3.344 kB / 0.7722 GB, free: 30.39 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009136/0.6434, allocations: 0.4884 MB / 0.7727 GB, free: 30.33 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.6434, allocations: 7.438 kB / 0.7727 GB, free: 30.33 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/0.6434, allocations: 9.656 kB / 0.7727 GB, free: 30.32 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004215/0.6439, allocations: 100.4 kB / 0.7728 GB, free: 30.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.6439, allocations: 5.438 kB / 0.7728 GB, free: 30.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004353/0.6443, allocations: 61.75 kB / 0.7728 GB, free: 30.29 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.228e-05/0.6444, allocations: 20.36 kB / 0.7729 GB, free: 30.29 MB / 0.5105 GB 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 () * Number of clocked 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.0003383/0.6447, allocations: 284.8 kB / 0.7731 GB, free: 30.09 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001263/0.6449, allocations: 78.8 kB / 0.7732 GB, free: 30.05 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001612/0.645, allocations: 81.62 kB / 0.7733 GB, free: 30.03 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.954e-06/0.645, allocations: 3.688 kB / 0.7733 GB, free: 30.03 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.29e-05/0.6451, allocations: 0 / 0.7733 GB, free: 30.03 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.6451, allocations: 3.234 kB / 0.7733 GB, free: 30.03 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008655/0.646, allocations: 0.6549 MB / 0.7739 GB, free: 29.83 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.646, allocations: 3.953 kB / 0.7739 GB, free: 29.83 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004974/0.6465, allocations: 96.84 kB / 0.774 GB, free: 29.82 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.267e-06/0.6465, allocations: 9.047 kB / 0.774 GB, free: 29.82 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.01e-05/0.6465, allocations: 10.44 kB / 0.774 GB, free: 29.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.6465, allocations: 1.375 kB / 0.774 GB, free: 29.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.6466, allocations: 5.344 kB / 0.774 GB, free: 29.81 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001612/0.6482, allocations: 0.8366 MB / 0.7749 GB, free: 29.68 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000266/0.6484, allocations: 202.5 kB / 0.7751 GB, free: 29.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.625e-05/0.6486, allocations: 10.47 kB / 0.7751 GB, free: 29.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005219/0.6491, allocations: 65.17 kB / 0.7751 GB, free: 29.54 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/0.6492, allocations: 28.33 kB / 0.7752 GB, free: 29.54 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.263e-05/0.6492, allocations: 17.67 kB / 0.7752 GB, free: 29.54 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0007301/0.65, allocations: 437.1 kB / 0.7756 GB, free: 29.45 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.31e-07/0.65, allocations: 0 / 0.7756 GB, free: 29.45 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0009553/0.6509, allocations: 241.5 kB / 0.7758 GB, free: 29.41 MB / 0.5105 GB 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) * Number of clocked states: 0 () * 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.001738/0.6527, allocations: 1.413 MB / 0.7772 GB, free: 28.73 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001458/0.6542, allocations: 0.858 MB / 0.778 GB, free: 28.56 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.6542, allocations: 0 / 0.778 GB, free: 28.56 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.000426/0.6546, allocations: 254.3 kB / 0.7783 GB, free: 28.55 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008498/0.6555, allocations: 184.1 kB / 0.7785 GB, free: 28.54 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003321/0.6588, allocations: 3.319 MB / 0.7817 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001198/0.66, allocations: 0.9442 MB / 0.7826 GB, free: 41.26 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0004832/0.6605, allocations: 96.5 kB / 0.7827 GB, free: 41.24 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003638/0.6609, allocations: 277.5 kB / 0.783 GB, free: 41.23 MB / 0.5261 GB Notification: Performance of SimCode: time 7.42e-07/0.6609, allocations: 0 / 0.783 GB, free: 41.23 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02795/0.6889, allocations: 14.08 MB / 0.7967 GB, free: 40.26 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000154/0.6891, allocations: 183.8 kB / 0.7969 GB, free: 40.02 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.372/3.061, allocations: 3.094 kB / 0.7969 GB, free: 40.02 MB / 0.5261 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Controls_Continuous_Examples_LimPID.fmu > BuildSysPro_BuildSysPro.IBPSA.Controls.Continuous.Examples.LimPID.pipe 2>&1)