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: translateModel(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset") translateModel(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.01088/0.01088, allocations: 100.6 kB / 15.87 MB, free: 5.871 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.002032/0.002033, allocations: 193.1 kB / 16.79 MB, free: 5.816 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.494/1.494, allocations: 222.9 MB / 240.5 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.116/1.116, allocations: 135.1 MB / 425.7 MB, free: 11.97 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002011/0.002011, allocations: 67.58 kB / 0.5053 GB, free: 5.754 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2162/0.2182, allocations: 80.92 MB / 0.5843 GB, free: 5 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.006105/0.2244, allocations: 4.111 MB / 0.5883 GB, free: 0.8594 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00308/0.2276, allocations: 1.278 MB / 0.5896 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000531/0.2282, allocations: 23.88 kB / 0.5896 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0004006/0.2286, allocations: 107.1 kB / 0.5897 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003688/0.229, allocations: 146.8 kB / 0.5899 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009239/0.2299, allocations: 382.2 kB / 0.5902 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0008696/0.2308, allocations: 0.8773 MB / 0.5911 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000664/0.2314, allocations: 430.1 kB / 0.5915 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003686/0.2318, allocations: 278.7 kB / 0.5918 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003497/0.2322, allocations: 306.4 kB / 0.592 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.513e-05/0.2323, allocations: 40 kB / 0.5921 GB, free: 13 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.815e-05/0.2324, allocations: 40 kB / 0.5921 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001226/0.2325, allocations: 127.3 kB / 0.5922 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003269/0.2328, allocations: 346.1 kB / 0.5926 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0007521/0.2336, allocations: 0.8303 MB / 0.5934 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.2336, allocations: 0 / 0.5934 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.192e-06/0.2336, allocations: 0 / 0.5934 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.829e-06/0.2336, allocations: 4 kB / 0.5934 GB, free: 11.66 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.001961/0.2356, allocations: 1.077 MB / 0.5944 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.2357, allocations: 8.031 kB / 0.5945 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001574/0.2358, allocations: 84 kB / 0.5945 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008609/0.2367, allocations: 0.5495 MB / 0.5951 GB, free: 9.848 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.388e-05/0.2367, allocations: 45.69 kB / 0.5951 GB, free: 9.805 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001083/0.2369, allocations: 60.38 kB / 0.5952 GB, free: 9.746 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001169/0.238, allocations: 0.6117 MB / 0.5958 GB, free: 9.109 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.736e-05/0.2381, allocations: 7.906 kB / 0.5958 GB, free: 9.102 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.31e-05/0.2381, allocations: 20 kB / 0.5958 GB, free: 9.082 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.848e-05/0.2382, allocations: 16 kB / 0.5958 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009942/0.2392, allocations: 457 kB / 0.5962 GB, free: 8.621 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003056/0.2422, allocations: 2.012 MB / 0.5982 GB, free: 6.531 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009424/0.2432, allocations: 438.4 kB / 0.5986 GB, free: 6.098 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004548/0.2436, allocations: 242.1 kB / 0.5989 GB, free: 5.859 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.998e-05/0.2437, allocations: 12.36 kB / 0.5989 GB, free: 5.848 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006794/0.2444, allocations: 265.3 kB / 0.5991 GB, free: 5.574 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=49): time 3.096e-06/0.2444, allocations: 3.938 kB / 0.5991 GB, free: 5.57 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.00137/0.2458, allocations: 0.5773 MB / 0.5997 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.959e-05/0.2459, allocations: 67.77 kB / 0.5998 GB, free: 4.91 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005592/0.2464, allocations: 449.9 kB / 0.6002 GB, free: 4.461 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.267e-05/0.2465, allocations: 33.7 kB / 0.6002 GB, free: 4.422 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002681/0.2468, allocations: 320.3 kB / 0.6005 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000148/0.2469, allocations: 169.6 kB / 0.6007 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001726/0.2471, allocations: 94.25 kB / 0.6008 GB, free: 3.836 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001751/0.2473, allocations: 366.8 kB / 0.6011 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003915/0.2477, allocations: 165 kB / 0.6013 GB, free: 3.309 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004341/0.2481, allocations: 253.8 kB / 0.6015 GB, free: 3.035 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008293/0.2489, allocations: 456 kB / 0.602 GB, free: 2.559 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.249, allocations: 0 / 0.602 GB, free: 2.559 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00109/0.2501, allocations: 0.5623 MB / 0.6025 GB, free: 1.984 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.938e-05/0.2501, allocations: 41.62 kB / 0.6025 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.2501, allocations: 0 / 0.6025 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.985e-05/0.2502, allocations: 4 kB / 0.6026 GB, free: 1.934 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000502/0.2507, allocations: 115.8 kB / 0.6027 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.2507, allocations: 8.25 kB / 0.6027 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003791/0.2511, allocations: 63.5 kB / 0.6027 GB, free: 1.75 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.125e-05/0.2511, allocations: 20 kB / 0.6027 GB, free: 1.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.0002981/0.2514, allocations: 205.7 kB / 0.6029 GB, free: 1.52 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.521e-05/0.2515, allocations: 59.28 kB / 0.603 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001296/0.2516, allocations: 65.58 kB / 0.6031 GB, free: 1.398 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.2517, allocations: 4 kB / 0.6031 GB, free: 1.395 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.221e-05/0.2517, allocations: 4 kB / 0.6031 GB, free: 1.391 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.2517, allocations: 3.984 kB / 0.6031 GB, free: 1.387 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001871/0.2536, allocations: 1.177 MB / 0.6042 GB, free: 152 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.2536, allocations: 4 kB / 0.6042 GB, free: 148 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004693/0.2541, allocations: 91.89 kB / 0.6043 GB, free: 56 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.122e-06/0.2541, allocations: 3.984 kB / 0.6043 GB, free: 52 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.493e-05/0.2541, allocations: 8 kB / 0.6043 GB, free: 44 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.2541, allocations: 4 kB / 0.6043 GB, free: 40 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.2541, allocations: 0 / 0.6043 GB, free: 40 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4315/0.6856, allocations: 0.757 MB / 0.6051 GB, free: 52.6 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002306/0.6859, allocations: 169.4 kB / 0.6052 GB, free: 52.51 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.952e-05/0.6859, allocations: 11.19 kB / 0.6052 GB, free: 52.51 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003103/0.6863, allocations: 30.3 kB / 0.6053 GB, free: 52.51 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001204/0.6864, allocations: 37.11 kB / 0.6053 GB, free: 52.51 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.381e-05/0.6864, allocations: 16.88 kB / 0.6053 GB, free: 52.51 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003704/0.6868, allocations: 304.6 kB / 0.6056 GB, free: 52.42 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6868, allocations: 4.562 kB / 0.6056 GB, free: 52.42 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005111/0.6873, allocations: 140.1 kB / 0.6058 GB, free: 52.42 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.0001489/0.6875, allocations: 117.5 kB / 0.6059 GB, free: 52.33 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009228/0.6884, allocations: 483 kB / 0.6063 GB, free: 52.21 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.6884, allocations: 0 / 0.6063 GB, free: 52.21 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003848/0.6888, allocations: 216.9 kB / 0.6065 GB, free: 52.14 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007872/0.6896, allocations: 146.6 kB / 0.6067 GB, free: 52.11 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002705/0.6923, allocations: 1.643 MB / 0.6083 GB, free: 51.12 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003299/0.6927, allocations: 0.8913 MB / 0.6091 GB, free: 50.41 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001493/0.6928, allocations: 41.22 kB / 0.6092 GB, free: 50.41 MB / 0.4981 GB Notification: Performance of SimCode: time 1.693e-06/0.6929, allocations: 0 / 0.6092 GB, free: 50.41 MB / 0.4981 GB Notification: Performance of Templates: time 0.01099/0.7038, allocations: 7.58 MB / 0.6166 GB, free: 49.59 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.makefile (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 & ./IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)