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.7481/0.7481, allocations: 141.7 MB / 154.3 MB, free: 15.48 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009421/0.0009421, allocations: 183.7 kB / 187.3 MB, free: 11.86 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.289/1.289, allocations: 221.3 MB / 441.4 MB, free: 4.57 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.0009056/0.0009055, allocations: 93.8 kB / 0.5124 GB, free: 24.27 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001673/0.001673, allocations: 266.4 kB / 0.5939 GB, free: 7.945 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.623e-05/3.627e-05, allocations: 4 kB / 0.6835 GB, free: 12.12 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4175/0.4176, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1233/0.5409, allocations: 116.6 MB / 0.8782 GB, free: 7.93 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001936/0.5412, allocations: 83.88 kB / 0.8783 GB, free: 7.848 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.04458/0.5858, allocations: 16.89 MB / 0.8948 GB, free: 6.949 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.173e-06/0.5859, allocations: 0 / 0.8948 GB, free: 6.949 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 6.331e-05/0.5859, allocations: 16 kB / 0.8948 GB, free: 6.934 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.001497/0.5874, allocations: 0.9431 MB / 0.8957 GB, free: 5.934 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/0.5875, allocations: 12.03 kB / 0.8957 GB, free: 5.922 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001125/0.5876, allocations: 90.52 kB / 0.8958 GB, free: 5.824 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001597/0.5878, allocations: 94.83 kB / 0.8959 GB, free: 5.73 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009454/0.5887, allocations: 0.5862 MB / 0.8965 GB, free: 5.102 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001108/0.5888, allocations: 100.4 kB / 0.8966 GB, free: 4.988 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.844e-05/0.5889, allocations: 55.98 kB / 0.8966 GB, free: 4.934 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009087/0.5898, allocations: 0.5748 MB / 0.8972 GB, free: 4.309 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.5899, allocations: 4 kB / 0.8972 GB, free: 4.305 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.175e-05/0.5899, allocations: 20 kB / 0.8972 GB, free: 4.285 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.494e-05/0.5899, allocations: 12 kB / 0.8972 GB, free: 4.273 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006098/0.5906, allocations: 391.8 kB / 0.8976 GB, free: 3.891 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002817/0.5934, allocations: 2.211 MB / 0.8997 GB, free: 1.598 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008104/0.5942, allocations: 460.6 kB / 0.9002 GB, free: 1.133 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002581/0.5945, allocations: 169.6 kB / 0.9004 GB, free: 0.9648 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 4.399e-05/0.5945, allocations: 4 kB / 0.9004 GB, free: 0.9609 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004288/0.595, allocations: 253.9 kB / 0.9006 GB, free: 0.6992 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=45): time 2.805e-06/0.595, allocations: 4 kB / 0.9006 GB, free: 0.6953 MB / 0.5573 GB Notification: Performance of matching and sorting (n=45): time 0.0007111/0.5957, allocations: 416.9 kB / 0.901 GB, free: 288 kB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.945e-05/0.5958, allocations: 191.9 kB / 0.9012 GB, free: 52 kB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005881/0.5964, allocations: 0.5311 MB / 0.9017 GB, free: 15.51 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 4.68e-05/0.5964, allocations: 33.7 kB / 0.9017 GB, free: 15.47 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002408/0.5967, allocations: 360.9 kB / 0.9021 GB, free: 15.12 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001114/0.5968, allocations: 157.7 kB / 0.9022 GB, free: 14.96 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.537e-05/0.5968, allocations: 12 kB / 0.9022 GB, free: 14.95 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001086/0.597, allocations: 325.9 kB / 0.9025 GB, free: 14.62 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002643/0.5972, allocations: 153.1 kB / 0.9027 GB, free: 14.47 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003429/0.5976, allocations: 279.7 kB / 0.903 GB, free: 14.15 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002955/0.5979, allocations: 199.3 kB / 0.9032 GB, free: 13.95 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.5979, allocations: 0 / 0.9032 GB, free: 13.95 MB / 0.573 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.000791/0.5987, allocations: 0.5436 MB / 0.9037 GB, free: 13.39 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003607/0.5991, allocations: 0.9909 MB / 0.9046 GB, free: 12.32 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.5991, allocations: 4 kB / 0.9047 GB, free: 12.32 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.5991, allocations: 8 kB / 0.9047 GB, free: 12.31 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004997/0.5996, allocations: 119.8 kB / 0.9048 GB, free: 12.2 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.37e-05/0.5996, allocations: 4 kB / 0.9048 GB, free: 12.19 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004556/0.6001, allocations: 88.58 kB / 0.9049 GB, free: 12.11 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.814e-05/0.6001, allocations: 16 kB / 0.9049 GB, free: 12.09 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 9.648e-06/0.6002, allocations: 9.5 kB / 0.9049 GB, free: 12.08 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006856/0.6008, allocations: 464.2 kB / 0.9053 GB, free: 11.62 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.6009, allocations: 4 kB / 0.9053 GB, free: 11.62 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.163e-06/0.6009, allocations: 11.92 kB / 0.9053 GB, free: 11.61 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004691/0.6013, allocations: 115.8 kB / 0.9055 GB, free: 11.49 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.6014, allocations: 9.344 kB / 0.9055 GB, free: 11.48 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004065/0.6018, allocations: 83.56 kB / 0.9055 GB, free: 11.4 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.26e-05/0.6018, allocations: 16 kB / 0.9056 GB, free: 11.39 MB / 0.573 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.0001341/0.602, allocations: 136.9 kB / 0.9057 GB, free: 11.25 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.638e-05/0.6021, allocations: 75.06 kB / 0.9058 GB, free: 11.17 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001686/0.6022, allocations: 75 kB / 0.9058 GB, free: 11.09 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.6023, allocations: 4 kB / 0.9058 GB, free: 11.09 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/0.6023, allocations: 7.953 kB / 0.9058 GB, free: 11.08 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.6023, allocations: 7.922 kB / 0.9059 GB, free: 11.07 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006478/0.6029, allocations: 0.6453 MB / 0.9065 GB, free: 10.38 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.6029, allocations: 0 / 0.9065 GB, free: 10.38 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004607/0.6034, allocations: 95.88 kB / 0.9066 GB, free: 10.28 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.6034, allocations: 0 / 0.9066 GB, free: 10.28 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.63e-05/0.6035, allocations: 12 kB / 0.9066 GB, free: 10.27 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.666e-06/0.6035, allocations: 11.94 kB / 0.9066 GB, free: 10.26 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.6035, allocations: 4.062 kB / 0.9066 GB, free: 10.25 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009486/0.6044, allocations: 0.6612 MB / 0.9072 GB, free: 9.574 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002352/0.6047, allocations: 200.2 kB / 0.9074 GB, free: 9.359 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.181e-05/0.6048, allocations: 8 kB / 0.9074 GB, free: 9.352 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004927/0.6053, allocations: 67.94 kB / 0.9075 GB, free: 9.285 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.836e-05/0.6054, allocations: 27.95 kB / 0.9075 GB, free: 9.258 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.925e-05/0.6054, allocations: 19.98 kB / 0.9076 GB, free: 9.238 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0004557/0.6059, allocations: 427.1 kB / 0.908 GB, free: 8.828 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.8e-07/0.6059, allocations: 3.938 kB / 0.908 GB, free: 8.824 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0005729/0.6064, allocations: 239.2 kB / 0.9082 GB, free: 8.59 MB / 0.573 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.001276/0.6077, allocations: 1.214 MB / 0.9094 GB, free: 7.344 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.001097/0.6088, allocations: 0.7464 MB / 0.9101 GB, free: 6.57 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.6089, allocations: 0 / 0.9101 GB, free: 6.57 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002854/0.6091, allocations: 191.9 kB / 0.9103 GB, free: 6.383 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008149/0.61, allocations: 170.9 kB / 0.9105 GB, free: 6.219 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001876/0.6119, allocations: 1.018 MB / 0.9115 GB, free: 5.156 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004153/0.6123, allocations: 0.9352 MB / 0.9124 GB, free: 4.191 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0005571/0.6128, allocations: 135.9 kB / 0.9125 GB, free: 4.059 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003177/0.6132, allocations: 251.3 kB / 0.9127 GB, free: 3.812 MB / 0.573 GB Notification: Performance of SimCode: time 7.72e-07/0.6132, allocations: 4 kB / 0.9127 GB, free: 3.809 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3687/0.9819, allocations: 15 MB / 0.9274 GB, free: 136.4 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000154/0.9821, allocations: 153.9 kB / 0.9275 GB, free: 136.2 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.234/3.216, allocations: 0 / 0.9275 GB, free: 136.2 MB / 0.573 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)