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.001507/0.001507, 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.001814/0.001814, allocations: 193.6 kB / 16.14 MB, free: 6.707 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.377/1.377, allocations: 222.9 MB / 239.8 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7476/0.7476, allocations: 132.2 MB / 422.1 MB, free: 1.965 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 63.97 kB / 0.5012 GB, free: 9.113 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1776/0.1788, allocations: 80.21 MB / 0.5795 GB, free: 9.125 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.005533/0.1844, allocations: 4.113 MB / 0.5835 GB, free: 4.984 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002695/0.1872, allocations: 1.286 MB / 0.5848 GB, free: 3.691 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004886/0.1877, allocations: 23.88 kB / 0.5848 GB, free: 3.668 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003666/0.1881, allocations: 87.22 kB / 0.5849 GB, free: 3.582 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003879/0.1885, allocations: 154.8 kB / 0.585 GB, free: 3.43 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008565/0.1894, allocations: 374.2 kB / 0.5854 GB, free: 3.07 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008048/0.1902, allocations: 0.8851 MB / 0.5862 GB, free: 2.184 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005873/0.1908, allocations: 426.1 kB / 0.5867 GB, free: 1.746 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003071/0.1911, allocations: 278.7 kB / 0.5869 GB, free: 1.473 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003002/0.1914, allocations: 298.4 kB / 0.5872 GB, free: 1.18 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.767e-05/0.1915, allocations: 40 kB / 0.5872 GB, free: 1.141 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.176e-05/0.1916, allocations: 44 kB / 0.5873 GB, free: 1.098 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001283/0.1917, allocations: 135.3 kB / 0.5874 GB, free: 0.9648 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002896/0.192, allocations: 342.1 kB / 0.5877 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000832/0.1928, allocations: 1.001 MB / 0.5887 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1928, allocations: 3.938 kB / 0.5887 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of FrontEnd: time 8.61e-07/0.1929, allocations: 0 / 0.5887 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.067e-06/0.1929, allocations: 0 / 0.5887 GB, free: 15.62 MB / 0.4981 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.001848/0.1947, allocations: 1.065 MB / 0.5898 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.1948, allocations: 16.03 kB / 0.5898 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001241/0.1949, allocations: 102.7 kB / 0.5899 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001357/0.1951, allocations: 80 kB / 0.59 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008352/0.1959, allocations: 0.5533 MB / 0.5905 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.877e-05/0.1959, allocations: 45.69 kB / 0.5905 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.346e-05/0.196, allocations: 60.28 kB / 0.5906 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001061/0.1971, allocations: 0.6115 MB / 0.5912 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.055e-05/0.1971, allocations: 3.984 kB / 0.5912 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.461e-05/0.1972, allocations: 28 kB / 0.5912 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.258e-05/0.1972, allocations: 12 kB / 0.5912 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001019/0.1982, allocations: 461 kB / 0.5917 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002894/0.2011, allocations: 2.008 MB / 0.5936 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000917/0.2021, allocations: 449.6 kB / 0.5941 GB, free: 9.945 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000439/0.2025, allocations: 238 kB / 0.5943 GB, free: 9.711 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.379e-05/0.2026, allocations: 8.438 kB / 0.5943 GB, free: 9.703 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000644/0.2032, allocations: 261.3 kB / 0.5945 GB, free: 9.434 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=49): time 3.206e-06/0.2033, allocations: 0 / 0.5945 GB, free: 9.434 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.001368/0.2046, allocations: 0.5766 MB / 0.5951 GB, free: 8.852 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.85e-05/0.2047, allocations: 67.77 kB / 0.5952 GB, free: 8.773 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004932/0.2052, allocations: 442 kB / 0.5956 GB, free: 8.332 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.307e-05/0.2052, allocations: 41.7 kB / 0.5956 GB, free: 8.285 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002354/0.2055, allocations: 324.3 kB / 0.5959 GB, free: 7.961 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001252/0.2056, allocations: 161.7 kB / 0.5961 GB, free: 7.801 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001378/0.2058, allocations: 90.25 kB / 0.5962 GB, free: 7.707 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001456/0.2059, allocations: 370.8 kB / 0.5965 GB, free: 7.336 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003806/0.2063, allocations: 165 kB / 0.5967 GB, free: 7.176 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004155/0.2067, allocations: 249.8 kB / 0.5969 GB, free: 6.906 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007914/0.2075, allocations: 459.9 kB / 0.5974 GB, free: 6.426 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.2075, allocations: 4 kB / 0.5974 GB, free: 6.422 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001051/0.2086, allocations: 0.5661 MB / 0.5979 GB, free: 5.844 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.003e-05/0.2086, allocations: 33.7 kB / 0.598 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-06/0.2087, allocations: 0 / 0.598 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.2087, allocations: 12.25 kB / 0.598 GB, free: 5.793 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004893/0.2092, allocations: 111.8 kB / 0.5981 GB, free: 5.684 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.2092, allocations: 4 kB / 0.5981 GB, free: 5.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003684/0.2096, allocations: 63.5 kB / 0.5981 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.579e-05/0.2096, allocations: 19.94 kB / 0.5982 GB, free: 5.598 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.0002806/0.2099, allocations: 218.5 kB / 0.5984 GB, free: 5.375 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.259e-05/0.21, allocations: 59.27 kB / 0.5984 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001264/0.2101, allocations: 61.59 kB / 0.5985 GB, free: 5.258 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-06/0.2101, allocations: 8 kB / 0.5985 GB, free: 5.25 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.2101, allocations: 0 / 0.5985 GB, free: 5.25 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.2102, allocations: 3.984 kB / 0.5985 GB, free: 5.246 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001704/0.2119, allocations: 1.181 MB / 0.5997 GB, free: 4.012 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.2119, allocations: 0 / 0.5997 GB, free: 4.012 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004821/0.2124, allocations: 91.88 kB / 0.5997 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.892e-06/0.2124, allocations: 4 kB / 0.5997 GB, free: 3.918 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.196e-05/0.2124, allocations: 8 kB / 0.5997 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.2124, allocations: 4 kB / 0.5998 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2124, allocations: 0 / 0.5998 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001318/0.2138, allocations: 0.7639 MB / 0.6005 GB, free: 3.121 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001771/0.2139, allocations: 168.4 kB / 0.6007 GB, free: 2.938 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.756e-05/0.214, allocations: 15.98 kB / 0.6007 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002978/0.2143, allocations: 27.92 kB / 0.6007 GB, free: 2.895 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.892e-05/0.2144, allocations: 36.38 kB / 0.6007 GB, free: 2.859 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.967e-05/0.2145, allocations: 16 kB / 0.6008 GB, free: 2.844 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003341/0.2148, allocations: 306.9 kB / 0.601 GB, free: 2.547 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.21e-07/0.2148, allocations: 0 / 0.601 GB, free: 2.547 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004616/0.2153, allocations: 147.4 kB / 0.6012 GB, free: 2.402 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.001616/0.2169, allocations: 1.313 MB / 0.6025 GB, free: 1.062 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000912/0.2178, allocations: 481.1 kB / 0.6029 GB, free: 0.582 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.2178, allocations: 0 / 0.6029 GB, free: 0.582 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004031/0.2182, allocations: 222.3 kB / 0.6031 GB, free: 376 kB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007804/0.219, allocations: 150.5 kB / 0.6033 GB, free: 224 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2934/0.5125, allocations: 5.125 MB / 0.6083 GB, free: 53.56 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002874/0.5128, allocations: 0.8883 MB / 0.6092 GB, free: 52.86 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003058/0.5131, allocations: 63.05 kB / 0.6092 GB, free: 52.84 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002467/0.5134, allocations: 215.7 kB / 0.6094 GB, free: 52.69 MB / 0.4981 GB Notification: Performance of SimCode: time 1.342e-06/0.5134, allocations: 0 / 0.6094 GB, free: 52.69 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02962/0.543, allocations: 10.65 MB / 0.6198 GB, free: 51.92 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001385/0.5432, allocations: 196.9 kB / 0.62 GB, free: 51.66 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.939/2.482, allocations: 0 / 0.62 GB, free: 51.66 MB / 0.4981 GB (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/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)