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.01613/0.01613, allocations: 1.745 MB / 21.38 MB, free: 464 kB / 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.001373/0.001373, allocations: 104.4 kB / 24.97 MB, free: 2.035 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.001763/0.001763, allocations: 210.6 kB / 28.68 MB, free: 3.324 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.424/1.424, allocations: 230.6 MB / 262.9 MB, free: 5.809 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.076/1.076, allocations: 130.7 MB / 450.4 MB, free: 6.379 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.06219/0.06219, allocations: 20.61 MB / 0.6367 GB, free: 4.551 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1549/0.2171, allocations: 81.9 MB / 0.7167 GB, free: 2.566 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.4977/0.7148, allocations: 42.04 MB / 0.7577 GB, free: 24.3 MB / 0.5607 GB Notification: Performance of NFInst.instExpressions: time 0.0164/0.7312, allocations: 12.57 MB / 0.77 GB, free: 15.49 MB / 0.5607 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001973/0.7332, allocations: 52.69 kB / 0.7701 GB, free: 15.47 MB / 0.5607 GB Notification: Performance of NFTyping.typeComponents: time 0.003313/0.7365, allocations: 0.9643 MB / 0.771 GB, free: 15.03 MB / 0.5607 GB Notification: Performance of NFTyping.typeBindings: time 0.002519/0.739, allocations: 0.8852 MB / 0.7719 GB, free: 14.48 MB / 0.5607 GB Notification: Performance of NFTyping.typeClassSections: time 0.004318/0.7433, allocations: 1.581 MB / 0.7734 GB, free: 13.69 MB / 0.5607 GB Notification: Performance of NFFlatten.flatten: time 0.003905/0.7472, allocations: 2.469 MB / 0.7758 GB, free: 12.49 MB / 0.5607 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001305/0.7485, allocations: 0.8085 MB / 0.7766 GB, free: 12.08 MB / 0.5607 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001461/0.75, allocations: 1.015 MB / 0.7776 GB, free: 11.61 MB / 0.5607 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001504/0.7515, allocations: 1.136 MB / 0.7787 GB, free: 11.07 MB / 0.5607 GB Notification: Performance of NFPackage.collectConstants: time 0.0003271/0.7518, allocations: 184 kB / 0.7789 GB, free: 11.07 MB / 0.5607 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002486/0.7543, allocations: 1.002 MB / 0.7799 GB, free: 10.79 MB / 0.5607 GB Notification: Performance of NFScalarize.scalarize: time 0.000576/0.7549, allocations: 0.598 MB / 0.7805 GB, free: 10.46 MB / 0.5607 GB Notification: Performance of NFVerifyModel.verify: time 0.0007912/0.7557, allocations: 0.7789 MB / 0.7812 GB, free: 9.988 MB / 0.5607 GB Notification: Performance of NFConvertDAE.convert: time 0.004574/0.7603, allocations: 3.398 MB / 0.7845 GB, free: 8.188 MB / 0.5607 GB Notification: Performance of FrontEnd - DAE generated: time 4.678e-06/0.7603, allocations: 0 / 0.7845 GB, free: 8.188 MB / 0.5607 GB Notification: Performance of FrontEnd: time 1.644e-06/0.7603, allocations: 0 / 0.7845 GB, free: 8.188 MB / 0.5607 GB Notification: Performance of Transformations before backend: time 3.091e-05/0.7603, allocations: 3.781 kB / 0.7845 GB, free: 8.188 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.004244/0.7645, allocations: 2.948 MB / 0.7874 GB, free: 6.055 MB / 0.5607 GB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.7646, allocations: 9.5 kB / 0.7874 GB, free: 6.055 MB / 0.5607 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008828/0.7655, allocations: 301.6 kB / 0.7877 GB, free: 5.891 MB / 0.5607 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003659/0.7691, allocations: 2.374 MB / 0.79 GB, free: 4.273 MB / 0.5607 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.091e-05/0.7692, allocations: 86.39 kB / 0.7901 GB, free: 4.23 MB / 0.5607 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001529/0.7693, allocations: 118.9 kB / 0.7902 GB, free: 4.188 MB / 0.5607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003865/0.7732, allocations: 2.33 MB / 0.7925 GB, free: 2.246 MB / 0.5607 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.322e-05/0.7732, allocations: 14.53 kB / 0.7925 GB, free: 2.238 MB / 0.5607 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.935e-05/0.7733, allocations: 49.59 kB / 0.7926 GB, free: 2.207 MB / 0.5607 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-05/0.7734, allocations: 34.44 kB / 0.7926 GB, free: 2.207 MB / 0.5607 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003129/0.7765, allocations: 1.412 MB / 0.794 GB, free: 1.508 MB / 0.5607 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009048/0.7856, allocations: 9.339 MB / 0.8031 GB, free: 8.746 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003453/0.789, allocations: 1.305 MB / 0.8044 GB, free: 7.914 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007488/0.7898, allocations: 465.2 kB / 0.8048 GB, free: 7.609 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001794/0.7899, allocations: 67.38 kB / 0.8049 GB, free: 7.582 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002808/0.7927, allocations: 1.157 MB / 0.806 GB, free: 6.82 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=175): time 4.037e-06/0.7927, allocations: 6.219 kB / 0.806 GB, free: 6.82 MB / 0.5763 GB Notification: Performance of matching and sorting (n=175): time 0.008418/0.8012, allocations: 2.767 MB / 0.8087 GB, free: 4.164 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003609/0.8015, allocations: 0.604 MB / 0.8093 GB, free: 3.422 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002672/0.8042, allocations: 1.701 MB / 0.811 GB, free: 1.672 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0001475/0.8043, allocations: 53.27 kB / 0.811 GB, free: 1.617 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007859/0.8051, allocations: 0.839 MB / 0.8118 GB, free: 0.7695 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005968/0.8057, allocations: 0.5886 MB / 0.8124 GB, free: 180 kB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006571/0.8064, allocations: 419.3 kB / 0.8128 GB, free: 15.76 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001386/0.8065, allocations: 305.1 kB / 0.8131 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001049/0.8076, allocations: 0.5794 MB / 0.8137 GB, free: 14.87 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001765/0.8093, allocations: 1.316 MB / 0.815 GB, free: 13.21 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004966/0.8143, allocations: 2.749 MB / 0.8176 GB, free: 10.18 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-05/0.8143, allocations: 6.906 kB / 0.8177 GB, free: 10.18 MB / 0.5919 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004153/0.8185, allocations: 2.171 MB / 0.8198 GB, free: 8.004 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 6.658e-05/0.8185, allocations: 49.69 kB / 0.8198 GB, free: 7.949 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002836/0.8214, allocations: 1.455 MB / 0.8212 GB, free: 6.484 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004987/0.8219, allocations: 145.8 kB / 0.8214 GB, free: 6.34 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001361/0.8232, allocations: 469.9 kB / 0.8218 GB, free: 5.883 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009095/0.8241, allocations: 0.7716 MB / 0.8226 GB, free: 5.086 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001392/0.8255, allocations: 210.5 kB / 0.8228 GB, free: 4.879 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000221/0.8258, allocations: 122.6 kB / 0.8229 GB, free: 4.762 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.001974/0.8277, allocations: 0.9507 MB / 0.8238 GB, free: 3.801 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001652/0.8294, allocations: 1.297 MB / 0.8251 GB, free: 2.18 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004733/0.8341, allocations: 2.708 MB / 0.8277 GB, free: 15.19 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.289e-05/0.8341, allocations: 4 kB / 0.8277 GB, free: 15.18 MB / 0.6075 GB Notification: Performance of matching and sorting (n=270) (initialization_lambda0): time 0.004225/0.8384, allocations: 2.143 MB / 0.8298 GB, free: 13.04 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.46e-05/0.8384, allocations: 50.78 kB / 0.8299 GB, free: 12.98 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002434/0.8408, allocations: 1.367 MB / 0.8312 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003371/0.8412, allocations: 119.5 kB / 0.8313 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001347/0.8425, allocations: 471.2 kB / 0.8318 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002313/0.8448, allocations: 2.036 MB / 0.8338 GB, free: 8.902 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001332/0.8462, allocations: 174.8 kB / 0.8339 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002085/0.8464, allocations: 123.9 kB / 0.8341 GB, free: 8.609 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.0006489/0.847, allocations: 358.2 kB / 0.8344 GB, free: 8.246 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004713/0.8475, allocations: 221.2 kB / 0.8346 GB, free: 8.031 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.003399/0.8509, allocations: 1.809 MB / 0.8364 GB, free: 6.316 MB / 0.6075 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. " [Timeout remaining time 799] [Calling sys.exit(0), Time elapsed: 4.68307059595827] Failed to read output from testmodel.py, exit status != 0: 1.046246142941527 1.061382091 0.297994851 Calling exit ...