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.01235/0.01235, allocations: 1.754 MB / 20.61 MB, free: 1.004 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.001522/0.001522, allocations: 102.2 kB / 24.18 MB, free: 2.438 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.001876/0.001876, allocations: 208.9 kB / 27.9 MB, free: 3.742 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.45/1.45, allocations: 230.6 MB / 262.1 MB, free: 5.852 MB / 206.1 MB " [Timeout remaining time 178] 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 1.038/1.038, allocations: 130.7 MB / 449.7 MB, free: 6.383 MB / 350.1 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.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_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: 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.06483/0.06483, allocations: 20.99 MB / 0.6363 GB, free: 4.23 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1645/0.2294, allocations: 81.9 MB / 0.7163 GB, free: 2.246 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.4548/0.6841, allocations: 42.07 MB / 0.7574 GB, free: 23.95 MB / 0.5607 GB Notification: Performance of NFInst.instExpressions: time 0.01671/0.7008, allocations: 12.57 MB / 0.7697 GB, free: 15.42 MB / 0.5607 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001876/0.7027, allocations: 52.44 kB / 0.7697 GB, free: 15.39 MB / 0.5607 GB Notification: Performance of NFTyping.typeComponents: time 0.002995/0.7057, allocations: 0.9594 MB / 0.7707 GB, free: 14.95 MB / 0.5607 GB Notification: Performance of NFTyping.typeBindings: time 0.002128/0.7078, allocations: 0.8895 MB / 0.7715 GB, free: 14.41 MB / 0.5607 GB Notification: Performance of NFTyping.typeClassSections: time 0.003839/0.7117, allocations: 1.585 MB / 0.7731 GB, free: 13.61 MB / 0.5607 GB Notification: Performance of NFFlatten.flatten: time 0.002877/0.7146, allocations: 2.456 MB / 0.7755 GB, free: 12.42 MB / 0.5607 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001154/0.7157, allocations: 0.8496 MB / 0.7763 GB, free: 11.99 MB / 0.5607 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001143/0.7169, allocations: 1.012 MB / 0.7773 GB, free: 11.52 MB / 0.5607 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001232/0.7181, allocations: 1.073 MB / 0.7783 GB, free: 11.05 MB / 0.5607 GB Notification: Performance of NFPackage.collectConstants: time 0.0002854/0.7184, allocations: 187.6 kB / 0.7785 GB, free: 11.05 MB / 0.5607 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002091/0.7205, allocations: 0.9805 MB / 0.7795 GB, free: 10.78 MB / 0.5607 GB Notification: Performance of NFScalarize.scalarize: time 0.0004497/0.7209, allocations: 0.5924 MB / 0.7801 GB, free: 10.45 MB / 0.5607 GB Notification: Performance of NFVerifyModel.verify: time 0.0006548/0.7216, allocations: 0.789 MB / 0.7808 GB, free: 9.977 MB / 0.5607 GB Notification: Performance of NFConvertDAE.convert: time 0.003733/0.7253, allocations: 3.408 MB / 0.7842 GB, free: 8.141 MB / 0.5607 GB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.7253, allocations: 1.125 kB / 0.7842 GB, free: 8.141 MB / 0.5607 GB Notification: Performance of FrontEnd: time 1.323e-06/0.7253, allocations: 2.625 kB / 0.7842 GB, free: 8.141 MB / 0.5607 GB Notification: Performance of Transformations before backend: time 2.97e-05/0.7253, allocations: 0 / 0.7842 GB, free: 8.141 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.003947/0.7293, allocations: 2.946 MB / 0.787 GB, free: 6.008 MB / 0.5607 GB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.7293, allocations: 9.219 kB / 0.787 GB, free: 6.008 MB / 0.5607 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007519/0.7301, allocations: 299.3 kB / 0.7873 GB, free: 5.848 MB / 0.5607 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003476/0.7335, allocations: 2.364 MB / 0.7896 GB, free: 4.238 MB / 0.5607 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.766e-05/0.7336, allocations: 94.45 kB / 0.7897 GB, free: 4.191 MB / 0.5607 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001394/0.7338, allocations: 112.6 kB / 0.7898 GB, free: 4.152 MB / 0.5607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003479/0.7372, allocations: 2.336 MB / 0.7921 GB, free: 2.207 MB / 0.5607 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.653e-05/0.7373, allocations: 13.41 kB / 0.7921 GB, free: 2.199 MB / 0.5607 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.849e-05/0.7374, allocations: 54.94 kB / 0.7922 GB, free: 2.164 MB / 0.5607 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-05/0.7374, allocations: 41.73 kB / 0.7922 GB, free: 2.16 MB / 0.5607 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003025/0.7404, allocations: 1.397 MB / 0.7936 GB, free: 1.465 MB / 0.5607 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008308/0.7488, allocations: 9.339 MB / 0.8027 GB, free: 8.707 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003145/0.7519, allocations: 1.297 MB / 0.804 GB, free: 7.883 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007355/0.7526, allocations: 477.8 kB / 0.8044 GB, free: 7.566 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001551/0.7528, allocations: 59.09 kB / 0.8045 GB, free: 7.547 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002671/0.7555, allocations: 1.152 MB / 0.8056 GB, free: 6.766 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=175): time 4.328e-06/0.7555, allocations: 2.766 kB / 0.8056 GB, free: 6.766 MB / 0.5763 GB Notification: Performance of matching and sorting (n=175): time 0.008064/0.7635, allocations: 2.769 MB / 0.8083 GB, free: 3.988 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003735/0.7639, allocations: 0.613 MB / 0.8089 GB, free: 3.234 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002539/0.7664, allocations: 1.728 MB / 0.8106 GB, free: 1.457 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0001118/0.7666, allocations: 48.59 kB / 0.8107 GB, free: 1.406 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007733/0.7673, allocations: 0.839 MB / 0.8115 GB, free: 0.5586 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005736/0.7679, allocations: 0.5965 MB / 0.8121 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005931/0.7685, allocations: 418 kB / 0.8125 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001512/0.7686, allocations: 309.1 kB / 0.8127 GB, free: 15.24 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001069/0.7697, allocations: 0.574 MB / 0.8133 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001718/0.7714, allocations: 1.312 MB / 0.8146 GB, free: 13 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004927/0.7764, allocations: 2.752 MB / 0.8173 GB, free: 9.973 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-05/0.7764, allocations: 8 kB / 0.8173 GB, free: 9.965 MB / 0.5919 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004096/0.7805, allocations: 2.17 MB / 0.8194 GB, free: 7.789 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 6.03e-05/0.7805, allocations: 49.69 kB / 0.8195 GB, free: 7.734 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002828/0.7834, allocations: 1.445 MB / 0.8209 GB, free: 6.277 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000482/0.7838, allocations: 147.4 kB / 0.821 GB, free: 6.133 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001332/0.7852, allocations: 469.9 kB / 0.8215 GB, free: 5.676 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009724/0.7861, allocations: 0.7719 MB / 0.8222 GB, free: 4.879 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001297/0.7874, allocations: 221 kB / 0.8224 GB, free: 4.664 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002178/0.7877, allocations: 123.9 kB / 0.8225 GB, free: 4.543 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.00189/0.7895, allocations: 0.9429 MB / 0.8235 GB, free: 3.59 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001696/0.7912, allocations: 1.303 MB / 0.8247 GB, free: 1.965 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004775/0.796, allocations: 2.72 MB / 0.8274 GB, free: 14.97 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.663e-05/0.796, allocations: 4 kB / 0.8274 GB, free: 14.96 MB / 0.6075 GB Notification: Performance of matching and sorting (n=270) (initialization_lambda0): time 0.00404/0.8001, allocations: 2.134 MB / 0.8295 GB, free: 12.82 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.158e-05/0.8001, allocations: 52.3 kB / 0.8295 GB, free: 12.77 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002491/0.8026, allocations: 1.365 MB / 0.8309 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003302/0.8029, allocations: 121.3 kB / 0.831 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001315/0.8043, allocations: 475.2 kB / 0.8314 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002394/0.8067, allocations: 2.025 MB / 0.8334 GB, free: 8.688 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001237/0.8079, allocations: 176.8 kB / 0.8336 GB, free: 8.516 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002094/0.8081, allocations: 123.9 kB / 0.8337 GB, free: 8.395 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.000599/0.8087, allocations: 351 kB / 0.834 GB, free: 8.043 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000587/0.8093, allocations: 222.5 kB / 0.8342 GB, free: 7.824 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.003444/0.8127, allocations: 1.838 MB / 0.836 GB, free: 6.078 MB / 0.6075 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. " [Timeout remaining time 799] [Calling sys.exit(0), Time elapsed: 4.619686344638467] Failed to read output from testmodel.py, exit status != 0: 1.0004158336669207 1.016645033 0.28805445700000004 Calling exit ...