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.01349/0.01349, allocations: 1.747 MB / 21.35 MB, free: 480 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.001695/0.001695, allocations: 103 kB / 24.94 MB, free: 2.051 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.002239/0.002239, allocations: 209.9 kB / 28.65 MB, free: 3.34 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.517/1.517, allocations: 230.6 MB / 262.8 MB, free: 5.824 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.16/1.16, allocations: 130.7 MB / 450.4 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.06643/0.06643, allocations: 20.99 MB / 0.637 GB, free: 4.176 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.18/0.2465, allocations: 81.91 MB / 0.717 GB, free: 2.176 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.5477/0.7942, allocations: 42.06 MB / 0.7581 GB, free: 23.92 MB / 0.5607 GB Notification: Performance of NFInst.instExpressions: time 0.01886/0.8131, allocations: 12.58 MB / 0.7704 GB, free: 15.36 MB / 0.5607 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002403/0.8155, allocations: 50.16 kB / 0.7704 GB, free: 15.34 MB / 0.5607 GB Notification: Performance of NFTyping.typeComponents: time 0.003284/0.8187, allocations: 0.9616 MB / 0.7714 GB, free: 14.9 MB / 0.5607 GB Notification: Performance of NFTyping.typeBindings: time 0.003018/0.8218, allocations: 0.8816 MB / 0.7722 GB, free: 14.36 MB / 0.5607 GB Notification: Performance of NFTyping.typeClassSections: time 0.004658/0.8264, allocations: 1.59 MB / 0.7738 GB, free: 13.56 MB / 0.5607 GB Notification: Performance of NFFlatten.flatten: time 0.004393/0.8308, allocations: 2.46 MB / 0.7762 GB, free: 12.37 MB / 0.5607 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001593/0.8324, allocations: 0.8584 MB / 0.777 GB, free: 11.93 MB / 0.5607 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001799/0.8342, allocations: 1.007 MB / 0.778 GB, free: 11.46 MB / 0.5607 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001697/0.8359, allocations: 1.077 MB / 0.7791 GB, free: 11 MB / 0.5607 GB Notification: Performance of NFPackage.collectConstants: time 0.0003587/0.8363, allocations: 185.1 kB / 0.7792 GB, free: 11 MB / 0.5607 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002856/0.8391, allocations: 0.9834 MB / 0.7802 GB, free: 10.73 MB / 0.5607 GB Notification: Performance of NFScalarize.scalarize: time 0.0005817/0.8397, allocations: 0.5967 MB / 0.7808 GB, free: 10.4 MB / 0.5607 GB Notification: Performance of NFVerifyModel.verify: time 0.0008702/0.8406, allocations: 0.7888 MB / 0.7816 GB, free: 9.922 MB / 0.5607 GB Notification: Performance of NFConvertDAE.convert: time 0.005789/0.8464, allocations: 3.402 MB / 0.7849 GB, free: 8.074 MB / 0.5607 GB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.8464, allocations: 1.281 kB / 0.7849 GB, free: 8.074 MB / 0.5607 GB Notification: Performance of FrontEnd: time 1.993e-06/0.8464, allocations: 0 / 0.7849 GB, free: 8.074 MB / 0.5607 GB Notification: Performance of Transformations before backend: time 4.461e-05/0.8464, allocations: 0 / 0.7849 GB, free: 8.074 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.005098/0.8515, allocations: 2.943 MB / 0.7878 GB, free: 5.945 MB / 0.5607 GB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.8515, allocations: 9.469 kB / 0.7878 GB, free: 5.945 MB / 0.5607 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008853/0.8524, allocations: 304.5 kB / 0.7881 GB, free: 5.781 MB / 0.5607 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004304/0.8567, allocations: 2.373 MB / 0.7904 GB, free: 4.16 MB / 0.5607 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.095e-05/0.8568, allocations: 87.3 kB / 0.7905 GB, free: 4.117 MB / 0.5607 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001699/0.857, allocations: 112.5 kB / 0.7906 GB, free: 4.078 MB / 0.5607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004073/0.8611, allocations: 2.328 MB / 0.7928 GB, free: 2.141 MB / 0.5607 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.508e-05/0.8611, allocations: 13.62 kB / 0.7928 GB, free: 2.133 MB / 0.5607 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.682e-05/0.8612, allocations: 58.2 kB / 0.7929 GB, free: 2.094 MB / 0.5607 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.49e-05/0.8612, allocations: 38.66 kB / 0.7929 GB, free: 2.09 MB / 0.5607 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003276/0.8645, allocations: 1.399 MB / 0.7943 GB, free: 1.395 MB / 0.5607 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01086/0.8754, allocations: 9.337 MB / 0.8034 GB, free: 8.637 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003919/0.8793, allocations: 1.304 MB / 0.8047 GB, free: 7.805 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009762/0.8803, allocations: 475.3 kB / 0.8052 GB, free: 7.496 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002138/0.8805, allocations: 64.09 kB / 0.8052 GB, free: 7.473 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003188/0.8837, allocations: 1.15 MB / 0.8063 GB, free: 6.711 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=175): time 7.233e-06/0.8837, allocations: 0 / 0.8063 GB, free: 6.711 MB / 0.5763 GB Notification: Performance of matching and sorting (n=175): time 0.009085/0.8928, allocations: 2.772 MB / 0.809 GB, free: 3.934 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004134/0.8932, allocations: 0.6091 MB / 0.8096 GB, free: 3.184 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003867/0.897, allocations: 1.732 MB / 0.8113 GB, free: 1.402 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0002456/0.8973, allocations: 48.33 kB / 0.8114 GB, free: 1.352 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.001018/0.8983, allocations: 0.8429 MB / 0.8122 GB, free: 0.5 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008359/0.8991, allocations: 0.5927 MB / 0.8128 GB, free: 15.9 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009543/0.9001, allocations: 415.3 kB / 0.8132 GB, free: 15.49 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001364/0.9002, allocations: 312.8 kB / 0.8135 GB, free: 15.18 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001284/0.9015, allocations: 0.5729 MB / 0.814 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001962/0.9035, allocations: 1.318 MB / 0.8153 GB, free: 12.95 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005504/0.909, allocations: 2.751 MB / 0.818 GB, free: 9.918 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.828e-05/0.909, allocations: 8 kB / 0.818 GB, free: 9.91 MB / 0.5919 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004886/0.9139, allocations: 2.168 MB / 0.8201 GB, free: 7.734 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 7.363e-05/0.914, allocations: 45.69 kB / 0.8202 GB, free: 7.684 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003078/0.917, allocations: 1.448 MB / 0.8216 GB, free: 6.223 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005625/0.9176, allocations: 153.8 kB / 0.8217 GB, free: 6.078 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001457/0.9191, allocations: 467.2 kB / 0.8222 GB, free: 5.621 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001026/0.9201, allocations: 0.7743 MB / 0.8229 GB, free: 4.824 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001661/0.9217, allocations: 214.5 kB / 0.8231 GB, free: 4.613 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000288/0.922, allocations: 123.9 kB / 0.8233 GB, free: 4.492 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.002234/0.9243, allocations: 0.9455 MB / 0.8242 GB, free: 3.539 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001863/0.9261, allocations: 1.301 MB / 0.8255 GB, free: 1.914 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005109/0.9312, allocations: 2.71 MB / 0.8281 GB, free: 14.92 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.409e-05/0.9313, allocations: 7.938 kB / 0.8281 GB, free: 14.91 MB / 0.6075 GB Notification: Performance of matching and sorting (n=270) (initialization_lambda0): time 0.00467/0.9359, allocations: 2.139 MB / 0.8302 GB, free: 12.77 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.673e-05/0.936, allocations: 43.42 kB / 0.8302 GB, free: 12.72 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002654/0.9387, allocations: 1.367 MB / 0.8316 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003908/0.939, allocations: 124.7 kB / 0.8317 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001402/0.9405, allocations: 467.2 kB / 0.8321 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002631/0.9431, allocations: 2.039 MB / 0.8341 GB, free: 8.633 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001587/0.9447, allocations: 177.5 kB / 0.8343 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002985/0.945, allocations: 123.9 kB / 0.8344 GB, free: 8.34 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.0007644/0.9457, allocations: 345.2 kB / 0.8347 GB, free: 7.988 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008153/0.9465, allocations: 222.5 kB / 0.835 GB, free: 7.77 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.004089/0.9506, allocations: 1.839 MB / 0.8368 GB, free: 6.023 MB / 0.6075 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. " [Timeout remaining time 799] [Calling sys.exit(0), Time elapsed: 5.218940138351172] Failed to read output from testmodel.py, exit status != 0: 1.1541021317243576 1.170224781 0.32055618999999996 Calling exit ...