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.01388/0.01388, allocations: 1.761 MB / 20.59 MB, free: 1.285 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.001564/0.001564, allocations: 109.2 kB / 24.19 MB, free: 2.684 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.00201/0.00201, allocations: 207.9 kB / 27.92 MB, free: 4.027 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.546/1.546, allocations: 230.6 MB / 262.1 MB, free: 6.004 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.069/1.069, allocations: 130.7 MB / 449.6 MB, free: 6.559 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.03419/0.03419, allocations: 20.79 MB / 0.6362 GB, free: 4.621 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1697/0.2039, allocations: 81.9 MB / 0.7162 GB, free: 2.637 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.4863/0.6902, allocations: 43 MB / 0.7582 GB, free: 23.3 MB / 0.5607 GB Notification: Performance of NFInst.instExpressions: time 0.018/0.7082, allocations: 13.26 MB / 0.7711 GB, free: 14.07 MB / 0.5607 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002856/0.711, allocations: 50.19 kB / 0.7712 GB, free: 14.04 MB / 0.5607 GB Notification: Performance of NFTyping.typeComponents: time 0.003832/0.7149, allocations: 1 MB / 0.7722 GB, free: 13.57 MB / 0.5607 GB Notification: Performance of NFTyping.typeBindings: time 0.003608/0.7185, allocations: 0.8764 MB / 0.773 GB, free: 13.03 MB / 0.5607 GB Notification: Performance of NFTyping.typeClassSections: time 0.004543/0.723, allocations: 1.589 MB / 0.7746 GB, free: 12.23 MB / 0.5607 GB Notification: Performance of NFFlatten.flatten: time 0.00412/0.7271, allocations: 2.464 MB / 0.777 GB, free: 11.04 MB / 0.5607 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001475/0.7286, allocations: 0.8019 MB / 0.7778 GB, free: 10.63 MB / 0.5607 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001737/0.7303, allocations: 1.014 MB / 0.7787 GB, free: 10.16 MB / 0.5607 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001878/0.7322, allocations: 1.141 MB / 0.7799 GB, free: 9.625 MB / 0.5607 GB Notification: Performance of NFPackage.collectConstants: time 0.0003668/0.7326, allocations: 189.8 kB / 0.78 GB, free: 9.621 MB / 0.5607 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002908/0.7355, allocations: 1.312 MB / 0.7813 GB, free: 9.227 MB / 0.5607 GB Notification: Performance of NFScalarize.scalarize: time 0.0006316/0.7361, allocations: 0.5958 MB / 0.7819 GB, free: 8.895 MB / 0.5607 GB Notification: Performance of NFVerifyModel.verify: time 0.001017/0.7371, allocations: 1.033 MB / 0.7829 GB, free: 8.176 MB / 0.5607 GB Notification: Performance of NFConvertDAE.convert: time 0.005581/0.7427, allocations: 3.467 MB / 0.7863 GB, free: 6.227 MB / 0.5607 GB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.7427, allocations: 0 / 0.7863 GB, free: 6.227 MB / 0.5607 GB Notification: Performance of FrontEnd: time 1.713e-06/0.7427, allocations: 0 / 0.7863 GB, free: 6.227 MB / 0.5607 GB Notification: Performance of Transformations before backend: time 4.245e-05/0.7428, allocations: 0.9375 kB / 0.7863 GB, free: 6.227 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.004823/0.7476, allocations: 2.95 MB / 0.7892 GB, free: 4.09 MB / 0.5607 GB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.7476, allocations: 11.81 kB / 0.7892 GB, free: 4.09 MB / 0.5607 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008296/0.7485, allocations: 302.7 kB / 0.7895 GB, free: 3.926 MB / 0.5607 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003974/0.7524, allocations: 2.362 MB / 0.7918 GB, free: 2.316 MB / 0.5607 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.424e-05/0.7525, allocations: 87.08 kB / 0.7919 GB, free: 2.273 MB / 0.5607 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001388/0.7527, allocations: 116.2 kB / 0.792 GB, free: 2.23 MB / 0.5607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003683/0.7563, allocations: 2.074 MB / 0.794 GB, free: 0.6094 MB / 0.5607 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.838e-05/0.7564, allocations: 16.33 kB / 0.794 GB, free: 0.6016 MB / 0.5607 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.575e-05/0.7565, allocations: 50 kB / 0.7941 GB, free: 0.5703 MB / 0.5607 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.156e-05/0.7565, allocations: 38.92 kB / 0.7941 GB, free: 0.5664 MB / 0.5607 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003182/0.7597, allocations: 1.378 MB / 0.7954 GB, free: 15.9 MB / 0.5763 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01085/0.7705, allocations: 9.942 MB / 0.8052 GB, free: 6.555 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003692/0.7742, allocations: 1.276 MB / 0.8064 GB, free: 5.766 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008417/0.7751, allocations: 438.5 kB / 0.8068 GB, free: 5.492 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002099/0.7753, allocations: 71.09 kB / 0.8069 GB, free: 5.465 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002774/0.7781, allocations: 1.114 MB / 0.808 GB, free: 4.746 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=175): time 3.737e-06/0.7781, allocations: 6.031 kB / 0.808 GB, free: 4.742 MB / 0.5763 GB Notification: Performance of matching and sorting (n=175): time 0.008512/0.7866, allocations: 2.711 MB / 0.8106 GB, free: 2.066 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003829/0.787, allocations: 0.6117 MB / 0.8112 GB, free: 1.316 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002938/0.7899, allocations: 1.766 MB / 0.813 GB, free: 15.51 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001797/0.7901, allocations: 45.7 kB / 0.813 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008643/0.7909, allocations: 0.8356 MB / 0.8138 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006683/0.7916, allocations: 0.599 MB / 0.8144 GB, free: 14.01 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006274/0.7922, allocations: 419.3 kB / 0.8148 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001324/0.7924, allocations: 305.1 kB / 0.8151 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001077/0.7935, allocations: 0.5439 MB / 0.8156 GB, free: 12.74 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001649/0.7951, allocations: 1.202 MB / 0.8168 GB, free: 11.25 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005227/0.8003, allocations: 2.747 MB / 0.8195 GB, free: 8.238 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.088e-05/0.8003, allocations: 4 kB / 0.8195 GB, free: 8.234 MB / 0.5919 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004665/0.805, allocations: 2.148 MB / 0.8216 GB, free: 6.094 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 8.662e-05/0.8051, allocations: 41.7 kB / 0.8216 GB, free: 6.047 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002904/0.808, allocations: 1.41 MB / 0.823 GB, free: 4.633 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005224/0.8085, allocations: 144.8 kB / 0.8231 GB, free: 4.488 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001355/0.8099, allocations: 471.2 kB / 0.8236 GB, free: 4.027 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009711/0.8109, allocations: 0.771 MB / 0.8243 GB, free: 3.234 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001633/0.8125, allocations: 232.9 kB / 0.8246 GB, free: 3.008 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002243/0.8127, allocations: 123.9 kB / 0.8247 GB, free: 2.887 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.001959/0.8147, allocations: 0.9153 MB / 0.8256 GB, free: 1.969 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001654/0.8163, allocations: 1.191 MB / 0.8267 GB, free: 0.4922 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00487/0.8212, allocations: 2.705 MB / 0.8294 GB, free: 13.52 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.641e-05/0.8212, allocations: 4 kB / 0.8294 GB, free: 13.52 MB / 0.6075 GB Notification: Performance of matching and sorting (n=270) (initialization_lambda0): time 0.004516/0.8257, allocations: 2.106 MB / 0.8314 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 7.024e-05/0.8258, allocations: 45.69 kB / 0.8315 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002555/0.8284, allocations: 1.327 MB / 0.8328 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003769/0.8287, allocations: 123.4 kB / 0.8329 GB, free: 9.914 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001409/0.8301, allocations: 471.2 kB / 0.8333 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002575/0.8327, allocations: 2.07 MB / 0.8354 GB, free: 7.281 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00164/0.8344, allocations: 182.7 kB / 0.8355 GB, free: 7.102 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002493/0.8346, allocations: 123.9 kB / 0.8357 GB, free: 6.98 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.0007282/0.8353, allocations: 349.5 kB / 0.836 GB, free: 6.629 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006617/0.836, allocations: 222.5 kB / 0.8362 GB, free: 6.41 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.003601/0.8396, allocations: 1.833 MB / 0.838 GB, free: 4.676 MB / 0.6075 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. " [Timeout remaining time 799] [Calling sys.exit(0), Time elapsed: 4.817453281997587] Failed to read output from testmodel.py, exit status != 0: 1.0331715819993406 1.048717146 0.30269227000000004 Calling exit ...