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.01344/0.01344, allocations: 1.784 MB / 21.57 MB, free: 2.898 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.0008573/0.0008573, allocations: 85.97 kB / 25.41 MB, free: 6.496 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.0008531/0.0008531, allocations: 164.9 kB / 29.34 MB, free: 2.969 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.9011/0.9011, allocations: 177.2 MB / 210.3 MB, free: 3.434 MB / 186.7 MB " [Timeout remaining time 179] 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 0.6299/0.6299, allocations: 102.4 MB / 369.8 MB, free: 196 kB / 330.7 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 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_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: Performance of FrontEnd - loaded program: time 1.342e-06/1.342e-06, allocations: 0 / 470.4 MB, free: 18.81 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.816e-06/1.016e-05, allocations: 6.234 kB / 470.4 MB, free: 18.81 MB / 410.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.1025/0.1025, allocations: 58.95 MB / 0.517 GB, free: 12.66 MB / 442.8 MB Notification: Performance of NFInst.instExpressions: time 0.0128/0.1153, allocations: 12.89 MB / 0.5296 GB, free: 15.74 MB / 458.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008695/0.1161, allocations: 43.69 kB / 0.5296 GB, free: 15.7 MB / 458.8 MB Notification: Performance of NFTyping.typeComponents: time 0.001736/0.1179, allocations: 0.9708 MB / 0.5306 GB, free: 14.72 MB / 458.8 MB Notification: Performance of NFTyping.typeBindings: time 0.00106/0.1189, allocations: 0.9314 MB / 0.5315 GB, free: 13.78 MB / 458.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.002381/0.1213, allocations: 1.6 MB / 0.533 GB, free: 12.18 MB / 458.8 MB Notification: Performance of NFFlatten.flatten: time 0.001528/0.1228, allocations: 2.541 MB / 0.5355 GB, free: 9.633 MB / 458.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006951/0.1235, allocations: 0.9001 MB / 0.5364 GB, free: 8.703 MB / 458.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1043/0.2279, allocations: 46.54 MB / 0.5818 GB, free: 11.36 MB / 0.4949 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001319/0.2292, allocations: 0.7904 MB / 0.5826 GB, free: 10.57 MB / 0.4949 GB Notification: Performance of NFPackage.collectConstants: time 0.0001741/0.2294, allocations: 136 kB / 0.5828 GB, free: 10.43 MB / 0.4949 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001874/0.2312, allocations: 0.8222 MB / 0.5836 GB, free: 9.609 MB / 0.4949 GB Notification: Performance of NFScalarize.scalarize: time 0.0002985/0.2315, allocations: 0.5019 MB / 0.584 GB, free: 9.105 MB / 0.4949 GB Notification: Performance of NFVerifyModel.verify: time 0.0004153/0.232, allocations: 0.5296 MB / 0.5846 GB, free: 8.574 MB / 0.4949 GB Notification: Performance of NFConvertDAE.convert: time 0.002014/0.234, allocations: 2.21 MB / 0.5867 GB, free: 6.355 MB / 0.4949 GB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.234, allocations: 4 kB / 0.5867 GB, free: 6.352 MB / 0.4949 GB Notification: Performance of FrontEnd: time 1.082e-06/0.234, allocations: 0 / 0.5867 GB, free: 6.352 MB / 0.4949 GB Notification: Performance of Transformations before backend: time 1.19e-05/0.234, allocations: 3.938 kB / 0.5867 GB, free: 6.348 MB / 0.4949 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.002114/0.2361, allocations: 2.912 MB / 0.5896 GB, free: 3.371 MB / 0.4949 GB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.2361, allocations: 8.031 kB / 0.5896 GB, free: 3.363 MB / 0.4949 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002388/0.2364, allocations: 331.3 kB / 0.5899 GB, free: 3.039 MB / 0.4949 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001207/0.2376, allocations: 1.336 MB / 0.5912 GB, free: 1.66 MB / 0.4949 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.019e-05/0.2376, allocations: 82.52 kB / 0.5913 GB, free: 1.578 MB / 0.4949 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.585e-05/0.2377, allocations: 112.4 kB / 0.5914 GB, free: 1.469 MB / 0.4949 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002137/0.2399, allocations: 2.189 MB / 0.5935 GB, free: 14.8 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.168e-05/0.2399, allocations: 11.88 kB / 0.5935 GB, free: 14.79 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.052e-05/0.2399, allocations: 60 kB / 0.5936 GB, free: 14.73 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.099e-05/0.24, allocations: 35.98 kB / 0.5936 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/0.2412, allocations: 0.9001 MB / 0.5945 GB, free: 13.79 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005356/0.2466, allocations: 12.9 MB / 0.6071 GB, free: 440 kB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001418/0.248, allocations: 1.028 MB / 0.6081 GB, free: 15.25 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002341/0.2482, allocations: 301.4 kB / 0.6084 GB, free: 14.9 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001182/0.2484, allocations: 100.2 kB / 0.6085 GB, free: 14.8 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001248/0.2496, allocations: 0.9756 MB / 0.6094 GB, free: 13.73 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=175): time 2.605e-06/0.2496, allocations: 0 / 0.6094 GB, free: 13.73 MB / 0.5262 GB Notification: Performance of matching and sorting (n=175): time 0.003792/0.2534, allocations: 2.156 MB / 0.6115 GB, free: 11.54 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001671/0.2536, allocations: 0.6593 MB / 0.6122 GB, free: 10.73 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001057/0.2546, allocations: 1.61 MB / 0.6138 GB, free: 9.059 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 5.443e-05/0.2547, allocations: 45.73 kB / 0.6138 GB, free: 9.008 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004749/0.2552, allocations: 0.9479 MB / 0.6147 GB, free: 8.051 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002856/0.2554, allocations: 0.6002 MB / 0.6153 GB, free: 7.445 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003413/0.2558, allocations: 440.9 kB / 0.6157 GB, free: 7.008 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 9.542e-05/0.2559, allocations: 480.8 kB / 0.6162 GB, free: 6.535 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002938/0.2562, allocations: 273.7 kB / 0.6165 GB, free: 6.254 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009804/0.2572, allocations: 1.355 MB / 0.6178 GB, free: 4.434 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001334/0.2585, allocations: 1.833 MB / 0.6196 GB, free: 2.184 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.315e-06/0.2585, allocations: 11.94 kB / 0.6196 GB, free: 2.172 MB / 0.5262 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.001574/0.2601, allocations: 1.608 MB / 0.6211 GB, free: 0.5352 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 3.627e-05/0.2601, allocations: 45.69 kB / 0.6212 GB, free: 496 kB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0009901/0.2611, allocations: 0.9032 MB / 0.6221 GB, free: 15.57 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002189/0.2613, allocations: 119.5 kB / 0.6222 GB, free: 15.45 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006817/0.262, allocations: 471.4 kB / 0.6226 GB, free: 14.98 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004153/0.2624, allocations: 0.9364 MB / 0.6236 GB, free: 14.02 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004599/0.2629, allocations: 214.5 kB / 0.6238 GB, free: 13.8 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000101/0.263, allocations: 103.9 kB / 0.6239 GB, free: 13.7 MB / 0.5418 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.0007644/0.2637, allocations: 428.5 kB / 0.6243 GB, free: 13.27 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007541/0.2645, allocations: 1.351 MB / 0.6256 GB, free: 11.46 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001318/0.2658, allocations: 1.823 MB / 0.6274 GB, free: 9.211 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.603e-06/0.2658, allocations: 4 kB / 0.6274 GB, free: 9.207 MB / 0.5418 GB Notification: Performance of matching and sorting (n=270) (initialization_lambda0): time 0.001598/0.2674, allocations: 1.62 MB / 0.629 GB, free: 7.562 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 2.95e-05/0.2674, allocations: 49.73 kB / 0.629 GB, free: 7.508 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008981/0.2683, allocations: 0.8558 MB / 0.6298 GB, free: 6.633 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001937/0.2685, allocations: 111.6 kB / 0.6299 GB, free: 6.52 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009389/0.2695, allocations: 479.1 kB / 0.6304 GB, free: 6.051 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001152/0.2706, allocations: 2.373 MB / 0.6327 GB, free: 3.566 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000427/0.2711, allocations: 174.9 kB / 0.6329 GB, free: 3.395 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.611e-05/0.2712, allocations: 111.9 kB / 0.633 GB, free: 3.285 MB / 0.5418 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.0002573/0.2714, allocations: 437.3 kB / 0.6334 GB, free: 2.844 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002194/0.2716, allocations: 254.4 kB / 0.6336 GB, free: 2.594 MB / 0.5418 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.001546/0.2732, allocations: 1.639 MB / 0.6352 GB, free: 0.918 MB / 0.5418 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. " [Timeout remaining time 799] [Calling sys.exit(0), Time elapsed: 3.035051444079727]