Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.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.Controls.Continuous.Examples.LimPID,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.LimPID,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8576/0.8576, allocations: 141.8 MB / 149.3 MB, free: 9.223 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 187.7 kB / 182.2 MB, free: 9.473 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 221.5 MB / 436.4 MB, free: 13.37 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009162/0.0009161, allocations: 88.02 kB / 0.5074 GB, free: 10.18 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001867/0.001867, allocations: 279.6 kB / 0.5889 GB, free: 54.7 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.182e-05/2.181e-05, allocations: 4 kB / 0.6766 GB, free: 12.78 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4493/0.4494, allocations: 82.78 MB / 0.7575 GB, free: 31.95 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1459/0.5953, allocations: 115.9 MB / 0.8706 GB, free: 11.89 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002772/0.5957, allocations: 75.95 kB / 0.8707 GB, free: 11.82 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.04812/0.6438, allocations: 16.79 MB / 0.8871 GB, free: 11 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.453e-06/0.6438, allocations: 0 / 0.8871 GB, free: 11 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 9.34e-05/0.6439, allocations: 12 kB / 0.8871 GB, free: 10.99 MB / 0.5573 GB 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.002207/0.6462, allocations: 0.9509 MB / 0.8881 GB, free: 9.98 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.6462, allocations: 8.031 kB / 0.8881 GB, free: 9.973 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003989/0.6466, allocations: 106.8 kB / 0.8882 GB, free: 9.867 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001337/0.648, allocations: 0.5745 MB / 0.8887 GB, free: 9.254 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001286/0.6481, allocations: 80.7 kB / 0.8888 GB, free: 9.164 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001124/0.6482, allocations: 32 kB / 0.8888 GB, free: 9.133 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007431/0.649, allocations: 338.6 kB / 0.8892 GB, free: 8.801 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009114/0.6499, allocations: 0.5102 MB / 0.8897 GB, free: 8.238 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.843e-05/0.6499, allocations: 3.938 kB / 0.8897 GB, free: 8.234 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.894e-05/0.65, allocations: 3.984 kB / 0.8897 GB, free: 8.23 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.864e-05/0.6501, allocations: 16 kB / 0.8897 GB, free: 8.215 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003409/0.6535, allocations: 2.106 MB / 0.8917 GB, free: 6.039 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008759/0.6544, allocations: 430.8 kB / 0.8921 GB, free: 5.605 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002703/0.6547, allocations: 157.1 kB / 0.8923 GB, free: 5.449 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 5.255e-05/0.6548, allocations: 8.719 kB / 0.8923 GB, free: 5.441 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004522/0.6552, allocations: 237.6 kB / 0.8925 GB, free: 5.195 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=45): time 3.306e-06/0.6552, allocations: 0 / 0.8925 GB, free: 5.195 MB / 0.5573 GB Notification: Performance of matching and sorting (n=45): time 0.0007838/0.656, allocations: 393.3 kB / 0.8929 GB, free: 4.805 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.803e-05/0.6561, allocations: 183.9 kB / 0.8931 GB, free: 4.582 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007143/0.6569, allocations: 479.7 kB / 0.8935 GB, free: 4.109 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 7.304e-05/0.6569, allocations: 29.7 kB / 0.8936 GB, free: 4.074 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002938/0.6572, allocations: 364.6 kB / 0.8939 GB, free: 3.711 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001359/0.6574, allocations: 149.8 kB / 0.8941 GB, free: 3.562 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.502e-05/0.6574, allocations: 0 / 0.8941 GB, free: 3.562 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001549/0.6576, allocations: 382.8 kB / 0.8944 GB, free: 3.18 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002486/0.6578, allocations: 141.1 kB / 0.8946 GB, free: 3.039 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000327/0.6582, allocations: 258.7 kB / 0.8948 GB, free: 2.738 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002823/0.6585, allocations: 168.7 kB / 0.895 GB, free: 2.57 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.6585, allocations: 0 / 0.895 GB, free: 2.57 MB / 0.5573 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008295/0.6593, allocations: 486.9 kB / 0.8954 GB, free: 2.09 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003957/0.6597, allocations: 0.9909 MB / 0.8964 GB, free: 1.02 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.66e-05/0.6597, allocations: 4 kB / 0.8964 GB, free: 1.016 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.434e-05/0.6598, allocations: 7.938 kB / 0.8964 GB, free: 1.008 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005628/0.6603, allocations: 123.9 kB / 0.8965 GB, free: 0.8867 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.249e-05/0.6604, allocations: 8 kB / 0.8965 GB, free: 0.8789 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000553/0.661, allocations: 71.58 kB / 0.8966 GB, free: 0.8086 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.907e-05/0.661, allocations: 20 kB / 0.8966 GB, free: 0.7891 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.017e-05/0.661, allocations: 7.938 kB / 0.8966 GB, free: 0.7812 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006355/0.6617, allocations: 378.2 kB / 0.897 GB, free: 420 kB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.6617, allocations: 0 / 0.897 GB, free: 420 kB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/0.6617, allocations: 12.3 kB / 0.897 GB, free: 408 kB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004725/0.6622, allocations: 111.9 kB / 0.8971 GB, free: 296 kB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.996e-06/0.6622, allocations: 11.94 kB / 0.8971 GB, free: 284 kB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005284/0.6627, allocations: 59.7 kB / 0.8972 GB, free: 224 kB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.768e-05/0.6628, allocations: 23.95 kB / 0.8972 GB, free: 200 kB / 0.5573 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 () * 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.0002037/0.663, allocations: 121.8 kB / 0.8973 GB, free: 72 kB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.4039/1.067, allocations: 382.4 kB / 0.8977 GB, free: 128.2 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002884/1.067, allocations: 68.34 kB / 0.8977 GB, free: 128.2 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002998/1.068, allocations: 72.03 kB / 0.8978 GB, free: 128.2 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/1.068, allocations: 5.156 kB / 0.8978 GB, free: 128.2 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.334e-05/1.068, allocations: 1.031 kB / 0.8978 GB, free: 128.2 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.294e-05/1.068, allocations: 3.234 kB / 0.8978 GB, free: 128.2 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001335/1.069, allocations: 0.5791 MB / 0.8984 GB, free: 128 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/1.069, allocations: 0 / 0.8984 GB, free: 128 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006787/1.07, allocations: 99.08 kB / 0.8985 GB, free: 128 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-05/1.07, allocations: 1.875 kB / 0.8985 GB, free: 128 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.014e-05/1.07, allocations: 6.703 kB / 0.8985 GB, free: 128 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.035e-05/1.07, allocations: 4 kB / 0.8985 GB, free: 128 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/1.07, allocations: 1.719 kB / 0.8985 GB, free: 128 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00158/1.071, allocations: 0.6189 MB / 0.8991 GB, free: 127.9 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004531/1.072, allocations: 201.7 kB / 0.8993 GB, free: 127.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001718/1.072, allocations: 3.328 kB / 0.8993 GB, free: 127.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006985/1.073, allocations: 55.19 kB / 0.8993 GB, free: 127.8 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001554/1.073, allocations: 35.08 kB / 0.8994 GB, free: 127.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.809e-05/1.073, allocations: 15.97 kB / 0.8994 GB, free: 127.8 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0007969/1.074, allocations: 359.6 kB / 0.8997 GB, free: 127.7 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.2e-07/1.074, allocations: 0 / 0.8997 GB, free: 127.7 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001238/1.075, allocations: 214.5 kB / 0.8999 GB, free: 127.6 MB / 0.5573 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) * 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.001705/1.077, allocations: 1.18 MB / 0.9011 GB, free: 127 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001524/1.078, allocations: 0.7047 MB / 0.9018 GB, free: 126.9 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 6.882e-06/1.078, allocations: 3.156 kB / 0.9018 GB, free: 126.9 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0004684/1.079, allocations: 183.9 kB / 0.902 GB, free: 126.9 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001676/1.081, allocations: 161.6 kB / 0.9021 GB, free: 126.9 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004112/1.085, allocations: 0.9752 MB / 0.9031 GB, free: 126.5 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008173/1.086, allocations: 0.9362 MB / 0.904 GB, free: 125.8 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001035/1.087, allocations: 126.9 kB / 0.9041 GB, free: 125.8 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004424/1.087, allocations: 260.6 kB / 0.9043 GB, free: 125.8 MB / 0.5573 GB Notification: Performance of SimCode: time 1.223e-06/1.087, allocations: 0 / 0.9043 GB, free: 125.8 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0468/1.134, allocations: 13.66 MB / 0.9177 GB, free: 124.3 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002047/1.134, allocations: 143.8 kB / 0.9178 GB, free: 124.1 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.593/3.727, allocations: 0 / 0.9178 GB, free: 124.1 MB / 0.5573 GB (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPID.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPID.pipe 2>&1)