Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IDEAS_dev_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.009859/0.009859, allocations: 99.47 kB / 15.73 MB, free: 6.023 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.001689/0.00169, allocations: 187.6 kB / 16.67 MB, free: 5.961 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.569/1.569, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.103/1.103, allocations: 135.1 MB / 425.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001799/0.0018, allocations: 63.89 kB / 0.5851 GB, free: 3.906 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.689/0.6909, allocations: 80.91 MB / 0.6641 GB, free: 7.27 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.006389/0.6973, allocations: 4.114 MB / 0.6681 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003292/0.7007, allocations: 1.309 MB / 0.6694 GB, free: 2.93 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005709/0.7013, allocations: 25.03 kB / 0.6694 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0004151/0.7017, allocations: 127.4 kB / 0.6696 GB, free: 2.805 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003964/0.7022, allocations: 175.6 kB / 0.6697 GB, free: 2.648 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009669/0.7032, allocations: 431.9 kB / 0.6701 GB, free: 2.305 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001019/0.7042, allocations: 0.9596 MB / 0.6711 GB, free: 1.691 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007981/0.705, allocations: 452.6 kB / 0.6715 GB, free: 1.418 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004764/0.7055, allocations: 336.5 kB / 0.6718 GB, free: 1.199 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003802/0.7059, allocations: 328.5 kB / 0.6721 GB, free: 0.9531 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001628/0.706, allocations: 90.41 kB / 0.6722 GB, free: 0.9531 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001667/0.7062, allocations: 95.41 kB / 0.6723 GB, free: 0.9492 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001554/0.7064, allocations: 178.5 kB / 0.6725 GB, free: 0.793 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003645/0.7067, allocations: 392.3 kB / 0.6729 GB, free: 0.4961 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001255/0.708, allocations: 1.064 MB / 0.6739 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 1.109e-05/0.708, allocations: 8 kB / 0.6739 GB, free: 15.65 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.404e-06/0.708, allocations: 3.938 kB / 0.6739 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.345e-05/0.7081, allocations: 0 / 0.6739 GB, free: 15.64 MB / 0.5137 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.002268/0.7103, allocations: 1.071 MB / 0.675 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.945e-05/0.7104, allocations: 10.12 kB / 0.675 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001474/0.7106, allocations: 97.05 kB / 0.6751 GB, free: 14.69 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001803/0.7107, allocations: 93.7 kB / 0.6751 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001077/0.7118, allocations: 0.562 MB / 0.6757 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.07e-05/0.7119, allocations: 50.06 kB / 0.6757 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001134/0.712, allocations: 67.05 kB / 0.6758 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001224/0.7132, allocations: 0.5983 MB / 0.6764 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.358e-05/0.7133, allocations: 4.969 kB / 0.6764 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.93e-05/0.7133, allocations: 25.91 kB / 0.6764 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.145e-05/0.7134, allocations: 14.44 kB / 0.6764 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00105/0.7144, allocations: 461.1 kB / 0.6769 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003513/0.718, allocations: 1.996 MB / 0.6788 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001008/0.719, allocations: 454.7 kB / 0.6793 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005/0.7195, allocations: 241.9 kB / 0.6795 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 4.346e-05/0.7195, allocations: 4.812 kB / 0.6795 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005922/0.7201, allocations: 262.1 kB / 0.6797 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=49): time 2.785e-06/0.7202, allocations: 0 / 0.6797 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of matching and sorting (n=49): time 0.001452/0.7216, allocations: 0.5841 MB / 0.6803 GB, free: 11.05 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.524e-05/0.7217, allocations: 61.12 kB / 0.6804 GB, free: 10.98 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006064/0.7223, allocations: 443.4 kB / 0.6808 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.493e-05/0.7224, allocations: 36.02 kB / 0.6808 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002872/0.7226, allocations: 321.8 kB / 0.6811 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001399/0.7228, allocations: 169.3 kB / 0.6813 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001694/0.723, allocations: 98.97 kB / 0.6814 GB, free: 10.17 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001935/0.7232, allocations: 366.5 kB / 0.6817 GB, free: 9.812 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000408/0.7236, allocations: 168.9 kB / 0.6819 GB, free: 9.73 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004799/0.7241, allocations: 249.1 kB / 0.6821 GB, free: 9.559 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008779/0.725, allocations: 448.5 kB / 0.6826 GB, free: 9.273 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.725, allocations: 0 / 0.6826 GB, free: 9.273 MB / 0.5137 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001175/0.7261, allocations: 0.5658 MB / 0.6831 GB, free: 8.961 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.726e-05/0.7262, allocations: 32.83 kB / 0.6832 GB, free: 8.93 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.7262, allocations: 2.375 kB / 0.6832 GB, free: 8.93 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.199e-05/0.7262, allocations: 4.562 kB / 0.6832 GB, free: 8.93 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005316/0.7268, allocations: 113.7 kB / 0.6833 GB, free: 8.902 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.427e-05/0.7268, allocations: 4.844 kB / 0.6833 GB, free: 8.902 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003606/0.7272, allocations: 61.44 kB / 0.6833 GB, free: 8.859 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.061e-05/0.7272, allocations: 18.94 kB / 0.6834 GB, free: 8.855 MB / 0.5137 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.0002963/0.7275, allocations: 206.2 kB / 0.6835 GB, free: 8.68 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.613e-05/0.7276, allocations: 61.64 kB / 0.6836 GB, free: 8.645 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001389/0.7278, allocations: 61.75 kB / 0.6837 GB, free: 8.598 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.7278, allocations: 5.031 kB / 0.6837 GB, free: 8.598 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.361e-05/0.7278, allocations: 1.531 kB / 0.6837 GB, free: 8.598 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.7278, allocations: 7.984 kB / 0.6837 GB, free: 8.59 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001899/0.7297, allocations: 1.182 MB / 0.6848 GB, free: 7.719 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.7297, allocations: 3.938 kB / 0.6848 GB, free: 7.715 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004685/0.7302, allocations: 91.75 kB / 0.6849 GB, free: 7.695 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.7302, allocations: 3.094 kB / 0.6849 GB, free: 7.695 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.518e-05/0.7303, allocations: 10.62 kB / 0.6849 GB, free: 7.688 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.7303, allocations: 5.406 kB / 0.6849 GB, free: 7.684 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.7303, allocations: 1.625 kB / 0.6849 GB, free: 7.684 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001478/0.7318, allocations: 0.7584 MB / 0.6857 GB, free: 7.23 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002174/0.732, allocations: 176 kB / 0.6859 GB, free: 7.059 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.612e-05/0.7321, allocations: 10.59 kB / 0.6859 GB, free: 7.051 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003121/0.7324, allocations: 22.53 kB / 0.6859 GB, free: 7.039 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001115/0.7325, allocations: 36.27 kB / 0.6859 GB, free: 7.02 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.319e-05/0.7326, allocations: 17.77 kB / 0.6859 GB, free: 7.012 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0004364/0.733, allocations: 307 kB / 0.6862 GB, free: 6.824 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.51e-07/0.733, allocations: 0 / 0.6862 GB, free: 6.824 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005649/0.7336, allocations: 145.4 kB / 0.6864 GB, free: 6.781 MB / 0.5137 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.002067/0.7356, allocations: 1.321 MB / 0.6877 GB, free: 5.777 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001231/0.7369, allocations: 480.9 kB / 0.6881 GB, free: 5.527 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.7369, allocations: 0 / 0.6881 GB, free: 5.527 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0004865/0.7374, allocations: 218.4 kB / 0.6883 GB, free: 5.434 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008523/0.7383, allocations: 158.1 kB / 0.6885 GB, free: 5.355 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009411/0.7477, allocations: 4.772 MB / 0.6931 GB, free: 2.145 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007173/0.7485, allocations: 0.894 MB / 0.694 GB, free: 1.359 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0003669/0.7488, allocations: 64.61 kB / 0.6941 GB, free: 1.324 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003822/0.7492, allocations: 226.1 kB / 0.6943 GB, free: 1.133 MB / 0.5137 GB Notification: Performance of SimCode: time 1.963e-06/0.7493, allocations: 0 / 0.6943 GB, free: 1.133 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04315/0.7924, allocations: 11.47 MB / 0.7055 GB, free: 6.77 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.923/9.715, allocations: 15.05 kB / 0.7055 GB, free: 6.758 MB / 0.5294 GB (rm -f IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Controls_Continuous_Examples_LimPIDWithReset.fmu > IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)