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.01345/0.01345, allocations: 1.762 MB / 20.59 MB, free: 1.297 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.001207/0.001207, allocations: 105.7 kB / 24.19 MB, free: 2.688 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.001482/0.001482, allocations: 210.5 kB / 27.92 MB, free: 4.035 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.425/1.425, allocations: 230.6 MB / 262.1 MB, free: 6.016 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.049/1.049, allocations: 130.7 MB / 449.6 MB, free: 6.605 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.03277/0.03277, allocations: 20.79 MB / 0.6362 GB, free: 4.648 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1721/0.2048, allocations: 81.9 MB / 0.7162 GB, free: 2.664 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.4508/0.6556, allocations: 42.99 MB / 0.7582 GB, free: 23.32 MB / 0.5607 GB Notification: Performance of NFInst.instExpressions: time 0.01765/0.6733, allocations: 13.26 MB / 0.7711 GB, free: 14.04 MB / 0.5607 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002476/0.6757, allocations: 46.5 kB / 0.7712 GB, free: 14.02 MB / 0.5607 GB Notification: Performance of NFTyping.typeComponents: time 0.003173/0.6789, allocations: 1.001 MB / 0.7722 GB, free: 13.55 MB / 0.5607 GB Notification: Performance of NFTyping.typeBindings: time 0.002988/0.6819, allocations: 0.8799 MB / 0.773 GB, free: 13.01 MB / 0.5607 GB Notification: Performance of NFTyping.typeClassSections: time 0.004092/0.686, allocations: 1.585 MB / 0.7746 GB, free: 12.21 MB / 0.5607 GB Notification: Performance of NFFlatten.flatten: time 0.003558/0.6895, allocations: 2.462 MB / 0.777 GB, free: 11.02 MB / 0.5607 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001181/0.6907, allocations: 0.8061 MB / 0.7778 GB, free: 10.61 MB / 0.5607 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001249/0.692, allocations: 1.016 MB / 0.7787 GB, free: 10.13 MB / 0.5607 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001331/0.6933, allocations: 1.146 MB / 0.7799 GB, free: 9.598 MB / 0.5607 GB Notification: Performance of NFPackage.collectConstants: time 0.0002637/0.6936, allocations: 184.8 kB / 0.78 GB, free: 9.598 MB / 0.5607 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002761/0.6963, allocations: 1.311 MB / 0.7813 GB, free: 9.203 MB / 0.5607 GB Notification: Performance of NFScalarize.scalarize: time 0.0004728/0.6968, allocations: 0.603 MB / 0.7819 GB, free: 8.867 MB / 0.5607 GB Notification: Performance of NFVerifyModel.verify: time 0.0007872/0.6976, allocations: 1.023 MB / 0.7829 GB, free: 8.152 MB / 0.5607 GB Notification: Performance of NFConvertDAE.convert: time 0.004517/0.7021, allocations: 3.467 MB / 0.7863 GB, free: 6.246 MB / 0.5607 GB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.7021, allocations: 3.75 kB / 0.7863 GB, free: 6.246 MB / 0.5607 GB Notification: Performance of FrontEnd: time 1.492e-06/0.7021, allocations: 3.469 kB / 0.7863 GB, free: 6.246 MB / 0.5607 GB Notification: Performance of Transformations before backend: time 3.629e-05/0.7021, allocations: 0 / 0.7863 GB, free: 6.246 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.004202/0.7064, allocations: 2.95 MB / 0.7892 GB, free: 4.109 MB / 0.5607 GB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.7064, allocations: 9.969 kB / 0.7892 GB, free: 4.109 MB / 0.5607 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007622/0.7072, allocations: 304 kB / 0.7895 GB, free: 3.945 MB / 0.5607 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003875/0.711, allocations: 2.362 MB / 0.7918 GB, free: 2.336 MB / 0.5607 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.415e-05/0.7111, allocations: 87.3 kB / 0.7919 GB, free: 2.293 MB / 0.5607 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001625/0.7113, allocations: 117 kB / 0.792 GB, free: 2.25 MB / 0.5607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003684/0.715, allocations: 2.065 MB / 0.794 GB, free: 0.6328 MB / 0.5607 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.568e-05/0.715, allocations: 17.38 kB / 0.794 GB, free: 0.6211 MB / 0.5607 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.825e-05/0.7151, allocations: 52.94 kB / 0.7941 GB, free: 0.5898 MB / 0.5607 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.51e-05/0.7151, allocations: 38.7 kB / 0.7941 GB, free: 0.5859 MB / 0.5607 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003158/0.7183, allocations: 1.378 MB / 0.7954 GB, free: 15.92 MB / 0.5763 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009818/0.7281, allocations: 9.94 MB / 0.8052 GB, free: 6.578 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003383/0.7315, allocations: 1.28 MB / 0.8064 GB, free: 5.785 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000738/0.7322, allocations: 434 kB / 0.8068 GB, free: 5.512 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001796/0.7324, allocations: 70.52 kB / 0.8069 GB, free: 5.488 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00282/0.7352, allocations: 1.12 MB / 0.808 GB, free: 4.762 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=175): time 4.178e-06/0.7352, allocations: 2.094 kB / 0.808 GB, free: 4.762 MB / 0.5763 GB Notification: Performance of matching and sorting (n=175): time 0.008477/0.7437, allocations: 2.718 MB / 0.8106 GB, free: 2.102 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000361/0.7441, allocations: 0.6078 MB / 0.8112 GB, free: 1.355 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002857/0.7469, allocations: 1.766 MB / 0.813 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001616/0.7471, allocations: 45.7 kB / 0.813 GB, free: 15.49 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.000779/0.7479, allocations: 0.8394 MB / 0.8138 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006003/0.7485, allocations: 0.5925 MB / 0.8144 GB, free: 14.05 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005966/0.7491, allocations: 419.3 kB / 0.8148 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001387/0.7492, allocations: 307.7 kB / 0.8151 GB, free: 13.33 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001102/0.7503, allocations: 0.5439 MB / 0.8156 GB, free: 12.78 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00179/0.7521, allocations: 1.203 MB / 0.8168 GB, free: 11.29 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005242/0.7573, allocations: 2.745 MB / 0.8195 GB, free: 8.277 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.491e-05/0.7574, allocations: 8 kB / 0.8195 GB, free: 8.27 MB / 0.5919 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004345/0.7617, allocations: 2.142 MB / 0.8216 GB, free: 6.133 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.719e-05/0.7618, allocations: 41.7 kB / 0.8216 GB, free: 6.086 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002836/0.7646, allocations: 1.41 MB / 0.823 GB, free: 4.672 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005113/0.7651, allocations: 154.7 kB / 0.8231 GB, free: 4.523 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001382/0.7665, allocations: 467.2 kB / 0.8236 GB, free: 4.066 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009557/0.7674, allocations: 0.7741 MB / 0.8243 GB, free: 3.273 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001469/0.7689, allocations: 230.3 kB / 0.8246 GB, free: 3.047 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002458/0.7692, allocations: 123.9 kB / 0.8247 GB, free: 2.926 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.001989/0.7711, allocations: 0.9146 MB / 0.8256 GB, free: 2.012 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001603/0.7727, allocations: 1.195 MB / 0.8267 GB, free: 0.5312 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004837/0.7776, allocations: 2.701 MB / 0.8294 GB, free: 13.57 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.824e-05/0.7776, allocations: 4 kB / 0.8294 GB, free: 13.56 MB / 0.6075 GB Notification: Performance of matching and sorting (n=270) (initialization_lambda0): time 0.004295/0.7819, allocations: 2.104 MB / 0.8314 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.045e-05/0.782, allocations: 51.41 kB / 0.8315 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002518/0.7845, allocations: 1.324 MB / 0.8328 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003582/0.7848, allocations: 120.8 kB / 0.8329 GB, free: 9.953 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001386/0.7862, allocations: 471.2 kB / 0.8333 GB, free: 9.492 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002518/0.7887, allocations: 2.071 MB / 0.8354 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001452/0.7902, allocations: 181.4 kB / 0.8355 GB, free: 7.145 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002302/0.7904, allocations: 123.9 kB / 0.8357 GB, free: 7.023 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.0006374/0.7911, allocations: 346.7 kB / 0.836 GB, free: 6.672 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007156/0.7918, allocations: 229.1 kB / 0.8362 GB, free: 6.449 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.003644/0.7954, allocations: 1.818 MB / 0.838 GB, free: 4.727 MB / 0.6075 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. " [Timeout remaining time 799] [Calling sys.exit(0), Time elapsed: 4.577998983906582] Failed to read output from testmodel.py, exit status != 0: 0.9817733438685536 0.998091794 0.29270476900000003 Calling exit ...