Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IDEAS_IDEAS_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IDEAS_IDEAS_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.001655/0.001655, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.002058/0.002057, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.354/2.354, allocations: 223.2 MB / 239.9 MB, free: 5.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 1/1, allocations: 132.2 MB / 423.2 MB, free: 2.188 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006075/0.0006077, allocations: 8 kB / 0.5033 GB, free: 4.195 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9172/0.9178, allocations: 81.57 MB / 0.583 GB, free: 3.859 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.00792/0.9259, allocations: 3.377 MB / 0.5863 GB, free: 1.438 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.005349/0.9313, allocations: 1.242 MB / 0.5875 GB, free: 0.5352 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001577/0.933, allocations: 23.91 kB / 0.5875 GB, free: 0.5273 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004932/0.9335, allocations: 64.36 kB / 0.5876 GB, free: 500 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002178/0.9357, allocations: 221.6 kB / 0.5878 GB, free: 344 kB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001958/0.9377, allocations: 309 kB / 0.5881 GB, free: 184 kB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002712/0.9404, allocations: 0.5875 MB / 0.5886 GB, free: 15.84 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001481/0.9419, allocations: 296.9 kB / 0.5889 GB, free: 15.7 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001193/0.9432, allocations: 232.2 kB / 0.5891 GB, free: 15.59 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001031/0.9442, allocations: 246.6 kB / 0.5894 GB, free: 15.46 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000295/0.9445, allocations: 24 kB / 0.5894 GB, free: 15.46 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000353/0.9449, allocations: 23.38 kB / 0.5894 GB, free: 15.46 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003117/0.9453, allocations: 91.48 kB / 0.5895 GB, free: 15.41 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00054/0.9458, allocations: 153.1 kB / 0.5897 GB, free: 15.3 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002632/0.9485, allocations: 0.8098 MB / 0.5904 GB, free: 15.12 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.724e-06/0.9485, allocations: 0 / 0.5904 GB, free: 15.12 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.567e-06/0.9485, allocations: 0 / 0.5904 GB, free: 15.12 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.821e-05/0.9486, allocations: 4 kB / 0.5904 GB, free: 15.11 MB / 446.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.004908/0.9535, allocations: 0.9565 MB / 0.5914 GB, free: 14.44 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.437e-05/0.9536, allocations: 9.969 kB / 0.5914 GB, free: 14.44 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005246/0.9542, allocations: 99.34 kB / 0.5915 GB, free: 14.36 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005006/0.9547, allocations: 85.83 kB / 0.5916 GB, free: 14.32 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001945/0.9567, allocations: 0.5379 MB / 0.5921 GB, free: 13.93 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001064/0.9568, allocations: 40.97 kB / 0.5921 GB, free: 13.91 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002143/0.957, allocations: 60.03 kB / 0.5922 GB, free: 13.89 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002682/0.9597, allocations: 0.6035 MB / 0.5928 GB, free: 13.59 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.503e-05/0.9598, allocations: 5.047 kB / 0.5928 GB, free: 13.59 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001031/0.9599, allocations: 22.31 kB / 0.5928 GB, free: 13.57 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.855e-05/0.96, allocations: 18.78 kB / 0.5928 GB, free: 13.57 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002259/0.9622, allocations: 467.4 kB / 0.5933 GB, free: 13.4 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006752/0.969, allocations: 2.025 MB / 0.5952 GB, free: 12.15 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001965/0.9711, allocations: 449.9 kB / 0.5957 GB, free: 11.97 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.86e-05/0.9712, allocations: 6.125 kB / 0.5957 GB, free: 11.97 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001185/0.9724, allocations: 267 kB / 0.5959 GB, free: 11.84 MB / 446.1 MB Notification: Performance of pre-optimization done (n=49): time 5.621e-06/0.9724, allocations: 0 / 0.5959 GB, free: 11.84 MB / 446.1 MB Notification: Performance of matching and sorting (n=49): time 0.002693/0.9751, allocations: 0.6025 MB / 0.5965 GB, free: 11.57 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/0.9752, allocations: 61.73 kB / 0.5966 GB, free: 11.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001143/0.9764, allocations: 435.3 kB / 0.597 GB, free: 11.23 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.613e-05/0.9765, allocations: 32.33 kB / 0.597 GB, free: 11.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005742/0.9771, allocations: 329.4 kB / 0.5973 GB, free: 10.91 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000262/0.9774, allocations: 165.4 kB / 0.5975 GB, free: 10.76 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.419e-05/0.9775, allocations: 15.03 kB / 0.5975 GB, free: 10.75 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002878/0.9778, allocations: 366.5 kB / 0.5979 GB, free: 10.39 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007661/0.9785, allocations: 166.8 kB / 0.598 GB, free: 10.32 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008652/0.9794, allocations: 250.3 kB / 0.5983 GB, free: 10.14 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008979/0.9803, allocations: 229.1 kB / 0.5985 GB, free: 10.01 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.466e-06/0.9804, allocations: 1.156 kB / 0.5985 GB, free: 10.01 MB / 446.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002254/0.9826, allocations: 0.5641 MB / 0.599 GB, free: 9.707 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.984e-05/0.9827, allocations: 36.77 kB / 0.5991 GB, free: 9.672 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.558e-05/0.9828, allocations: 2.562 kB / 0.5991 GB, free: 9.672 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.724e-05/0.9828, allocations: 7.797 kB / 0.5991 GB, free: 9.668 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009334/0.9838, allocations: 121.2 kB / 0.5992 GB, free: 9.637 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.14e-05/0.9838, allocations: 4.344 kB / 0.5992 GB, free: 9.637 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008263/0.9846, allocations: 66.28 kB / 0.5993 GB, free: 9.598 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.499e-05/0.9847, allocations: 22.03 kB / 0.5993 GB, free: 9.59 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.trigger.y,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007204/0.9855, allocations: 214.1 kB / 0.5995 GB, free: 9.406 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000168/0.9857, allocations: 53.94 kB / 0.5995 GB, free: 9.379 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002247/0.9859, allocations: 62.78 kB / 0.5996 GB, free: 9.332 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.528e-05/0.9859, allocations: 12.36 kB / 0.5996 GB, free: 9.324 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.303e-05/0.986, allocations: 9.641 kB / 0.5996 GB, free: 9.316 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.986, allocations: 0 / 0.5996 GB, free: 9.316 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003733/0.9897, allocations: 1.183 MB / 0.6008 GB, free: 8.457 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.9898, allocations: 3.938 kB / 0.6008 GB, free: 8.453 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009425/0.9907, allocations: 98.44 kB / 0.6009 GB, free: 8.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.656e-05/0.9908, allocations: 10.05 kB / 0.6009 GB, free: 8.422 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.419e-05/0.9908, allocations: 12.03 kB / 0.6009 GB, free: 8.414 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.506e-06/0.9909, allocations: 1.375 kB / 0.6009 GB, free: 8.414 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.961e-06/0.9909, allocations: 3.984 kB / 0.6009 GB, free: 8.41 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002807/0.9937, allocations: 0.77 MB / 0.6017 GB, free: 7.957 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005173/0.9942, allocations: 171.4 kB / 0.6018 GB, free: 7.789 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001933/0.9944, allocations: 14.67 kB / 0.6018 GB, free: 7.777 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006771/0.9951, allocations: 37.53 kB / 0.6019 GB, free: 7.758 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001871/0.9953, allocations: 33.05 kB / 0.6019 GB, free: 7.742 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.192e-05/0.9954, allocations: 12.38 kB / 0.6019 GB, free: 7.738 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008166/0.9963, allocations: 311.4 kB / 0.6022 GB, free: 7.543 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.9963, allocations: 0 / 0.6022 GB, free: 7.543 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001229/0.9975, allocations: 141.7 kB / 0.6023 GB, free: 7.504 MB / 446.1 MB 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 (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.003365/1.001, allocations: 1.323 MB / 0.6036 GB, free: 6.516 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002096/1.003, allocations: 491.8 kB / 0.6041 GB, free: 6.262 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/1.003, allocations: 0 / 0.6041 GB, free: 6.262 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008576/1.004, allocations: 222 kB / 0.6043 GB, free: 6.168 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001421/1.005, allocations: 134 kB / 0.6044 GB, free: 6.098 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01455/1.02, allocations: 4.762 MB / 0.6091 GB, free: 2.562 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001092/1.021, allocations: 0.9095 MB / 0.61 GB, free: 1.762 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0007466/1.022, allocations: 64.73 kB / 0.61 GB, free: 1.727 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005662/1.022, allocations: 222.4 kB / 0.6103 GB, free: 1.543 MB / 446.1 MB Notification: Performance of SimCode: time 1.663e-06/1.023, allocations: 0 / 0.6103 GB, free: 1.543 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3455/1.368, allocations: 10.61 MB / 0.6206 GB, free: 9.539 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003726/1.368, allocations: 175.7 kB / 0.6208 GB, free: 9.297 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.278/4.647, allocations: 3.938 kB / 0.6208 GB, free: 9.293 MB / 462.1 MB (rm -f IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_Continuous_Examples_LimPIDWithReset.fmu > IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) Environment - environmentSimulation: