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.01029/0.01029, allocations: 100.8 kB / 15.73 MB, free: 6.062 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.00141/0.001411, allocations: 193.5 kB / 16.67 MB, free: 5.977 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.454/1.454, allocations: 222.9 MB / 240.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8624/0.8624, allocations: 135.1 MB / 425.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001641/0.001641, allocations: 62.84 kB / 0.5856 GB, free: 21.68 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2079/0.2096, allocations: 80.93 MB / 0.6646 GB, free: 5.824 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.006462/0.2161, allocations: 4.104 MB / 0.6686 GB, free: 1.699 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003445/0.2196, allocations: 1.321 MB / 0.6699 GB, free: 380 kB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001037/0.2206, allocations: 23.88 kB / 0.6699 GB, free: 356 kB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0006267/0.2213, allocations: 130.7 kB / 0.67 GB, free: 224 kB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0008958/0.2222, allocations: 182.4 kB / 0.6702 GB, free: 40 kB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001321/0.2236, allocations: 421.9 kB / 0.6706 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001554/0.2251, allocations: 0.9554 MB / 0.6716 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008848/0.226, allocations: 470 kB / 0.672 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006162/0.2267, allocations: 326.8 kB / 0.6723 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000596/0.2273, allocations: 338.4 kB / 0.6726 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0002431/0.2275, allocations: 92 kB / 0.6727 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002011/0.2277, allocations: 91.94 kB / 0.6728 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001918/0.2279, allocations: 183.4 kB / 0.673 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0005479/0.2285, allocations: 390 kB / 0.6734 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.001287/0.2298, allocations: 1.063 MB / 0.6744 GB, free: 11.73 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.2298, allocations: 4 kB / 0.6744 GB, free: 11.73 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.903e-06/0.2298, allocations: 0 / 0.6744 GB, free: 11.73 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 4.71e-05/0.2299, allocations: 0 / 0.6744 GB, free: 11.73 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.002615/0.2325, allocations: 1.073 MB / 0.6755 GB, free: 10.6 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/0.2326, allocations: 13.11 kB / 0.6755 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002377/0.2328, allocations: 83.91 kB / 0.6755 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001105/0.2339, allocations: 0.5689 MB / 0.6761 GB, free: 9.895 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.614e-05/0.234, allocations: 41.69 kB / 0.6761 GB, free: 9.855 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.598e-05/0.2341, allocations: 60.38 kB / 0.6762 GB, free: 9.797 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001069/0.2352, allocations: 0.6117 MB / 0.6768 GB, free: 9.16 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.293e-05/0.2352, allocations: 0 / 0.6768 GB, free: 9.16 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.077e-05/0.2352, allocations: 20 kB / 0.6768 GB, free: 9.141 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.808e-05/0.2353, allocations: 19.98 kB / 0.6768 GB, free: 9.121 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009091/0.2362, allocations: 457 kB / 0.6773 GB, free: 8.672 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00276/0.239, allocations: 1.989 MB / 0.6792 GB, free: 6.609 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008637/0.2398, allocations: 450.2 kB / 0.6796 GB, free: 6.164 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004096/0.2403, allocations: 243.4 kB / 0.6799 GB, free: 5.926 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 4.33e-05/0.2403, allocations: 8.422 kB / 0.6799 GB, free: 5.918 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000516/0.2408, allocations: 265.2 kB / 0.6801 GB, free: 5.645 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=49): time 2.695e-06/0.2408, allocations: 0 / 0.6801 GB, free: 5.645 MB / 0.5137 GB Notification: Performance of matching and sorting (n=49): time 0.001257/0.2421, allocations: 0.5844 MB / 0.6807 GB, free: 5.059 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.106e-05/0.2422, allocations: 59.84 kB / 0.6808 GB, free: 4.984 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004897/0.2427, allocations: 450 kB / 0.6812 GB, free: 4.535 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.748e-05/0.2427, allocations: 33.7 kB / 0.6812 GB, free: 4.496 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002252/0.2429, allocations: 324.3 kB / 0.6815 GB, free: 4.176 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/0.2431, allocations: 165.6 kB / 0.6817 GB, free: 4.012 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001413/0.2432, allocations: 94.16 kB / 0.6818 GB, free: 3.914 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001439/0.2434, allocations: 366.8 kB / 0.6821 GB, free: 3.547 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003563/0.2437, allocations: 165 kB / 0.6823 GB, free: 3.387 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003928/0.2441, allocations: 249.8 kB / 0.6825 GB, free: 3.113 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007454/0.2449, allocations: 456 kB / 0.683 GB, free: 2.637 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.2449, allocations: 0 / 0.683 GB, free: 2.637 MB / 0.5137 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009953/0.2459, allocations: 0.5546 MB / 0.6835 GB, free: 2.07 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.481e-05/0.2459, allocations: 45.88 kB / 0.6835 GB, free: 2.02 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/0.246, allocations: 8 kB / 0.6836 GB, free: 2.012 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.246, allocations: 7.938 kB / 0.6836 GB, free: 2.004 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000475/0.2465, allocations: 107.9 kB / 0.6837 GB, free: 1.898 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.543e-05/0.2465, allocations: 7.938 kB / 0.6837 GB, free: 1.891 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000311/0.2468, allocations: 59.45 kB / 0.6837 GB, free: 1.832 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.024e-05/0.2469, allocations: 20 kB / 0.6837 GB, free: 1.812 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.0002447/0.2471, allocations: 209.8 kB / 0.6839 GB, free: 1.598 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.771e-05/0.2472, allocations: 55.28 kB / 0.684 GB, free: 1.543 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001249/0.2473, allocations: 65.59 kB / 0.6841 GB, free: 1.48 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.2473, allocations: 7.984 kB / 0.6841 GB, free: 1.473 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/0.2473, allocations: 0 / 0.6841 GB, free: 1.473 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.2473, allocations: 0 / 0.6841 GB, free: 1.473 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001623/0.249, allocations: 1.182 MB / 0.6852 GB, free: 236 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.249, allocations: 0 / 0.6852 GB, free: 236 kB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004434/0.2494, allocations: 95.88 kB / 0.6853 GB, free: 140 kB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.574e-06/0.2495, allocations: 4 kB / 0.6853 GB, free: 136 kB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.234e-05/0.2495, allocations: 8 kB / 0.6853 GB, free: 128 kB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.2495, allocations: 4 kB / 0.6853 GB, free: 124 kB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.2495, allocations: 0 / 0.6853 GB, free: 124 kB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001262/0.2508, allocations: 0.7612 MB / 0.6861 GB, free: 15.34 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001656/0.251, allocations: 172.3 kB / 0.6862 GB, free: 15.16 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.743e-05/0.251, allocations: 12 kB / 0.6862 GB, free: 15.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002573/0.2513, allocations: 23.98 kB / 0.6863 GB, free: 15.12 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.2514, allocations: 36.39 kB / 0.6863 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.686e-05/0.2514, allocations: 19.92 kB / 0.6863 GB, free: 15.07 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003234/0.2518, allocations: 306.9 kB / 0.6866 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2518, allocations: 0 / 0.6866 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0004502/0.2522, allocations: 147.4 kB / 0.6868 GB, free: 14.62 MB / 0.5294 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.0001477/0.2524, allocations: 111.2 kB / 0.6869 GB, free: 14.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0008871/0.2533, allocations: 481 kB / 0.6873 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.2533, allocations: 0 / 0.6873 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.000385/0.2537, allocations: 226.3 kB / 0.6875 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007212/0.2544, allocations: 162.2 kB / 0.6877 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0025/0.2569, allocations: 1.33 MB / 0.689 GB, free: 12.29 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004261/0.2574, allocations: 0.8899 MB / 0.6899 GB, free: 11.38 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0002541/0.2576, allocations: 68.58 kB / 0.6899 GB, free: 11.3 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001186/0.2577, allocations: 43.44 kB / 0.69 GB, free: 11.26 MB / 0.5294 GB Notification: Performance of SimCode: time 2.384e-06/0.2577, allocations: 0 / 0.69 GB, free: 11.26 MB / 0.5294 GB Notification: Performance of Templates: time 0.01238/0.2701, allocations: 6 MB / 0.6958 GB, free: 5.34 MB / 0.5294 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)