Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.test_2_LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtInt main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtInt main/package.mo): time 0.006281/0.006281, allocations: 1.446 MB / 20.54 MB, free: 4.008 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 91.45 kB / 24.16 MB, free: 396 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001027/0.001027, allocations: 164.4 kB / 27.85 MB, free: 5.496 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8863/0.8863, allocations: 177.2 MB / 208.6 MB, free: 2.941 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa main/package.mo): time 0.7173/0.7173, allocations: 102.4 MB / 367.9 MB, free: 1.441 MB / 330.8 MB " [Timeout remaining time 179] Using package ClaRa with version 1.9.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Using package SMArtInt with version 0.5.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtInt main/package.mo) Running command: translateModel(ClaRa.Components.Utilities.Blocks.Check.test_2_LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="PID.I.y|PID.resetValueI|PID.resetValueID|PID.resetValueP|PID.smoothPIDInput.y_aux|PID.smoothPIDOutput.y_aux|PID.smoothPIDOutput1.y_aux|Time|firstOrder.y",fileNamePrefix="ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.test_2_LimPID") translateModel(ClaRa.Components.Utilities.Blocks.Check.test_2_LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="PID.I.y|PID.resetValueI|PID.resetValueID|PID.resetValueP|PID.smoothPIDInput.y_aux|PID.smoothPIDOutput.y_aux|PID.smoothPIDOutput1.y_aux|Time|firstOrder.y",fileNamePrefix="ClaRa_dev_ClaRa.Components.Utilities.Blocks.Check.test_2_LimPID") [Timeout 800] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 0.5367 GB, free: 39.75 MB / 490.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.473e-05/2.651e-05, allocations: 3.25 kB / 0.5367 GB, free: 39.75 MB / 490.8 MB Notification: TILMedia requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Automatically loaded package TILMedia 1.9.0 ClaRa due to usage. Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.test_2_LimPID): time 0.1269/0.1269, allocations: 55.69 MB / 0.5911 GB, free: 4.312 MB / 490.8 MB Notification: Performance of NFInst.instExpressions: time 0.01199/0.1389, allocations: 12.37 MB / 0.6031 GB, free: 7.902 MB / 0.4949 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009642/0.1399, allocations: 43.69 kB / 0.6032 GB, free: 7.859 MB / 0.4949 GB Notification: Performance of NFTyping.typeComponents: time 0.001843/0.1417, allocations: 0.9669 MB / 0.6041 GB, free: 6.887 MB / 0.4949 GB Notification: Performance of NFTyping.typeBindings: time 0.001274/0.143, allocations: 0.9042 MB / 0.605 GB, free: 5.977 MB / 0.4949 GB Notification: Performance of NFTyping.typeClassSections: time 0.002326/0.1453, allocations: 1.62 MB / 0.6066 GB, free: 4.352 MB / 0.4949 GB Notification: Performance of NFFlatten.flatten: time 0.002086/0.1474, allocations: 2.527 MB / 0.6091 GB, free: 1.816 MB / 0.4949 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009318/0.1484, allocations: 0.8568 MB / 0.6099 GB, free: 0.9297 MB / 0.4949 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001176/0.1495, allocations: 1.368 MB / 0.6112 GB, free: 15.56 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008455/0.1504, allocations: 0.9131 MB / 0.6121 GB, free: 14.64 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0002071/0.1506, allocations: 188 kB / 0.6123 GB, free: 14.46 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00119/0.1518, allocations: 0.9861 MB / 0.6133 GB, free: 13.47 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0003357/0.1521, allocations: 0.6072 MB / 0.6139 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0004543/0.1526, allocations: 0.6193 MB / 0.6145 GB, free: 12.24 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.002576/0.1552, allocations: 3.368 MB / 0.6177 GB, free: 8.863 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1552, allocations: 0 / 0.6177 GB, free: 8.863 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.502e-06/0.1552, allocations: 4 kB / 0.6178 GB, free: 8.859 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.185e-05/0.1552, allocations: 0 / 0.6178 GB, free: 8.859 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 359 * Number of variables: 359 Notification: Performance of Generate backend data structure: time 0.002886/0.1581, allocations: 2.923 MB / 0.6206 GB, free: 5.879 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.1581, allocations: 12.03 kB / 0.6206 GB, free: 5.867 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004466/0.1586, allocations: 307.1 kB / 0.6209 GB, free: 5.566 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002459/0.161, allocations: 2.365 MB / 0.6232 GB, free: 3.164 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.252e-05/0.1611, allocations: 82.52 kB / 0.6233 GB, free: 3.082 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001013/0.1612, allocations: 112.4 kB / 0.6234 GB, free: 2.973 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002481/0.1637, allocations: 2.327 MB / 0.6257 GB, free: 276 kB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.615e-05/0.1637, allocations: 11.88 kB / 0.6257 GB, free: 264 kB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.995e-05/0.1638, allocations: 59.98 kB / 0.6257 GB, free: 204 kB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.526e-05/0.1638, allocations: 36 kB / 0.6258 GB, free: 168 kB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001964/0.1657, allocations: 1.402 MB / 0.6271 GB, free: 14.75 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005145/0.1709, allocations: 9.313 MB / 0.6362 GB, free: 5.086 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001922/0.1728, allocations: 1.293 MB / 0.6375 GB, free: 3.672 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004778/0.1733, allocations: 478.2 kB / 0.638 GB, free: 3.168 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001163/0.1734, allocations: 56.62 kB / 0.638 GB, free: 3.113 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001681/0.1751, allocations: 1.151 MB / 0.6391 GB, free: 1.883 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=175): time 4.007e-06/0.1751, allocations: 0 / 0.6391 GB, free: 1.883 MB / 0.5262 GB Notification: Performance of matching and sorting (n=175): time 0.004559/0.1797, allocations: 2.783 MB / 0.6419 GB, free: 15.07 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000201/0.1799, allocations: 0.6013 MB / 0.6424 GB, free: 14.33 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001437/0.1813, allocations: 1.732 MB / 0.6441 GB, free: 12.55 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 6.627e-05/0.1814, allocations: 46.17 kB / 0.6442 GB, free: 12.5 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004598/0.1818, allocations: 0.839 MB / 0.645 GB, free: 11.65 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003085/0.1821, allocations: 0.5847 MB / 0.6456 GB, free: 11.06 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003708/0.1825, allocations: 415.3 kB / 0.646 GB, free: 10.65 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 7.896e-05/0.1826, allocations: 305.6 kB / 0.6463 GB, free: 10.35 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000678/0.1833, allocations: 0.5846 MB / 0.6468 GB, free: 9.754 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001006/0.1843, allocations: 1.312 MB / 0.6481 GB, free: 8.109 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0029/0.1872, allocations: 2.755 MB / 0.6508 GB, free: 5.031 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.245e-06/0.1872, allocations: 8 kB / 0.6508 GB, free: 5.023 MB / 0.5418 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.002426/0.1896, allocations: 2.172 MB / 0.6529 GB, free: 2.828 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 5.503e-05/0.1896, allocations: 53.69 kB / 0.653 GB, free: 2.77 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001733/0.1914, allocations: 1.451 MB / 0.6544 GB, free: 1.301 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003032/0.1917, allocations: 152.9 kB / 0.6545 GB, free: 1.148 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007152/0.1924, allocations: 467.2 kB / 0.655 GB, free: 0.6914 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005741/0.193, allocations: 0.7709 MB / 0.6557 GB, free: 15.89 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005556/0.1935, allocations: 210.5 kB / 0.6559 GB, free: 15.69 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001263/0.1937, allocations: 124 kB / 0.6561 GB, free: 15.57 MB / 0.5574 GB Warning: Assuming fixed start value for the following 1 variables: PID.switch_OnOff.u2:DISCRETE(flow=false fixed = true ) \"Connector of Boolean input signal\" type: Boolean Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001126/0.1948, allocations: 0.9507 MB / 0.657 GB, free: 14.61 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001055/0.1958, allocations: 1.297 MB / 0.6583 GB, free: 12.98 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002733/0.1986, allocations: 2.709 MB / 0.6609 GB, free: 9.957 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.403e-06/0.1986, allocations: 4 kB / 0.6609 GB, free: 9.953 MB / 0.5574 GB Notification: Performance of matching and sorting (n=270) (initialization_lambda0): time 0.002264/0.2008, allocations: 2.152 MB / 0.663 GB, free: 7.777 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 3.531e-05/0.2009, allocations: 45.69 kB / 0.6631 GB, free: 7.727 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001523/0.2024, allocations: 1.369 MB / 0.6644 GB, free: 6.344 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001856/0.2026, allocations: 117.2 kB / 0.6645 GB, free: 6.227 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007246/0.2033, allocations: 475.3 kB / 0.665 GB, free: 5.762 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001465/0.2048, allocations: 2.036 MB / 0.6669 GB, free: 3.621 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004991/0.2053, allocations: 174.9 kB / 0.6671 GB, free: 3.449 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/0.2054, allocations: 124 kB / 0.6672 GB, free: 3.328 MB / 0.5574 GB Warning: Assuming fixed start value for the following 1 variables: PID.switch_OnOff.u2:DISCRETE(flow=false fixed = true ) \"Connector of Boolean input signal\" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 95 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.PID.time_lag_I_activation.entryTime,$PRE.PID.switch_OnOff.u2,activate_controller.y,ramp2.nextEventScaled,ramp2.nextEvent,$PRE.ramp2.nextEvent,ramp2.last,ramp2.b,ramp2.a,PID.I_activation.y,PID.time_lag_I_activation.entryTime,PID.activate_.y,PID.switch_OnOff.u2,$whenCondition2,$whenCondition1,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (252): * Single equations (assignments): 250 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0003406/0.2057, allocations: 353.7 kB / 0.6676 GB, free: 2.969 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002182/0.2059, allocations: 214.5 kB / 0.6678 GB, free: 2.758 MB / 0.5574 GB Warning: After manipulating the system with postOptModule wrapFunctionCalls the system is unbalanced. This indicates that the original system is singular. You can use -d=dumpCSE and -d=dumpCSE_verbose for more information. Error: Too many equations, over-determined system. The model has 189 equation(s) and 181 variable(s). Error: algorithm ramp2.nextEvent := pre(ramp2.nextEvent); ramp2.last := pre(ramp2.last); ramp2.nextEventScaled := pre(ramp2.nextEventScaled); ramp2.b := pre(ramp2.b); ramp2.a := pre(ramp2.a); $whenCondition2 := pre($whenCondition2); assert(not (ramp2.table[1,1] > 0.0 or ramp2.table[1,1] < 0.0), \"The first point in time has to be set to 0, but is table[1,1] = \" + String(ramp2.table[1,1], 6, 0, true)); $whenCondition2 := time >= pre(ramp2.nextEvent); when {$whenCondition2, false} then (ramp2.a, ramp2.b, ramp2.nextEventScaled, ramp2.last) := ClaRa.Components.Utilities.Blocks.Check.test_2_LimPID.ramp2.getInterpolationCoefficients(ramp2.table, ramp2.offset, ramp2.startTime, ramp2.timeScaled, ramp2.last, 2.220446049250313e-14, ramp2.shiftTime); ramp2.nextEvent := ramp2.nextEventScaled; end when; has size 6 but 3 variables (pump.V_flow, pump.summary.inlet.rho, actual_m_flow.y) Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001943/0.2079, allocations: 1.825 MB / 0.6696 GB, free: 0.9023 MB / 0.5574 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. " [Timeout remaining time 800] [Calling sys.exit(0), Time elapsed: 3.281126248650253] Failed to read output from testmodel.py, exit status != 0: 0.37341463193297386 0.647803182 0.491094594 Calling exit ...