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.008527/0.008527, allocations: 1.798 MB / 21.35 MB, free: 3.191 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.0007847/0.0007847, allocations: 84.56 kB / 25.15 MB, free: 7.473 MB / 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.0008679/0.0008679, allocations: 161.3 kB / 29.06 MB, free: 3.668 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.9827/0.9827, allocations: 177.2 MB / 210 MB, free: 3.582 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.6207/0.6207, allocations: 102.4 MB / 369.5 MB, free: 324 kB / 330.7 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 1.0.0 (/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.723e-06/1.723e-06, allocations: 0 / 469.9 MB, free: 19 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.599e-05/1.771e-05, allocations: 3.844 kB / 470 MB, free: 18.99 MB / 410.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.1231/0.1231, allocations: 59.14 MB / 0.5167 GB, free: 12.79 MB / 442.8 MB Notification: Performance of NFInst.instExpressions: time 0.01465/0.1377, allocations: 12.94 MB / 0.5293 GB, free: 15.81 MB / 458.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001122/0.1388, allocations: 47.62 kB / 0.5294 GB, free: 15.77 MB / 458.8 MB Notification: Performance of NFTyping.typeComponents: time 0.002347/0.1412, allocations: 0.9748 MB / 0.5303 GB, free: 14.79 MB / 458.8 MB Notification: Performance of NFTyping.typeBindings: time 0.00211/0.1433, allocations: 0.912 MB / 0.5312 GB, free: 13.87 MB / 458.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.004722/0.148, allocations: 1.604 MB / 0.5328 GB, free: 12.26 MB / 458.8 MB Notification: Performance of NFFlatten.flatten: time 0.004199/0.1522, allocations: 2.533 MB / 0.5353 GB, free: 9.723 MB / 458.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001199/0.1534, allocations: 0.8963 MB / 0.5361 GB, free: 8.797 MB / 458.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001488/0.1549, allocations: 1.372 MB / 0.5375 GB, free: 7.422 MB / 458.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009537/0.1559, allocations: 0.9152 MB / 0.5384 GB, free: 6.504 MB / 458.8 MB Notification: Performance of NFPackage.collectConstants: time 0.0001867/0.1561, allocations: 191.9 kB / 0.5386 GB, free: 6.316 MB / 458.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001675/0.1577, allocations: 0.9861 MB / 0.5395 GB, free: 5.328 MB / 458.8 MB Notification: Performance of NFScalarize.scalarize: time 0.0003767/0.1581, allocations: 0.6072 MB / 0.5401 GB, free: 4.719 MB / 458.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0005125/0.1586, allocations: 0.6154 MB / 0.5407 GB, free: 4.102 MB / 458.8 MB Notification: Performance of NFConvertDAE.convert: time 0.002955/0.1616, allocations: 2.46 MB / 0.5431 GB, free: 1.633 MB / 458.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.1616, allocations: 0 / 0.5431 GB, free: 1.633 MB / 458.8 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1616, allocations: 0 / 0.5431 GB, free: 1.633 MB / 458.8 MB Notification: Performance of Transformations before backend: time 1.613e-05/0.1616, allocations: 0 / 0.5431 GB, free: 1.633 MB / 458.8 MB 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.003158/0.1648, allocations: 3.123 MB / 0.5462 GB, free: 14.45 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.1648, allocations: 12.03 kB / 0.5462 GB, free: 14.43 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005573/0.1654, allocations: 391.2 kB / 0.5466 GB, free: 14.05 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002424/0.1678, allocations: 2.153 MB / 0.5487 GB, free: 11.86 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.997e-05/0.1678, allocations: 86.52 kB / 0.5487 GB, free: 11.77 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/0.1679, allocations: 112.4 kB / 0.5488 GB, free: 11.66 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002571/0.1705, allocations: 2.267 MB / 0.5511 GB, free: 8.918 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.425e-05/0.1705, allocations: 11.88 kB / 0.5511 GB, free: 8.906 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.824e-05/0.1706, allocations: 56 kB / 0.5511 GB, free: 8.852 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.624e-05/0.1706, allocations: 32 kB / 0.5512 GB, free: 8.82 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001719/0.1724, allocations: 1.007 MB / 0.5521 GB, free: 7.805 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006579/0.1789, allocations: 13.17 MB / 0.565 GB, free: 10.16 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001871/0.1808, allocations: 1.089 MB / 0.5661 GB, free: 8.918 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003673/0.1812, allocations: 341.3 kB / 0.5664 GB, free: 8.531 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001246/0.1813, allocations: 60.62 kB / 0.5664 GB, free: 8.473 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001527/0.1828, allocations: 0.9994 MB / 0.5674 GB, free: 7.371 MB / 490.8 MB Notification: Performance of pre-optimization done (n=175): time 5.08e-06/0.1828, allocations: 3.984 kB / 0.5674 GB, free: 7.367 MB / 490.8 MB Notification: Performance of matching and sorting (n=175): time 0.004458/0.1873, allocations: 2.281 MB / 0.5697 GB, free: 5.055 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002033/0.1875, allocations: 0.6091 MB / 0.5703 GB, free: 4.305 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001831/0.1893, allocations: 1.65 MB / 0.5719 GB, free: 2.598 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 9.674e-05/0.1894, allocations: 45.7 kB / 0.5719 GB, free: 2.547 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.000538/0.19, allocations: 0.9291 MB / 0.5728 GB, free: 1.609 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003942/0.1903, allocations: 0.6003 MB / 0.5734 GB, free: 1.004 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003839/0.1907, allocations: 433.1 kB / 0.5738 GB, free: 0.5742 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.1908, allocations: 476.8 kB / 0.5743 GB, free: 108 kB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004934/0.1913, allocations: 329.7 kB / 0.5746 GB, free: 15.77 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009467/0.1923, allocations: 1.341 MB / 0.5759 GB, free: 13.98 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001919/0.1942, allocations: 1.961 MB / 0.5778 GB, free: 11.61 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.055e-05/0.1942, allocations: 4 kB / 0.5778 GB, free: 11.6 MB / 0.4949 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.002645/0.1968, allocations: 1.737 MB / 0.5795 GB, free: 9.836 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 6.356e-05/0.1969, allocations: 44.05 kB / 0.5795 GB, free: 9.789 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001375/0.1983, allocations: 0.9887 MB / 0.5805 GB, free: 8.785 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000356/0.1986, allocations: 123.8 kB / 0.5806 GB, free: 8.66 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007483/0.1994, allocations: 471.2 kB / 0.5811 GB, free: 8.199 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000546/0.1999, allocations: 0.9475 MB / 0.582 GB, free: 7.223 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008105/0.2007, allocations: 210.5 kB / 0.5822 GB, free: 7.016 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001239/0.2009, allocations: 123.9 kB / 0.5823 GB, free: 6.895 MB / 0.4949 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.0008756/0.2017, allocations: 464.5 kB / 0.5828 GB, free: 6.43 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009254/0.2027, allocations: 1.341 MB / 0.5841 GB, free: 4.648 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00195/0.2046, allocations: 1.953 MB / 0.586 GB, free: 2.273 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.198e-06/0.2046, allocations: 8 kB / 0.586 GB, free: 2.266 MB / 0.4949 GB Notification: Performance of matching and sorting (n=270) (initialization_lambda0): time 0.002338/0.207, allocations: 1.744 MB / 0.5877 GB, free: 0.4961 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 3.946e-05/0.207, allocations: 50.69 kB / 0.5877 GB, free: 452 kB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00124/0.2082, allocations: 0.9418 MB / 0.5887 GB, free: 15.48 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002632/0.2085, allocations: 107.6 kB / 0.5888 GB, free: 15.37 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007549/0.2093, allocations: 475.2 kB / 0.5892 GB, free: 14.91 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001655/0.2109, allocations: 2.434 MB / 0.5916 GB, free: 12.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007475/0.2117, allocations: 174.9 kB / 0.5918 GB, free: 12.18 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001196/0.2118, allocations: 119.9 kB / 0.5919 GB, free: 12.06 MB / 0.5105 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.0004767/0.2123, allocations: 441 kB / 0.5923 GB, free: 11.62 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003508/0.2126, allocations: 254.5 kB / 0.5925 GB, free: 11.37 MB / 0.5105 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.001911/0.2145, allocations: 1.678 MB / 0.5942 GB, free: 9.652 MB / 0.5105 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. " [Timeout remaining time 799] [Calling sys.exit(0), Time elapsed: 3.1557896276935935]