Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ClaRa_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.008496/0.008496, allocations: 1.791 MB / 21.89 MB, free: 2.637 MB / 18.57 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.0007805/0.0007805, allocations: 87.67 kB / 25.62 MB, free: 6.535 MB / 18.57 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.0008663/0.0008663, allocations: 166.2 kB / 29.46 MB, free: 3.035 MB / 18.57 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 0.8442/0.8442, allocations: 177.1 MB / 210.3 MB, free: 1.758 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.9.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.9.0/package.mo): time 0.6981/0.6981, allocations: 102.5 MB / 369.8 MB, free: 0.9297 MB / 330.8 MB " [Timeout remaining time 179] Using package ClaRa with version 1.9.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.9.0/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 1.0.0 (/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_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_ClaRa.Components.Utilities.Blocks.Check.test_2_LimPID") [Timeout 800] "Notification: Performance of FrontEnd - loaded program: time 1.283e-06/1.283e-06, allocations: 0 / 469.9 MB, free: 12.98 MB / 442.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.596e-05/1.724e-05, allocations: 7.516 kB / 469.9 MB, free: 12.98 MB / 442.8 MB 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.1032/0.1032, allocations: 59.06 MB / 0.5166 GB, free: 1.855 MB / 490.8 MB Notification: Performance of NFInst.instExpressions: time 0.1933/0.2965, allocations: 12.9 MB / 0.5292 GB, free: 71.05 MB / 490.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001117/0.2976, allocations: 47.94 kB / 0.5292 GB, free: 71.03 MB / 490.8 MB Notification: Performance of NFTyping.typeComponents: time 0.00202/0.2996, allocations: 0.9731 MB / 0.5301 GB, free: 70.59 MB / 490.8 MB Notification: Performance of NFTyping.typeBindings: time 0.001514/0.3011, allocations: 0.9134 MB / 0.531 GB, free: 70.02 MB / 490.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.002564/0.3037, allocations: 1.607 MB / 0.5326 GB, free: 69.2 MB / 490.8 MB Notification: Performance of NFFlatten.flatten: time 0.002303/0.306, allocations: 2.539 MB / 0.5351 GB, free: 67.91 MB / 490.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001085/0.3071, allocations: 0.8949 MB / 0.536 GB, free: 67.33 MB / 490.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001702/0.3088, allocations: 1.374 MB / 0.5373 GB, free: 66.72 MB / 490.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001258/0.3101, allocations: 0.9046 MB / 0.5382 GB, free: 66.41 MB / 490.8 MB Notification: Performance of NFPackage.collectConstants: time 0.0003305/0.3104, allocations: 191 kB / 0.5384 GB, free: 66.4 MB / 490.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001647/0.312, allocations: 0.9924 MB / 0.5393 GB, free: 66.13 MB / 490.8 MB Notification: Performance of NFScalarize.scalarize: time 0.0004013/0.3124, allocations: 0.6054 MB / 0.5399 GB, free: 65.77 MB / 490.8 MB Notification: Performance of NFVerifyModel.verify: time 0.0006462/0.3131, allocations: 0.6173 MB / 0.5405 GB, free: 65.46 MB / 490.8 MB Notification: Performance of NFConvertDAE.convert: time 0.003065/0.3161, allocations: 2.452 MB / 0.5429 GB, free: 64.43 MB / 490.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3161, allocations: 0 / 0.5429 GB, free: 64.43 MB / 490.8 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3161, allocations: 1.281 kB / 0.5429 GB, free: 64.43 MB / 490.8 MB Notification: Performance of Transformations before backend: time 3.222e-05/0.3162, allocations: 1.969 kB / 0.5429 GB, free: 64.43 MB / 490.8 MB 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.003377/0.3196, allocations: 3.119 MB / 0.546 GB, free: 62.46 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.3196, allocations: 13.48 kB / 0.546 GB, free: 62.46 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007147/0.3203, allocations: 389.3 kB / 0.5464 GB, free: 62.29 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003009/0.3233, allocations: 2.129 MB / 0.5484 GB, free: 61.24 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.873e-05/0.3234, allocations: 83.89 kB / 0.5485 GB, free: 61.2 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001223/0.3235, allocations: 118.9 kB / 0.5486 GB, free: 61.16 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002645/0.3262, allocations: 2.262 MB / 0.5508 GB, free: 59.41 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.997e-05/0.3262, allocations: 16.91 kB / 0.5509 GB, free: 59.4 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.621e-05/0.3263, allocations: 55.89 kB / 0.5509 GB, free: 59.36 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.034e-05/0.3263, allocations: 34.88 kB / 0.5509 GB, free: 59.36 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002154/0.3285, allocations: 1.014 MB / 0.5519 GB, free: 59.18 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005543/0.334, allocations: 13.16 MB / 0.5648 GB, free: 46.97 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002009/0.336, allocations: 1.096 MB / 0.5659 GB, free: 46.42 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003875/0.3364, allocations: 336.2 kB / 0.5662 GB, free: 46.21 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001343/0.3365, allocations: 60.91 kB / 0.5662 GB, free: 46.21 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001675/0.3382, allocations: 0.9994 MB / 0.5672 GB, free: 45.75 MB / 490.8 MB Notification: Performance of pre-optimization done (n=175): time 4.819e-06/0.3382, allocations: 3.938 kB / 0.5672 GB, free: 45.74 MB / 490.8 MB Notification: Performance of matching and sorting (n=175): time 0.004874/0.3431, allocations: 2.29 MB / 0.5695 GB, free: 45.19 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.907e-05/0.3432, allocations: 0.6117 MB / 0.5701 GB, free: 44.46 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001704/0.3449, allocations: 1.652 MB / 0.5717 GB, free: 43.72 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001351/0.345, allocations: 44.39 kB / 0.5717 GB, free: 43.68 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004425/0.3455, allocations: 0.9279 MB / 0.5726 GB, free: 42.93 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.000345/0.3458, allocations: 0.5948 MB / 0.5732 GB, free: 42.45 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000392/0.3462, allocations: 433.6 kB / 0.5736 GB, free: 42.26 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 3.187e-05/0.3462, allocations: 477.6 kB / 0.5741 GB, free: 41.79 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004999/0.3467, allocations: 333.4 kB / 0.5744 GB, free: 41.71 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000708/0.3474, allocations: 1.339 MB / 0.5757 GB, free: 40.3 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00165/0.3491, allocations: 1.949 MB / 0.5776 GB, free: 38.71 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.33e-05/0.3491, allocations: 9.969 kB / 0.5776 GB, free: 38.71 MB / 490.8 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.002309/0.3514, allocations: 1.745 MB / 0.5793 GB, free: 38.07 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.148e-05/0.3514, allocations: 45.84 kB / 0.5793 GB, free: 38.04 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001269/0.3527, allocations: 0.9791 MB / 0.5803 GB, free: 37.62 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003302/0.353, allocations: 118.8 kB / 0.5804 GB, free: 37.58 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007494/0.3538, allocations: 476.6 kB / 0.5809 GB, free: 37.45 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004115/0.3542, allocations: 0.9367 MB / 0.5818 GB, free: 36.59 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000849/0.3551, allocations: 216.1 kB / 0.582 GB, free: 36.44 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000139/0.3552, allocations: 123.5 kB / 0.5821 GB, free: 36.41 MB / 490.8 MB 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.0008517/0.356, allocations: 476.8 kB / 0.5826 GB, free: 36.13 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007216/0.3568, allocations: 1.33 MB / 0.5839 GB, free: 34.62 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00145/0.3582, allocations: 1.955 MB / 0.5858 GB, free: 32.28 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.686e-06/0.3582, allocations: 8 kB / 0.5858 GB, free: 32.27 MB / 490.8 MB Notification: Performance of matching and sorting (n=270) (initialization_lambda0): time 0.002062/0.3603, allocations: 1.734 MB / 0.5875 GB, free: 30.53 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.003e-05/0.3603, allocations: 49.64 kB / 0.5875 GB, free: 30.47 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001095/0.3614, allocations: 0.9459 MB / 0.5884 GB, free: 29.51 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002398/0.3617, allocations: 115.5 kB / 0.5886 GB, free: 29.4 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007012/0.3624, allocations: 473.9 kB / 0.589 GB, free: 28.94 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001112/0.3635, allocations: 2.418 MB / 0.5914 GB, free: 26.41 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008275/0.3643, allocations: 178.8 kB / 0.5915 GB, free: 26.23 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001112/0.3644, allocations: 124.3 kB / 0.5917 GB, free: 26.11 MB / 490.8 MB 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.0004644/0.3649, allocations: 444.7 kB / 0.5921 GB, free: 25.67 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003313/0.3652, allocations: 250.5 kB / 0.5923 GB, free: 25.42 MB / 490.8 MB 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.001763/0.367, allocations: 1.678 MB / 0.594 GB, free: 23.81 MB / 490.8 MB Error: post-optimization module wrapFunctionCalls (simulation) failed. " [Timeout remaining time 800] [Calling sys.exit(0), Time elapsed: 2.7248463011346757]