Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset.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.LimPIDWithReset,fileNamePrefix="Buildings_8_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_8_Buildings_Controls_Continuous_Examples_LimPIDWithReset",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.001044/0.001044, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 192.6 kB / 16.14 MB, free: 6.707 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.1/1.1, allocations: 205.1 MB / 222 MB, free: 4.762 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.444/1.444, allocations: 292.3 MB / 0.5484 GB, free: 13.66 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.002371/0.002371, allocations: 67.98 kB / 0.6709 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1711/0.1735, allocations: 114.5 MB / 0.7828 GB, free: 13.92 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.004582/0.1782, allocations: 4.16 MB / 0.7868 GB, free: 9.73 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001754/0.1799, allocations: 1.329 MB / 0.7881 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002211/0.1802, allocations: 19.94 kB / 0.7882 GB, free: 8.371 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002544/0.1804, allocations: 87.22 kB / 0.7882 GB, free: 8.285 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002607/0.1807, allocations: 154.8 kB / 0.7884 GB, free: 8.133 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006417/0.1813, allocations: 382.6 kB / 0.7888 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0006555/0.182, allocations: 0.8773 MB / 0.7896 GB, free: 6.883 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004988/0.1825, allocations: 434.3 kB / 0.79 GB, free: 6.434 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002405/0.1828, allocations: 274.7 kB / 0.7903 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002501/0.183, allocations: 302.4 kB / 0.7906 GB, free: 5.867 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 7.824e-05/0.1831, allocations: 44 kB / 0.7906 GB, free: 5.824 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.729e-05/0.1832, allocations: 40 kB / 0.7907 GB, free: 5.785 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.964e-05/0.1833, allocations: 127.4 kB / 0.7908 GB, free: 5.66 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002509/0.1835, allocations: 342 kB / 0.7911 GB, free: 5.324 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0006884/0.1842, allocations: 0.9967 MB / 0.7921 GB, free: 4.324 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1842, allocations: 0 / 0.7921 GB, free: 4.324 MB / 0.6075 GB Notification: Performance of FrontEnd: time 8.42e-07/0.1842, allocations: 0 / 0.7921 GB, free: 4.324 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.303e-06/0.1843, allocations: 4 kB / 0.7921 GB, free: 4.32 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001499/0.1858, allocations: 1.073 MB / 0.7931 GB, free: 3.188 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.131e-05/0.1858, allocations: 11.97 kB / 0.7931 GB, free: 3.176 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001005/0.1859, allocations: 98.7 kB / 0.7932 GB, free: 3.07 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001066/0.186, allocations: 80 kB / 0.7933 GB, free: 2.992 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006931/0.1867, allocations: 0.5572 MB / 0.7939 GB, free: 2.395 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.039e-05/0.1868, allocations: 45.69 kB / 0.7939 GB, free: 2.352 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.504e-05/0.1868, allocations: 56.38 kB / 0.794 GB, free: 2.297 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000935/0.1878, allocations: 0.6076 MB / 0.7945 GB, free: 1.664 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.765e-05/0.1878, allocations: 7.906 kB / 0.7946 GB, free: 1.656 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.329e-05/0.1879, allocations: 28 kB / 0.7946 GB, free: 1.629 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.279e-05/0.1879, allocations: 12 kB / 0.7946 GB, free: 1.617 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008872/0.1888, allocations: 460.9 kB / 0.795 GB, free: 1.164 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0024/0.1912, allocations: 2.008 MB / 0.797 GB, free: 15.08 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008248/0.192, allocations: 448.5 kB / 0.7974 GB, free: 14.64 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004059/0.1924, allocations: 246.1 kB / 0.7977 GB, free: 14.4 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 3.301e-05/0.1925, allocations: 4.438 kB / 0.7977 GB, free: 14.39 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000502/0.193, allocations: 261.2 kB / 0.7979 GB, free: 14.13 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=49): time 1.784e-06/0.193, allocations: 0 / 0.7979 GB, free: 14.13 MB / 0.6231 GB Notification: Performance of matching and sorting (n=49): time 0.001145/0.1942, allocations: 0.5882 MB / 0.7985 GB, free: 13.53 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.296e-05/0.1942, allocations: 59.84 kB / 0.7985 GB, free: 13.46 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004153/0.1946, allocations: 442 kB / 0.799 GB, free: 13.02 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 3.281e-05/0.1947, allocations: 33.7 kB / 0.799 GB, free: 12.98 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001997/0.1949, allocations: 324.2 kB / 0.7993 GB, free: 12.66 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.195, allocations: 169.6 kB / 0.7995 GB, free: 12.49 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001304/0.1951, allocations: 94.25 kB / 0.7996 GB, free: 12.39 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001189/0.1952, allocations: 366.8 kB / 0.7999 GB, free: 12.03 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003587/0.1956, allocations: 165 kB / 0.8001 GB, free: 11.87 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004066/0.196, allocations: 249.8 kB / 0.8003 GB, free: 11.6 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007299/0.1968, allocations: 456 kB / 0.8007 GB, free: 11.12 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.1968, allocations: 0 / 0.8007 GB, free: 11.12 MB / 0.6231 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009453/0.1977, allocations: 0.5701 MB / 0.8013 GB, free: 10.54 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.954e-05/0.1978, allocations: 37.69 kB / 0.8013 GB, free: 10.49 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.1978, allocations: 4 kB / 0.8013 GB, free: 10.49 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.1978, allocations: 7.938 kB / 0.8013 GB, free: 10.48 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000449/0.1982, allocations: 111.8 kB / 0.8014 GB, free: 10.37 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.1983, allocations: 4 kB / 0.8014 GB, free: 10.37 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003002/0.1986, allocations: 67.75 kB / 0.8015 GB, free: 10.3 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.333e-05/0.1986, allocations: 20 kB / 0.8015 GB, free: 10.28 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$whenCondition1,$whenCondition2,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * 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.000209/0.1988, allocations: 205.7 kB / 0.8017 GB, free: 10.07 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.21e-05/0.1989, allocations: 55.28 kB / 0.8018 GB, free: 10.02 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001135/0.199, allocations: 69.58 kB / 0.8018 GB, free: 9.945 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.199, allocations: 8 kB / 0.8019 GB, free: 9.938 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.199, allocations: 0 / 0.8019 GB, free: 9.938 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.259e-05/0.199, allocations: 3.984 kB / 0.8019 GB, free: 9.934 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001555/0.2006, allocations: 1.177 MB / 0.803 GB, free: 8.695 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.2006, allocations: 0 / 0.803 GB, free: 8.695 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000433/0.201, allocations: 91.89 kB / 0.8031 GB, free: 8.605 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.2011, allocations: 7.984 kB / 0.8031 GB, free: 8.598 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.871e-05/0.2011, allocations: 12 kB / 0.8031 GB, free: 8.586 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.2011, allocations: 0 / 0.8031 GB, free: 8.586 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.2011, allocations: 0 / 0.8031 GB, free: 8.586 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001191/0.2023, allocations: 0.7717 MB / 0.8039 GB, free: 7.801 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001515/0.2025, allocations: 168.3 kB / 0.804 GB, free: 7.617 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.836e-05/0.2025, allocations: 12 kB / 0.804 GB, free: 7.605 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002768/0.2028, allocations: 23.97 kB / 0.8041 GB, free: 7.582 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.183e-05/0.2029, allocations: 32.39 kB / 0.8041 GB, free: 7.551 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.727e-05/0.2029, allocations: 19.98 kB / 0.8041 GB, free: 7.531 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.000285/0.2032, allocations: 306.9 kB / 0.8044 GB, free: 7.234 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.9e-07/0.2032, allocations: 4 kB / 0.8044 GB, free: 7.23 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003685/0.2036, allocations: 139.5 kB / 0.8045 GB, free: 7.094 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 47 * 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.001487/0.2051, allocations: 1.324 MB / 0.8058 GB, free: 5.738 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0008081/0.2059, allocations: 477 kB / 0.8063 GB, free: 5.262 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.2059, allocations: 4.5 kB / 0.8063 GB, free: 5.258 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0003837/0.2063, allocations: 218.4 kB / 0.8065 GB, free: 5.039 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007122/0.207, allocations: 142.6 kB / 0.8066 GB, free: 4.902 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006657/0.2137, allocations: 5.14 MB / 0.8117 GB, free: 15.63 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003922/0.2141, allocations: 0.8902 MB / 0.8125 GB, free: 14.71 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0002574/0.2144, allocations: 68.58 kB / 0.8126 GB, free: 14.64 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002668/0.2147, allocations: 219.4 kB / 0.8128 GB, free: 14.43 MB / 0.6387 GB Notification: Performance of SimCode: time 5.62e-07/0.2147, allocations: 0 / 0.8128 GB, free: 14.43 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05588/0.2705, allocations: 10.68 MB / 0.8232 GB, free: 3.938 MB / 0.6387 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001978/0.2708, allocations: 210.2 kB / 0.8234 GB, free: 3.676 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.782/2.053, allocations: 4.062 kB / 0.8234 GB, free: 3.672 MB / 0.6387 GB (rm -f Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)