Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Controls.Continuous.Examples.LimPID.conf.json 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/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_8_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_8_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001478/0.001478, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001619/0.00162, allocations: 199.1 kB / 16.64 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.392/1.392, allocations: 205.1 MB / 222.5 MB, free: 4.574 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.695/1.695, allocations: 292.3 MB / 0.549 GB, free: 12.74 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001695/0.001695, allocations: 69.94 kB / 0.6718 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2076/0.2093, allocations: 114.5 MB / 0.7836 GB, free: 13.29 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005075/0.2144, allocations: 3.74 MB / 0.7873 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002629/0.2171, allocations: 1.368 MB / 0.7886 GB, free: 8.145 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005818/0.2177, allocations: 31.81 kB / 0.7887 GB, free: 8.113 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0003834/0.2181, allocations: 126.6 kB / 0.7888 GB, free: 7.988 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0006894/0.2188, allocations: 174.5 kB / 0.7889 GB, free: 7.816 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.001243/0.22, allocations: 0.5712 MB / 0.7895 GB, free: 7.254 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.001297/0.2214, allocations: 0.9759 MB / 0.7905 GB, free: 6.273 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006465/0.222, allocations: 345.8 kB / 0.7908 GB, free: 5.918 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006022/0.2226, allocations: 362.5 kB / 0.7911 GB, free: 5.562 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005273/0.2232, allocations: 358 kB / 0.7915 GB, free: 5.211 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0002084/0.2234, allocations: 76 kB / 0.7915 GB, free: 5.137 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001603/0.2235, allocations: 80 kB / 0.7916 GB, free: 5.059 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001814/0.2237, allocations: 183.2 kB / 0.7918 GB, free: 4.879 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0004207/0.2242, allocations: 377.7 kB / 0.7922 GB, free: 4.508 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0008809/0.2251, allocations: 0.8795 MB / 0.793 GB, free: 3.625 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.2251, allocations: 7.984 kB / 0.793 GB, free: 3.617 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.773e-06/0.2251, allocations: 0 / 0.793 GB, free: 3.617 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.837e-05/0.2251, allocations: 4 kB / 0.793 GB, free: 3.613 MB / 0.6075 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.002206/0.2273, allocations: 1.187 MB / 0.7942 GB, free: 2.371 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.2274, allocations: 8.031 kB / 0.7942 GB, free: 2.363 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001043/0.2275, allocations: 98.69 kB / 0.7943 GB, free: 2.258 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001644/0.2277, allocations: 95.81 kB / 0.7944 GB, free: 2.164 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00104/0.2287, allocations: 0.6259 MB / 0.795 GB, free: 1.492 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001008/0.2288, allocations: 96.97 kB / 0.7951 GB, free: 1.387 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.963e-05/0.2289, allocations: 56.31 kB / 0.7951 GB, free: 1.332 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001074/0.23, allocations: 0.6001 MB / 0.7957 GB, free: 0.6914 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.23, allocations: 0 / 0.7957 GB, free: 0.6914 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.345e-05/0.2301, allocations: 24 kB / 0.7957 GB, free: 0.668 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/0.2301, allocations: 16 kB / 0.7958 GB, free: 0.6523 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009754/0.2311, allocations: 423.6 kB / 0.7962 GB, free: 240 kB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002906/0.234, allocations: 2.102 MB / 0.7982 GB, free: 14.05 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001181/0.2352, allocations: 0.4952 MB / 0.7987 GB, free: 13.55 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004504/0.2357, allocations: 229.6 kB / 0.7989 GB, free: 13.32 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 4.43e-05/0.2357, allocations: 7.984 kB / 0.7989 GB, free: 13.31 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006359/0.2364, allocations: 278 kB / 0.7992 GB, free: 13.03 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=45): time 2.385e-06/0.2364, allocations: 0 / 0.7992 GB, free: 13.03 MB / 0.6231 GB Notification: Performance of matching and sorting (n=45): time 0.001451/0.2378, allocations: 0.6112 MB / 0.7998 GB, free: 12.41 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.421e-05/0.2379, allocations: 89.89 kB / 0.7999 GB, free: 12.3 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007054/0.2386, allocations: 0.6139 MB / 0.8005 GB, free: 11.68 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 5.132e-05/0.2387, allocations: 41.7 kB / 0.8005 GB, free: 11.64 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002581/0.2389, allocations: 364.8 kB / 0.8009 GB, free: 11.28 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001224/0.2391, allocations: 153.8 kB / 0.801 GB, free: 11.12 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001532/0.2392, allocations: 94.23 kB / 0.8011 GB, free: 11.03 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001018/0.2393, allocations: 326 kB / 0.8014 GB, free: 10.7 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004408/0.2398, allocations: 183 kB / 0.8016 GB, free: 10.52 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004709/0.2403, allocations: 276.2 kB / 0.8018 GB, free: 10.21 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009051/0.2412, allocations: 485.8 kB / 0.8023 GB, free: 9.699 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.2412, allocations: 4 kB / 0.8023 GB, free: 9.695 MB / 0.6231 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001211/0.2424, allocations: 0.5982 MB / 0.8029 GB, free: 9.086 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.429e-05/0.2425, allocations: 34.02 kB / 0.8029 GB, free: 9.047 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.2425, allocations: 4 kB / 0.8029 GB, free: 9.043 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.975e-05/0.2425, allocations: 8 kB / 0.8029 GB, free: 9.035 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004789/0.243, allocations: 107.8 kB / 0.803 GB, free: 8.93 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.245e-05/0.243, allocations: 4 kB / 0.803 GB, free: 8.926 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004004/0.2434, allocations: 67.41 kB / 0.8031 GB, free: 8.859 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.006e-05/0.2435, allocations: 16 kB / 0.8031 GB, free: 8.844 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005347/0.244, allocations: 321.1 kB / 0.8034 GB, free: 8.527 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004293/0.2445, allocations: 260.3 kB / 0.8037 GB, free: 8.238 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000827/0.2453, allocations: 454 kB / 0.8041 GB, free: 7.754 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.434e-06/0.2453, allocations: 0 / 0.8041 GB, free: 7.754 MB / 0.6231 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001106/0.2464, allocations: 0.5786 MB / 0.8047 GB, free: 7.16 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.859e-05/0.2465, allocations: 33.7 kB / 0.8047 GB, free: 7.121 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.2465, allocations: 4 kB / 0.8047 GB, free: 7.117 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.075e-06/0.2465, allocations: 7.938 kB / 0.8047 GB, free: 7.109 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004336/0.2469, allocations: 112.1 kB / 0.8048 GB, free: 7 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.287e-05/0.247, allocations: 4 kB / 0.8048 GB, free: 6.996 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003917/0.2474, allocations: 55.55 kB / 0.8049 GB, free: 6.941 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.69e-05/0.2474, allocations: 20 kB / 0.8049 GB, free: 6.922 MB / 0.6231 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001708/0.2476, allocations: 218.9 kB / 0.8051 GB, free: 6.703 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001038/0.2477, allocations: 71.16 kB / 0.8052 GB, free: 6.633 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001639/0.2479, allocations: 79.34 kB / 0.8053 GB, free: 6.551 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-06/0.2479, allocations: 11.98 kB / 0.8053 GB, free: 6.539 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.2479, allocations: 0 / 0.8053 GB, free: 6.539 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.2479, allocations: 0 / 0.8053 GB, free: 6.539 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006552/0.2485, allocations: 0.6257 MB / 0.8059 GB, free: 5.863 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.2486, allocations: 0 / 0.8059 GB, free: 5.863 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004488/0.249, allocations: 83.89 kB / 0.806 GB, free: 5.781 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/0.249, allocations: 3.938 kB / 0.806 GB, free: 5.777 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.493e-05/0.2491, allocations: 11.98 kB / 0.806 GB, free: 5.766 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.2491, allocations: 0 / 0.806 GB, free: 5.766 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.2491, allocations: 4 kB / 0.806 GB, free: 5.762 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001465/0.2506, allocations: 0.7314 MB / 0.8067 GB, free: 5.012 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002238/0.2508, allocations: 196 kB / 0.8069 GB, free: 4.801 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.135e-05/0.2509, allocations: 12 kB / 0.8069 GB, free: 4.789 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003829/0.2513, allocations: 28.09 kB / 0.8069 GB, free: 4.762 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.097e-05/0.2514, allocations: 31.95 kB / 0.8069 GB, free: 4.73 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.948e-05/0.2514, allocations: 23.98 kB / 0.807 GB, free: 4.707 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.000499/0.2519, allocations: 435 kB / 0.8074 GB, free: 4.289 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.8e-07/0.2519, allocations: 0 / 0.8074 GB, free: 4.289 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0006195/0.2526, allocations: 219.3 kB / 0.8076 GB, free: 4.074 MB / 0.6231 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001727/0.2543, allocations: 1.28 MB / 0.8088 GB, free: 2.766 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001504/0.2558, allocations: 0.7849 MB / 0.8096 GB, free: 1.953 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.2558, allocations: 0 / 0.8096 GB, free: 1.953 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0004474/0.2563, allocations: 216.3 kB / 0.8098 GB, free: 1.742 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008607/0.2571, allocations: 216.3 kB / 0.81 GB, free: 1.539 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007439/0.2646, allocations: 5.371 MB / 0.8153 GB, free: 12.01 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004142/0.265, allocations: 0.9102 MB / 0.8162 GB, free: 11.07 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0003944/0.2654, allocations: 101.2 kB / 0.8163 GB, free: 10.97 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003298/0.2658, allocations: 255.4 kB / 0.8165 GB, free: 10.73 MB / 0.6387 GB Notification: Performance of SimCode: time 4.01e-07/0.2658, allocations: 0 / 0.8165 GB, free: 10.73 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03288/0.2987, allocations: 13.92 MB / 0.8301 GB, free: 12.97 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.949/9.248, allocations: 15.61 kB / 0.8301 GB, free: 12.95 MB / 0.6544 GB (rm -f Buildings_8_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_8_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_8_Buildings.Controls.Continuous.Examples.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_Continuous_Examples_LimPID.fmu > Buildings_8_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1)