Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_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.001046/0.001046, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001024/0.001024, allocations: 190.7 kB / 16.25 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 222.9 MB / 239.9 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00223/0.00223, allocations: 290.7 kB / 290.4 MB, free: 2.16 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9736/0.9736, allocations: 169.2 MB / 0.4978 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002527/0.002527, allocations: 93.92 kB / 0.5948 GB, free: 28.23 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1991/0.2016, allocations: 86.98 MB / 0.6797 GB, free: 0.9648 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.006256/0.2079, allocations: 4.13 MB / 0.6838 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003731/0.2117, allocations: 1.279 MB / 0.685 GB, free: 11.54 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006407/0.2124, allocations: 27.88 kB / 0.685 GB, free: 11.52 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003719/0.2129, allocations: 88.44 kB / 0.6851 GB, free: 11.43 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005271/0.2134, allocations: 151.7 kB / 0.6853 GB, free: 11.28 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009877/0.2144, allocations: 385.5 kB / 0.6856 GB, free: 10.91 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001174/0.2156, allocations: 0.9516 MB / 0.6866 GB, free: 9.957 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007861/0.2164, allocations: 470 kB / 0.687 GB, free: 9.477 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004496/0.2168, allocations: 330.7 kB / 0.6873 GB, free: 9.152 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003849/0.2172, allocations: 334.4 kB / 0.6876 GB, free: 8.824 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001194/0.2173, allocations: 88 kB / 0.6877 GB, free: 8.738 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001421/0.2175, allocations: 92 kB / 0.6878 GB, free: 8.648 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001656/0.2177, allocations: 187.3 kB / 0.688 GB, free: 8.465 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003509/0.218, allocations: 386.1 kB / 0.6884 GB, free: 8.086 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001058/0.2191, allocations: 1.032 MB / 0.6894 GB, free: 7.051 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.157e-06/0.2191, allocations: 3.984 kB / 0.6894 GB, free: 7.047 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.2191, allocations: 0 / 0.6894 GB, free: 7.047 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.595e-05/0.2191, allocations: 0 / 0.6894 GB, free: 7.047 MB / 494.1 MB 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.002095/0.2212, allocations: 1.077 MB / 0.6904 GB, free: 5.91 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.026e-05/0.2213, allocations: 12.02 kB / 0.6904 GB, free: 5.898 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001731/0.2215, allocations: 98.7 kB / 0.6905 GB, free: 5.793 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001487/0.2217, allocations: 83.91 kB / 0.6906 GB, free: 5.711 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001136/0.2228, allocations: 0.5533 MB / 0.6911 GB, free: 5.117 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.452e-05/0.2229, allocations: 49.69 kB / 0.6912 GB, free: 5.07 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001007/0.223, allocations: 56.38 kB / 0.6912 GB, free: 5.016 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001142/0.2241, allocations: 0.6038 MB / 0.6918 GB, free: 4.391 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/0.2241, allocations: 0 / 0.6918 GB, free: 4.391 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.305e-05/0.2242, allocations: 31.98 kB / 0.6919 GB, free: 4.359 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.009e-05/0.2242, allocations: 15.94 kB / 0.6919 GB, free: 4.344 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009695/0.2252, allocations: 453 kB / 0.6923 GB, free: 3.902 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003714/0.2289, allocations: 2.012 MB / 0.6943 GB, free: 1.82 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009854/0.23, allocations: 441 kB / 0.6947 GB, free: 1.379 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004686/0.2304, allocations: 242 kB / 0.6949 GB, free: 1.141 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.987e-05/0.2305, allocations: 12.42 kB / 0.6949 GB, free: 1.129 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007002/0.2312, allocations: 265.2 kB / 0.6952 GB, free: 0.8594 MB / 494.1 MB Notification: Performance of pre-optimization done (n=49): time 3.526e-06/0.2312, allocations: 3.938 kB / 0.6952 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of matching and sorting (n=49): time 0.001444/0.2327, allocations: 0.5921 MB / 0.6958 GB, free: 264 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.313e-05/0.2328, allocations: 55.84 kB / 0.6958 GB, free: 196 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008813/0.2337, allocations: 446 kB / 0.6963 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.203e-05/0.2337, allocations: 29.7 kB / 0.6963 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005178/0.2342, allocations: 325 kB / 0.6966 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001729/0.2344, allocations: 165.5 kB / 0.6968 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001956/0.2346, allocations: 90.25 kB / 0.6968 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000246/0.2349, allocations: 366.8 kB / 0.6972 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004233/0.2353, allocations: 169 kB / 0.6974 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004677/0.2358, allocations: 249.8 kB / 0.6976 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008533/0.2367, allocations: 460 kB / 0.698 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.2367, allocations: 0 / 0.698 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001136/0.2378, allocations: 0.5623 MB / 0.6986 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.699e-05/0.2379, allocations: 33.7 kB / 0.6986 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.2379, allocations: 4 kB / 0.6986 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.491e-05/0.2379, allocations: 4 kB / 0.6986 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006313/0.2386, allocations: 111.8 kB / 0.6987 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.56e-05/0.2386, allocations: 7.984 kB / 0.6987 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003804/0.239, allocations: 71.75 kB / 0.6988 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.247e-05/0.239, allocations: 20 kB / 0.6988 GB, free: 13.02 MB / 0.4981 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.0003289/0.2394, allocations: 208.3 kB / 0.699 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.009e-05/0.2395, allocations: 59.19 kB / 0.6991 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000312/0.2398, allocations: 65.58 kB / 0.6991 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.2398, allocations: 4 kB / 0.6991 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/0.2398, allocations: 4 kB / 0.6991 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.2398, allocations: 3.984 kB / 0.6991 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001888/0.2417, allocations: 1.177 MB / 0.7003 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.2417, allocations: 0 / 0.7003 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004591/0.2422, allocations: 91.89 kB / 0.7004 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.866e-06/0.2422, allocations: 8 kB / 0.7004 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.3e-05/0.2422, allocations: 15.92 kB / 0.7004 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.736e-06/0.2423, allocations: 0 / 0.7004 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.2423, allocations: 0 / 0.7004 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001464/0.2437, allocations: 0.7602 MB / 0.7012 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002318/0.244, allocations: 168.3 kB / 0.7013 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.338e-05/0.244, allocations: 12 kB / 0.7013 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000298/0.2443, allocations: 28 kB / 0.7014 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/0.2445, allocations: 40.33 kB / 0.7014 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.929e-05/0.2445, allocations: 20 kB / 0.7014 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003252/0.2448, allocations: 310.9 kB / 0.7017 GB, free: 9.969 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2448, allocations: 7.938 kB / 0.7017 GB, free: 9.961 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004356/0.2453, allocations: 135.5 kB / 0.7018 GB, free: 9.828 MB / 0.4981 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.001654/0.2469, allocations: 1.313 MB / 0.7031 GB, free: 8.488 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001063/0.248, allocations: 0.4931 MB / 0.7036 GB, free: 7.984 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.248, allocations: 0 / 0.7036 GB, free: 7.984 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004134/0.2484, allocations: 222.8 kB / 0.7038 GB, free: 7.766 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007468/0.2492, allocations: 156.9 kB / 0.704 GB, free: 7.621 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007482/0.2567, allocations: 5.141 MB / 0.709 GB, free: 2.324 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004743/0.2572, allocations: 0.8937 MB / 0.7099 GB, free: 1.406 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003247/0.2575, allocations: 60.59 kB / 0.7099 GB, free: 1.348 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003019/0.2578, allocations: 219.4 kB / 0.7101 GB, free: 1.133 MB / 0.4981 GB Notification: Performance of SimCode: time 2.053e-06/0.2578, allocations: 0 / 0.7101 GB, free: 1.133 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02425/0.2821, allocations: 10.96 MB / 0.7208 GB, free: 6.41 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000206/0.2824, allocations: 217 kB / 0.721 GB, free: 6.156 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.049/2.331, allocations: 4.062 kB / 0.721 GB, free: 6.152 MB / 0.5137 GB (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_LimPIDWithReset.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)