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.01859/0.01859, 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.00214/0.00214, allocations: 98.44 kB / 24.18 MB, free: 2.441 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.002687/0.002687, allocations: 213.3 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.452/1.452, 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.037/1.037, allocations: 130.7 MB / 449.6 MB, free: 6.426 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.0636/0.0636, allocations: 20.99 MB / 0.6363 GB, free: 4.227 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1562/0.2198, allocations: 81.9 MB / 0.7163 GB, free: 2.234 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.4686/0.6883, allocations: 42.07 MB / 0.7574 GB, free: 23.97 MB / 0.5607 GB Notification: Performance of NFInst.instExpressions: time 0.02063/0.709, allocations: 12.57 MB / 0.7697 GB, free: 15.45 MB / 0.5607 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002117/0.7111, allocations: 49.91 kB / 0.7697 GB, free: 15.42 MB / 0.5607 GB Notification: Performance of NFTyping.typeComponents: time 0.003454/0.7145, allocations: 0.961 MB / 0.7706 GB, free: 14.98 MB / 0.5607 GB Notification: Performance of NFTyping.typeBindings: time 0.003195/0.7177, allocations: 0.8896 MB / 0.7715 GB, free: 14.44 MB / 0.5607 GB Notification: Performance of NFTyping.typeClassSections: time 0.004664/0.7224, allocations: 1.584 MB / 0.7731 GB, free: 13.64 MB / 0.5607 GB Notification: Performance of NFFlatten.flatten: time 0.004294/0.7267, allocations: 2.46 MB / 0.7755 GB, free: 12.45 MB / 0.5607 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001836/0.7285, allocations: 0.8503 MB / 0.7763 GB, free: 12.02 MB / 0.5607 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00211/0.7306, allocations: 1.015 MB / 0.7773 GB, free: 11.54 MB / 0.5607 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002176/0.7328, allocations: 1.069 MB / 0.7783 GB, free: 11.07 MB / 0.5607 GB Notification: Performance of NFPackage.collectConstants: time 0.0004186/0.7332, allocations: 188.8 kB / 0.7785 GB, free: 11.07 MB / 0.5607 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002788/0.736, allocations: 0.9782 MB / 0.7795 GB, free: 10.81 MB / 0.5607 GB Notification: Performance of NFScalarize.scalarize: time 0.0005973/0.7366, allocations: 0.5957 MB / 0.78 GB, free: 10.48 MB / 0.5607 GB Notification: Performance of NFVerifyModel.verify: time 0.0009603/0.7376, allocations: 0.7865 MB / 0.7808 GB, free: 10 MB / 0.5607 GB Notification: Performance of NFConvertDAE.convert: time 0.005331/0.7429, allocations: 3.404 MB / 0.7841 GB, free: 8.176 MB / 0.5607 GB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.7429, allocations: 0 / 0.7841 GB, free: 8.176 MB / 0.5607 GB Notification: Performance of FrontEnd: time 2.284e-06/0.7429, allocations: 1.188 kB / 0.7841 GB, free: 8.176 MB / 0.5607 GB Notification: Performance of Transformations before backend: time 4.262e-05/0.7429, allocations: 0 / 0.7841 GB, free: 8.176 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.004881/0.7478, allocations: 2.953 MB / 0.787 GB, free: 6.039 MB / 0.5607 GB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.7479, allocations: 13.16 kB / 0.787 GB, free: 6.039 MB / 0.5607 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008397/0.7487, allocations: 301.6 kB / 0.7873 GB, free: 5.875 MB / 0.5607 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004101/0.7528, allocations: 2.372 MB / 0.7896 GB, free: 4.258 MB / 0.5607 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.529e-05/0.7529, allocations: 87.27 kB / 0.7897 GB, free: 4.215 MB / 0.5607 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001503/0.753, allocations: 115 kB / 0.7898 GB, free: 4.176 MB / 0.5607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003723/0.7568, allocations: 2.333 MB / 0.7921 GB, free: 2.234 MB / 0.5607 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.406e-05/0.7568, allocations: 12.16 kB / 0.7921 GB, free: 2.227 MB / 0.5607 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.558e-05/0.7569, allocations: 54.44 kB / 0.7922 GB, free: 2.191 MB / 0.5607 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.338e-05/0.7569, allocations: 34.5 kB / 0.7922 GB, free: 2.191 MB / 0.5607 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003263/0.7602, allocations: 1.406 MB / 0.7936 GB, free: 1.492 MB / 0.5607 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009836/0.77, allocations: 9.327 MB / 0.8027 GB, free: 8.738 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003487/0.7735, allocations: 1.303 MB / 0.804 GB, free: 7.906 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008229/0.7743, allocations: 474.7 kB / 0.8044 GB, free: 7.594 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001677/0.7745, allocations: 60.22 kB / 0.8045 GB, free: 7.574 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00279/0.7773, allocations: 1.153 MB / 0.8056 GB, free: 6.762 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=175): time 3.867e-06/0.7773, allocations: 2.656 kB / 0.8056 GB, free: 6.762 MB / 0.5763 GB Notification: Performance of matching and sorting (n=175): time 0.008521/0.7858, allocations: 2.764 MB / 0.8083 GB, free: 3.988 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003867/0.7862, allocations: 0.6192 MB / 0.8089 GB, free: 3.234 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002827/0.789, allocations: 1.728 MB / 0.8106 GB, free: 1.457 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.000211/0.7892, allocations: 41.7 kB / 0.8106 GB, free: 1.41 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008014/0.79, allocations: 0.8429 MB / 0.8115 GB, free: 0.5586 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006613/0.7907, allocations: 0.5926 MB / 0.812 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000636/0.7913, allocations: 415.3 kB / 0.8124 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001398/0.7915, allocations: 309.1 kB / 0.8127 GB, free: 15.24 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001119/0.7926, allocations: 0.5794 MB / 0.8133 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001765/0.7944, allocations: 1.312 MB / 0.8146 GB, free: 13 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005131/0.7995, allocations: 2.748 MB / 0.8173 GB, free: 9.977 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.68e-05/0.7995, allocations: 17.47 kB / 0.8173 GB, free: 9.965 MB / 0.5919 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004418/0.8039, allocations: 2.172 MB / 0.8194 GB, free: 7.785 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 6.461e-05/0.804, allocations: 45.7 kB / 0.8194 GB, free: 7.734 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002963/0.807, allocations: 1.453 MB / 0.8209 GB, free: 6.273 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000489/0.8074, allocations: 141.8 kB / 0.821 GB, free: 6.133 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001343/0.8088, allocations: 473.9 kB / 0.8214 GB, free: 5.672 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009735/0.8098, allocations: 0.771 MB / 0.8222 GB, free: 4.875 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001338/0.8111, allocations: 213.2 kB / 0.8224 GB, free: 4.668 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002079/0.8113, allocations: 127.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.001851/0.8132, allocations: 0.9483 MB / 0.8234 GB, free: 3.59 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001667/0.8148, allocations: 1.301 MB / 0.8247 GB, free: 1.965 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004782/0.8196, allocations: 2.717 MB / 0.8274 GB, free: 14.97 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.193e-05/0.8196, 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.004254/0.8239, allocations: 2.143 MB / 0.8295 GB, free: 12.82 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.841e-05/0.8239, allocations: 51.88 kB / 0.8295 GB, free: 12.77 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002515/0.8264, allocations: 1.36 MB / 0.8308 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003418/0.8268, allocations: 116.8 kB / 0.831 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001351/0.8281, allocations: 479.1 kB / 0.8314 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002428/0.8306, allocations: 2.028 MB / 0.8334 GB, free: 8.688 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001393/0.832, allocations: 174.8 kB / 0.8336 GB, free: 8.516 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001938/0.8322, 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.0006288/0.8328, allocations: 353.9 kB / 0.834 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004686/0.8333, allocations: 221.2 kB / 0.8342 GB, free: 7.82 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.003431/0.8367, allocations: 1.834 MB / 0.836 GB, free: 6.074 MB / 0.6075 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. " [Timeout remaining time 799] [Calling sys.exit(0), Time elapsed: 4.669251976069063] Failed to read output from testmodel.py, exit status != 0: 1.0140570742078125 1.02954307 0.28349111399999993 Calling exit ...