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.01001/0.01001, allocations: 1.779 MB / 18.83 MB, free: 4.262 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.001169/0.001169, allocations: 107.6 kB / 22.07 MB, free: 1.016 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.001698/0.001698, allocations: 215.3 kB / 25.45 MB, free: 3.289 MB / 14.72 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.403/1.403, allocations: 230.6 MB / 259.2 MB, free: 13.13 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.114/1.114, allocations: 130.6 MB / 446.3 MB, free: 14.93 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: Automatically loaded package TILMedia 1.9.0 ClaRa due to uses annotation from ClaRa. 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. 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.3906/0.3906, allocations: 46.14 MB / 0.6556 GB, free: 30.67 MB / 0.4982 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1773/0.5678, allocations: 89.05 MB / 0.7426 GB, free: 2.434 MB / 0.545 GB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.test_2_LimPID): time 0.0142/0.582, allocations: 10.04 MB / 0.7524 GB, free: 8.355 MB / 0.5607 GB Notification: Performance of NFInst.instExpressions: time 0.0221/0.6041, allocations: 13.05 MB / 0.7651 GB, free: 11.27 MB / 0.5763 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00181/0.6059, allocations: 51.62 kB / 0.7652 GB, free: 11.21 MB / 0.5763 GB Notification: Performance of NFTyping.typeComponents: time 0.003373/0.6093, allocations: 0.9868 MB / 0.7662 GB, free: 10.22 MB / 0.5763 GB Notification: Performance of NFTyping.typeBindings: time 0.003452/0.6128, allocations: 0.8621 MB / 0.767 GB, free: 9.355 MB / 0.5763 GB Notification: Performance of NFTyping.typeClassSections: time 0.004883/0.6176, allocations: 1.531 MB / 0.7685 GB, free: 7.824 MB / 0.5763 GB Notification: Performance of NFFlatten.flatten: time 0.005008/0.6226, allocations: 2.463 MB / 0.7709 GB, free: 5.352 MB / 0.5763 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001964/0.6246, allocations: 0.8254 MB / 0.7717 GB, free: 4.496 MB / 0.5763 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002322/0.6269, allocations: 1.012 MB / 0.7727 GB, free: 3.48 MB / 0.5763 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002286/0.6292, allocations: 1.142 MB / 0.7738 GB, free: 2.336 MB / 0.5763 GB Notification: Performance of NFPackage.collectConstants: time 0.0006436/0.6299, allocations: 184 kB / 0.774 GB, free: 2.156 MB / 0.5763 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00323/0.6331, allocations: 1.256 MB / 0.7752 GB, free: 0.8984 MB / 0.5763 GB Notification: Performance of NFScalarize.scalarize: time 0.00107/0.6342, allocations: 0.5993 MB / 0.7758 GB, free: 304 kB / 0.5763 GB Notification: Performance of NFVerifyModel.verify: time 0.002071/0.6362, allocations: 1.026 MB / 0.7768 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.007065/0.6433, allocations: 3.463 MB / 0.7802 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.6433, allocations: 0 / 0.7802 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.204e-06/0.6433, allocations: 4 kB / 0.7802 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0001128/0.6434, allocations: 0 / 0.7802 GB, free: 11.79 MB / 0.5919 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.006361/0.6498, allocations: 2.77 MB / 0.7829 GB, free: 8.941 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.6498, allocations: 8.031 kB / 0.7829 GB, free: 8.934 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001241/0.6511, allocations: 303.1 kB / 0.7832 GB, free: 8.637 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004938/0.656, allocations: 2.487 MB / 0.7856 GB, free: 6.109 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001028/0.6561, allocations: 94.2 kB / 0.7857 GB, free: 6.016 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002402/0.6563, allocations: 112 kB / 0.7858 GB, free: 5.906 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004851/0.6612, allocations: 2.068 MB / 0.7878 GB, free: 3.523 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.601e-05/0.6612, allocations: 19.86 kB / 0.7878 GB, free: 3.504 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000138/0.6614, allocations: 51.98 kB / 0.7879 GB, free: 3.453 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.934e-05/0.6614, allocations: 36 kB / 0.7879 GB, free: 3.418 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003804/0.6652, allocations: 1.381 MB / 0.7893 GB, free: 2.035 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01052/0.6757, allocations: 9.984 MB / 0.799 GB, free: 7.633 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003539/0.6793, allocations: 1.286 MB / 0.8003 GB, free: 6.234 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007573/0.68, allocations: 436.4 kB / 0.8007 GB, free: 5.777 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001744/0.6802, allocations: 68.45 kB / 0.8008 GB, free: 5.711 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002835/0.6831, allocations: 1.11 MB / 0.8019 GB, free: 4.531 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=175): time 3.587e-06/0.6831, allocations: 0 / 0.8019 GB, free: 4.531 MB / 0.6075 GB Notification: Performance of matching and sorting (n=175): time 0.008442/0.6915, allocations: 2.8 MB / 0.8046 GB, free: 1.699 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003797/0.6919, allocations: 0.609 MB / 0.8052 GB, free: 0.9492 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002716/0.6946, allocations: 1.767 MB / 0.8069 GB, free: 15.14 MB / 0.6232 GB Notification: Performance of collectPreVariables (initialization): time 0.0001236/0.6947, allocations: 50.25 kB / 0.807 GB, free: 15.09 MB / 0.6232 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008316/0.6955, allocations: 0.8395 MB / 0.8078 GB, free: 14.23 MB / 0.6232 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006157/0.6962, allocations: 0.5925 MB / 0.8084 GB, free: 13.64 MB / 0.6232 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006614/0.6968, allocations: 419.3 kB / 0.8088 GB, free: 13.22 MB / 0.6232 GB Notification: Performance of setup shared object (initialization): time 0.0001513/0.697, allocations: 305.1 kB / 0.809 GB, free: 12.92 MB / 0.6232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001079/0.6981, allocations: 0.5439 MB / 0.8096 GB, free: 12.37 MB / 0.6232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001717/0.6998, allocations: 1.204 MB / 0.8108 GB, free: 10.86 MB / 0.6232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005069/0.7048, allocations: 2.736 MB / 0.8134 GB, free: 7.797 MB / 0.6232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.297e-05/0.7049, allocations: 8 kB / 0.8134 GB, free: 7.789 MB / 0.6232 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004145/0.709, allocations: 2.15 MB / 0.8155 GB, free: 5.621 MB / 0.6232 GB Notification: Performance of prepare postOptimizeDAE: time 5.993e-05/0.7091, allocations: 45.69 kB / 0.8156 GB, free: 5.57 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002805/0.7119, allocations: 1.403 MB / 0.8169 GB, free: 4.156 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004864/0.7124, allocations: 140.8 kB / 0.8171 GB, free: 4.016 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00131/0.7137, allocations: 479.1 kB / 0.8175 GB, free: 3.547 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008967/0.7146, allocations: 0.771 MB / 0.8183 GB, free: 2.75 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001136/0.7157, allocations: 222.4 kB / 0.8185 GB, free: 2.531 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002027/0.7159, allocations: 127.9 kB / 0.8186 GB, free: 2.406 MB / 0.6232 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.001754/0.7176, allocations: 0.9179 MB / 0.8195 GB, free: 1.484 MB / 0.6232 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00162/0.7193, allocations: 1.185 MB / 0.8207 GB, free: 16 MB / 0.6388 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004777/0.724, allocations: 2.705 MB / 0.8233 GB, free: 12.98 MB / 0.6388 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.297e-05/0.7241, allocations: 8 kB / 0.8233 GB, free: 12.97 MB / 0.6388 GB Notification: Performance of matching and sorting (n=270) (initialization_lambda0): time 0.004155/0.7282, allocations: 2.107 MB / 0.8254 GB, free: 10.84 MB / 0.6388 GB Notification: Performance of prepare postOptimizeDAE: time 5.367e-05/0.7283, allocations: 45.69 kB / 0.8254 GB, free: 10.79 MB / 0.6388 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002419/0.7307, allocations: 1.324 MB / 0.8267 GB, free: 9.457 MB / 0.6388 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003242/0.731, allocations: 129.1 kB / 0.8268 GB, free: 9.328 MB / 0.6388 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001322/0.7323, allocations: 475.2 kB / 0.8273 GB, free: 8.863 MB / 0.6388 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002503/0.7348, allocations: 2.179 MB / 0.8294 GB, free: 6.543 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001173/0.736, allocations: 182.8 kB / 0.8296 GB, free: 6.363 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001899/0.7362, allocations: 123.9 kB / 0.8297 GB, free: 6.242 MB / 0.6388 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.0006012/0.7368, allocations: 345.2 kB / 0.83 GB, free: 5.891 MB / 0.6388 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004016/0.7372, allocations: 218.5 kB / 0.8303 GB, free: 5.676 MB / 0.6388 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.003406/0.7406, allocations: 1.829 MB / 0.832 GB, free: 3.816 MB / 0.6388 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. " [Timeout remaining time 799] [Calling sys.exit(0), Time elapsed: 4.261713874002453] Failed to read output from testmodel.py, exit status != 0: 0.7490264970110729 0.7614329750000001 0.115111899 Calling exit ...