Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ClaRa_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.01676/0.01676, allocations: 1.761 MB / 21.35 MB, free: 0.6055 MB / 14.72 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.001726/0.001726, allocations: 106.4 kB / 24.95 MB, free: 2.199 MB / 14.72 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.003788/0.003788, allocations: 203.8 kB / 28.67 MB, free: 3.48 MB / 19.63 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 1.487/1.487, allocations: 230.6 MB / 262.8 MB, free: 6.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.9.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.9.0/package.mo): time 1.093/1.093, allocations: 130.7 MB / 450.4 MB, free: 6.789 MB / 350.1 MB " [Timeout remaining time 179] Using package ClaRa with version 1.9.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.9.0/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.3.1 (/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_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_ClaRa.Components.Utilities.Blocks.Check.test_2_LimPID") [Timeout 800] "Notification: SMArtInt 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: ClaRa 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: Skipped loading package TILMedia (1.9.0 ClaRa) using MODELICAPATH /home/hudson/saved_omc/libraries/.openmodelica/libraries (uses-annotation may be wrong). Warning: Requested package SMArtInt of version 0.5.1, but this package was already loaded with version 0.3.1. There are no conversion annotations for this version but 0.5.1 is newer than 0.3.1. There is a possibility that 0.3.1 remains backwards compatible, but it is not loaded so OpenModelica cannot verify this. Notification: Performance of FrontEnd - loaded program: time 0.0323/0.0323, allocations: 20.79 MB / 0.637 GB, free: 4.707 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1869/0.2192, allocations: 81.91 MB / 0.717 GB, free: 2.707 MB / 0.5294 GB 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.5643/0.7835, allocations: 43 MB / 0.7589 GB, free: 23.39 MB / 0.5607 GB Notification: Performance of NFInst.instExpressions: time 0.01805/0.8015, allocations: 13.25 MB / 0.7719 GB, free: 14.12 MB / 0.5607 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002386/0.8039, allocations: 50.31 kB / 0.7719 GB, free: 14.1 MB / 0.5607 GB Notification: Performance of NFTyping.typeComponents: time 0.003291/0.8072, allocations: 1.002 MB / 0.7729 GB, free: 13.63 MB / 0.5607 GB Notification: Performance of NFTyping.typeBindings: time 0.00298/0.8102, allocations: 0.8773 MB / 0.7738 GB, free: 13.09 MB / 0.5607 GB Notification: Performance of NFTyping.typeClassSections: time 0.004363/0.8145, allocations: 1.583 MB / 0.7753 GB, free: 12.29 MB / 0.5607 GB Notification: Performance of NFFlatten.flatten: time 0.004175/0.8187, allocations: 2.465 MB / 0.7777 GB, free: 11.1 MB / 0.5607 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001785/0.8205, allocations: 0.8018 MB / 0.7785 GB, free: 10.7 MB / 0.5607 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002146/0.8226, allocations: 1.015 MB / 0.7795 GB, free: 10.21 MB / 0.5607 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002409/0.825, allocations: 1.144 MB / 0.7806 GB, free: 9.684 MB / 0.5607 GB Notification: Performance of NFPackage.collectConstants: time 0.0007637/0.8258, allocations: 188.7 kB / 0.7808 GB, free: 9.68 MB / 0.5607 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003678/0.8295, allocations: 1.312 MB / 0.7821 GB, free: 9.285 MB / 0.5607 GB Notification: Performance of NFScalarize.scalarize: time 0.001003/0.8305, allocations: 0.5967 MB / 0.7827 GB, free: 8.953 MB / 0.5607 GB Notification: Performance of NFVerifyModel.verify: time 0.002009/0.8325, allocations: 1.029 MB / 0.7837 GB, free: 8.234 MB / 0.5607 GB Notification: Performance of NFConvertDAE.convert: time 0.00578/0.8383, allocations: 3.47 MB / 0.787 GB, free: 6.293 MB / 0.5607 GB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.8383, allocations: 0 / 0.787 GB, free: 6.293 MB / 0.5607 GB Notification: Performance of FrontEnd: time 2.725e-06/0.8383, allocations: 1.312 kB / 0.787 GB, free: 6.293 MB / 0.5607 GB Notification: Performance of Transformations before backend: time 4.012e-05/0.8383, allocations: 0 / 0.787 GB, free: 6.293 MB / 0.5607 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.004827/0.8431, allocations: 2.949 MB / 0.7899 GB, free: 4.156 MB / 0.5607 GB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.8432, allocations: 10.03 kB / 0.7899 GB, free: 4.156 MB / 0.5607 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008886/0.8441, allocations: 304.3 kB / 0.7902 GB, free: 3.992 MB / 0.5607 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004076/0.8482, allocations: 2.365 MB / 0.7925 GB, free: 2.383 MB / 0.5607 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.823e-05/0.8482, allocations: 87.42 kB / 0.7926 GB, free: 2.34 MB / 0.5607 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001471/0.8484, allocations: 115.5 kB / 0.7927 GB, free: 2.297 MB / 0.5607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003762/0.8521, allocations: 2.073 MB / 0.7948 GB, free: 0.6758 MB / 0.5607 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.516e-05/0.8522, allocations: 17.59 kB / 0.7948 GB, free: 0.668 MB / 0.5607 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.81e-05/0.8523, allocations: 49.72 kB / 0.7948 GB, free: 0.6367 MB / 0.5607 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.143e-05/0.8523, allocations: 37.64 kB / 0.7949 GB, free: 0.6328 MB / 0.5607 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003174/0.8555, allocations: 1.382 MB / 0.7962 GB, free: 15.96 MB / 0.5763 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01066/0.8661, allocations: 9.938 MB / 0.8059 GB, free: 6.625 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003575/0.8697, allocations: 1.273 MB / 0.8072 GB, free: 5.836 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007621/0.8705, allocations: 437.6 kB / 0.8076 GB, free: 5.562 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001929/0.8706, allocations: 67.61 kB / 0.8076 GB, free: 5.539 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002862/0.8735, allocations: 1.12 MB / 0.8087 GB, free: 4.816 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=175): time 3.336e-06/0.8735, allocations: 0 / 0.8087 GB, free: 4.816 MB / 0.5763 GB Notification: Performance of matching and sorting (n=175): time 0.008837/0.8823, allocations: 2.713 MB / 0.8114 GB, free: 2.125 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003826/0.8827, allocations: 0.6117 MB / 0.812 GB, free: 1.375 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002963/0.8857, allocations: 1.766 MB / 0.8137 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.00021/0.8859, allocations: 45.7 kB / 0.8137 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009502/0.8869, allocations: 0.8356 MB / 0.8146 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006456/0.8875, allocations: 0.5964 MB / 0.8151 GB, free: 14.07 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00073/0.8882, allocations: 423 kB / 0.8155 GB, free: 13.65 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001352/0.8884, allocations: 305.1 kB / 0.8158 GB, free: 13.35 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001127/0.8895, allocations: 0.5439 MB / 0.8164 GB, free: 12.8 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001762/0.8913, allocations: 1.199 MB / 0.8175 GB, free: 11.31 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005352/0.8966, allocations: 2.753 MB / 0.8202 GB, free: 8.293 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.812e-05/0.8966, allocations: 4 kB / 0.8202 GB, free: 8.289 MB / 0.5919 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004644/0.9013, allocations: 2.143 MB / 0.8223 GB, free: 6.152 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 7.12e-05/0.9013, allocations: 41.7 kB / 0.8224 GB, free: 6.105 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002958/0.9043, allocations: 1.412 MB / 0.8237 GB, free: 4.691 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005101/0.9048, allocations: 146.1 kB / 0.8239 GB, free: 4.547 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001365/0.9062, allocations: 471.2 kB / 0.8243 GB, free: 4.086 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009599/0.9071, allocations: 0.7707 MB / 0.8251 GB, free: 3.293 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001551/0.9087, allocations: 232.9 kB / 0.8253 GB, free: 3.066 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002591/0.9089, allocations: 123.9 kB / 0.8254 GB, free: 2.945 MB / 0.5919 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.002123/0.9111, allocations: 0.9148 MB / 0.8263 GB, free: 2.027 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001773/0.9128, allocations: 1.191 MB / 0.8275 GB, free: 0.5508 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005056/0.9179, allocations: 2.705 MB / 0.8301 GB, free: 13.58 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.051e-05/0.9179, allocations: 4 kB / 0.8301 GB, free: 13.58 MB / 0.6075 GB Notification: Performance of matching and sorting (n=270) (initialization_lambda0): time 0.005533/0.9234, allocations: 2.109 MB / 0.8322 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 7.812e-05/0.9235, allocations: 45.69 kB / 0.8322 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003217/0.9267, allocations: 1.322 MB / 0.8335 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003993/0.9271, allocations: 120 kB / 0.8336 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001456/0.9286, allocations: 475.2 kB / 0.8341 GB, free: 9.512 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002747/0.9313, allocations: 2.073 MB / 0.8361 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001642/0.933, allocations: 178.7 kB / 0.8363 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003008/0.9333, allocations: 127.9 kB / 0.8364 GB, free: 7.039 MB / 0.6075 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.000846/0.9341, allocations: 343.4 kB / 0.8367 GB, free: 6.695 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009002/0.935, allocations: 222.5 kB / 0.8369 GB, free: 6.477 MB / 0.6075 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.003954/0.939, allocations: 1.825 MB / 0.8387 GB, free: 4.75 MB / 0.6075 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. " [Timeout remaining time 799] [Calling sys.exit(0), Time elapsed: 4.936407058034092] Failed to read output from testmodel.py, exit status != 0: 1.1320850001648068 1.149705246 0.307847271 Calling exit ...