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: translateModel(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset") translateModel(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001582/0.001582, allocations: 192.5 kB / 16.53 MB, free: 6.391 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 / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7298/0.7298, allocations: 132.2 MB / 422.6 MB, free: 1.73 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 60.53 kB / 0.5018 GB, free: 8.68 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1799/0.1813, allocations: 80.21 MB / 0.5801 GB, free: 8.695 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.006077/0.1874, allocations: 4.106 MB / 0.5841 GB, free: 4.559 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002964/0.1904, allocations: 1.317 MB / 0.5854 GB, free: 3.234 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008195/0.1913, allocations: 23.88 kB / 0.5854 GB, free: 3.211 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000512/0.1919, allocations: 130.7 kB / 0.5855 GB, free: 3.082 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007232/0.1926, allocations: 178.4 kB / 0.5857 GB, free: 2.906 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001021/0.1936, allocations: 415.1 kB / 0.5861 GB, free: 2.508 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001003/0.1947, allocations: 0.9594 MB / 0.587 GB, free: 1.547 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006202/0.1953, allocations: 450.1 kB / 0.5875 GB, free: 1.086 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003398/0.1956, allocations: 330.7 kB / 0.5878 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003296/0.196, allocations: 334.4 kB / 0.5881 GB, free: 444 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001052/0.1961, allocations: 92 kB / 0.5882 GB, free: 352 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001163/0.1962, allocations: 88 kB / 0.5883 GB, free: 264 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001366/0.1963, allocations: 183.4 kB / 0.5884 GB, free: 80 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003381/0.1967, allocations: 390.1 kB / 0.5888 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0008829/0.1976, allocations: 1.044 MB / 0.5898 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1976, allocations: 0 / 0.5898 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.563e-06/0.1976, allocations: 0 / 0.5898 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.092e-05/0.1976, allocations: 0 / 0.5898 GB, free: 14.65 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.001789/0.1994, allocations: 1.081 MB / 0.5909 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.1995, allocations: 12.03 kB / 0.5909 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001343/0.1996, allocations: 84 kB / 0.591 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007756/0.2004, allocations: 0.5417 MB / 0.5915 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.883e-05/0.2004, allocations: 45.69 kB / 0.5915 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.446e-05/0.2005, allocations: 64.36 kB / 0.5916 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009849/0.2015, allocations: 0.6078 MB / 0.5922 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.088e-05/0.2016, allocations: 7.906 kB / 0.5922 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.121e-05/0.2016, allocations: 20 kB / 0.5922 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.406e-05/0.2016, allocations: 16 kB / 0.5922 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009203/0.2026, allocations: 457 kB / 0.5927 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00273/0.2053, allocations: 2.008 MB / 0.5946 GB, free: 9.531 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008732/0.2062, allocations: 449 kB / 0.5951 GB, free: 9.082 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004338/0.2066, allocations: 238.1 kB / 0.5953 GB, free: 8.848 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.468e-05/0.2067, allocations: 4.438 kB / 0.5953 GB, free: 8.844 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005943/0.2073, allocations: 273.1 kB / 0.5956 GB, free: 8.562 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=49): time 2.695e-06/0.2073, allocations: 0 / 0.5956 GB, free: 8.562 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.001253/0.2085, allocations: 0.585 MB / 0.5961 GB, free: 7.973 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.78e-05/0.2086, allocations: 59.83 kB / 0.5962 GB, free: 7.902 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004757/0.2091, allocations: 450 kB / 0.5966 GB, free: 7.453 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.777e-05/0.2091, allocations: 33.7 kB / 0.5967 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002427/0.2094, allocations: 332.1 kB / 0.597 GB, free: 7.082 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001175/0.2095, allocations: 161.6 kB / 0.5971 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001423/0.2096, allocations: 90.25 kB / 0.5972 GB, free: 6.828 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.00014/0.2098, allocations: 362.8 kB / 0.5976 GB, free: 6.465 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003651/0.2102, allocations: 169 kB / 0.5977 GB, free: 6.301 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004063/0.2106, allocations: 253.8 kB / 0.598 GB, free: 6.027 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007797/0.2114, allocations: 444 kB / 0.5984 GB, free: 5.559 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.2114, allocations: 4 kB / 0.5984 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009831/0.2124, allocations: 0.5662 MB / 0.5989 GB, free: 4.98 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.427e-05/0.2124, allocations: 37.64 kB / 0.599 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.2124, allocations: 4 kB / 0.599 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.906e-05/0.2125, allocations: 8.188 kB / 0.599 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004917/0.213, allocations: 119.8 kB / 0.5991 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.196e-05/0.213, allocations: 4 kB / 0.5991 GB, free: 4.805 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003237/0.2133, allocations: 59.5 kB / 0.5992 GB, free: 4.746 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.947e-05/0.2134, allocations: 16 kB / 0.5992 GB, free: 4.73 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.000269/0.2136, allocations: 210.7 kB / 0.5994 GB, free: 4.516 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.308e-05/0.2137, allocations: 59.27 kB / 0.5994 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001242/0.2138, allocations: 61.59 kB / 0.5995 GB, free: 4.398 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.2139, allocations: 8 kB / 0.5995 GB, free: 4.391 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.385e-06/0.2139, allocations: 0 / 0.5995 GB, free: 4.391 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.263e-06/0.2139, allocations: 3.984 kB / 0.5995 GB, free: 4.387 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001842/0.2157, allocations: 1.177 MB / 0.6007 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.2158, allocations: 4 kB / 0.6007 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004508/0.2162, allocations: 95.88 kB / 0.6007 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.314e-06/0.2162, allocations: 4 kB / 0.6008 GB, free: 3.055 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.071e-05/0.2163, allocations: 8 kB / 0.6008 GB, free: 3.047 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.2163, allocations: 4 kB / 0.6008 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.2163, allocations: 0 / 0.6008 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001305/0.2176, allocations: 0.76 MB / 0.6015 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002023/0.2178, allocations: 168.4 kB / 0.6017 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.338e-05/0.2179, allocations: 12 kB / 0.6017 GB, free: 2.062 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002851/0.2182, allocations: 23.97 kB / 0.6017 GB, free: 2.039 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.459e-05/0.2183, allocations: 36.39 kB / 0.6017 GB, free: 2.004 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.851e-05/0.2183, allocations: 15.98 kB / 0.6017 GB, free: 1.988 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003485/0.2187, allocations: 310.9 kB / 0.602 GB, free: 1.688 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2187, allocations: 0 / 0.602 GB, free: 1.688 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004755/0.2192, allocations: 143.5 kB / 0.6022 GB, free: 1.547 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.0001399/0.2193, allocations: 116.6 kB / 0.6023 GB, free: 1.426 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001136/0.2204, allocations: 0.4973 MB / 0.6028 GB, free: 0.9219 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.2205, allocations: 0 / 0.6028 GB, free: 0.9219 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004064/0.2209, allocations: 214.4 kB / 0.603 GB, free: 0.7109 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007814/0.2217, allocations: 171.2 kB / 0.6031 GB, free: 0.5547 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3018/0.5235, allocations: 1.339 MB / 0.6045 GB, free: 55.36 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002864/0.5238, allocations: 0.894 MB / 0.6053 GB, free: 54.66 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003435/0.5242, allocations: 67.06 kB / 0.6054 GB, free: 54.65 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/0.5243, allocations: 37.97 kB / 0.6054 GB, free: 54.65 MB / 0.4981 GB Notification: Performance of SimCode: time 1.052e-06/0.5243, allocations: 0.6562 kB / 0.6054 GB, free: 54.65 MB / 0.4981 GB Notification: Performance of Templates: time 0.01094/0.5353, allocations: 5.895 MB / 0.6112 GB, free: 54.47 MB / 0.4981 GB make -j1 -f IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.makefile (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 & ./IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)