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.01757/0.01757, allocations: 1.348 MB / 20.45 MB, free: 1.25 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.001783/0.001783, allocations: 79.25 kB / 24.02 MB, free: 2.586 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.001754/0.001754, allocations: 154.5 kB / 27.71 MB, free: 3.844 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.434/1.434, allocations: 177.2 MB / 208.4 MB, free: 7.668 MB / 190.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.074/1.074, allocations: 102.5 MB / 367.7 MB, free: 4.582 MB / 334.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: Performance of FrontEnd - loaded program: time 1.263e-06/1.263e-06, allocations: 0 / 0.5364 GB, free: 7.125 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.667e-05/2.793e-05, allocations: 6.281 kB / 0.5365 GB, free: 7.117 MB / 446.1 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.1613/0.1613, allocations: 55.73 MB / 0.5909 GB, free: 1.906 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.02/0.1813, allocations: 12.37 MB / 0.6029 GB, free: 5.5 MB / 0.4982 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001472/0.1828, allocations: 47.62 kB / 0.603 GB, free: 5.453 MB / 0.4982 GB Notification: Performance of NFTyping.typeComponents: time 0.002924/0.1857, allocations: 0.967 MB / 0.6039 GB, free: 4.48 MB / 0.4982 GB Notification: Performance of NFTyping.typeBindings: time 0.002442/0.1882, allocations: 0.912 MB / 0.6048 GB, free: 3.562 MB / 0.4982 GB Notification: Performance of NFTyping.typeClassSections: time 0.004033/0.1922, allocations: 1.612 MB / 0.6064 GB, free: 1.945 MB / 0.4982 GB Notification: Performance of NFFlatten.flatten: time 0.00412/0.1963, allocations: 2.528 MB / 0.6089 GB, free: 15.41 MB / 0.5138 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001675/0.198, allocations: 0.849 MB / 0.6097 GB, free: 14.53 MB / 0.5138 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002206/0.2002, allocations: 1.368 MB / 0.611 GB, free: 13.16 MB / 0.5138 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001468/0.2017, allocations: 0.9153 MB / 0.6119 GB, free: 12.24 MB / 0.5138 GB Notification: Performance of NFPackage.collectConstants: time 0.0003132/0.202, allocations: 187.9 kB / 0.6121 GB, free: 12.06 MB / 0.5138 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002283/0.2043, allocations: 0.9938 MB / 0.6131 GB, free: 11.06 MB / 0.5138 GB Notification: Performance of NFScalarize.scalarize: time 0.0006795/0.2049, allocations: 0.5993 MB / 0.6137 GB, free: 10.46 MB / 0.5138 GB Notification: Performance of NFVerifyModel.verify: time 0.0009325/0.2059, allocations: 0.6232 MB / 0.6143 GB, free: 9.836 MB / 0.5138 GB Notification: Performance of NFConvertDAE.convert: time 0.006057/0.2119, allocations: 3.368 MB / 0.6176 GB, free: 6.457 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.2119, allocations: 0 / 0.6176 GB, free: 6.457 MB / 0.5138 GB Notification: Performance of FrontEnd: time 1.603e-06/0.2119, allocations: 0 / 0.6176 GB, free: 6.457 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 4.862e-05/0.212, allocations: 0 / 0.6176 GB, free: 6.457 MB / 0.5138 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.005186/0.2172, allocations: 2.927 MB / 0.6204 GB, free: 3.473 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/0.2172, allocations: 8.031 kB / 0.6204 GB, free: 3.465 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009077/0.2181, allocations: 307.1 kB / 0.6207 GB, free: 3.164 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004599/0.2227, allocations: 2.36 MB / 0.623 GB, free: 0.7656 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.94e-05/0.2228, allocations: 90.45 kB / 0.6231 GB, free: 0.6758 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002008/0.223, allocations: 112.4 kB / 0.6232 GB, free: 0.5664 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004941/0.228, allocations: 2.331 MB / 0.6255 GB, free: 13.86 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.771e-05/0.228, allocations: 11.88 kB / 0.6255 GB, free: 13.85 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001242/0.2281, allocations: 52 kB / 0.6256 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.854e-05/0.2282, allocations: 32 kB / 0.6256 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003783/0.232, allocations: 1.41 MB / 0.627 GB, free: 12.35 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01026/0.2422, allocations: 9.317 MB / 0.6361 GB, free: 2.676 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003971/0.2462, allocations: 1.298 MB / 0.6373 GB, free: 1.258 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009433/0.2471, allocations: 462.3 kB / 0.6378 GB, free: 0.7695 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001972/0.2473, allocations: 60.56 kB / 0.6378 GB, free: 0.7109 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003452/0.2508, allocations: 1.159 MB / 0.639 GB, free: 15.46 MB / 0.545 GB Notification: Performance of pre-optimization done (n=175): time 6.863e-06/0.2508, allocations: 0 / 0.639 GB, free: 15.46 MB / 0.545 GB Notification: Performance of matching and sorting (n=175): time 0.009442/0.2602, allocations: 2.775 MB / 0.6417 GB, free: 12.66 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004211/0.2606, allocations: 0.6091 MB / 0.6423 GB, free: 11.91 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003341/0.264, allocations: 1.721 MB / 0.6439 GB, free: 10.14 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0002443/0.2642, allocations: 49.64 kB / 0.644 GB, free: 10.09 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009573/0.2652, allocations: 0.8389 MB / 0.6448 GB, free: 9.246 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008041/0.266, allocations: 0.5852 MB / 0.6454 GB, free: 8.656 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008881/0.2669, allocations: 415.3 kB / 0.6458 GB, free: 8.246 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001573/0.267, allocations: 309.1 kB / 0.6461 GB, free: 7.941 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001294/0.2683, allocations: 0.5768 MB / 0.6466 GB, free: 7.352 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00203/0.2704, allocations: 1.309 MB / 0.6479 GB, free: 5.715 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005682/0.276, allocations: 2.761 MB / 0.6506 GB, free: 2.633 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.419e-05/0.2761, allocations: 4 kB / 0.6506 GB, free: 2.629 MB / 0.545 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004952/0.281, allocations: 2.171 MB / 0.6527 GB, free: 444 kB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.24e-05/0.2811, allocations: 46.7 kB / 0.6528 GB, free: 392 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003282/0.2844, allocations: 1.458 MB / 0.6542 GB, free: 14.91 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005837/0.285, allocations: 156.8 kB / 0.6544 GB, free: 14.75 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001509/0.2865, allocations: 471.2 kB / 0.6548 GB, free: 14.29 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001074/0.2875, allocations: 0.767 MB / 0.6556 GB, free: 13.5 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001413/0.289, allocations: 222.4 kB / 0.6558 GB, free: 13.28 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002929/0.2892, allocations: 119.9 kB / 0.6559 GB, free: 13.16 MB / 0.5607 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.002125/0.2914, allocations: 0.943 MB / 0.6568 GB, free: 12.21 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001905/0.2933, allocations: 1.301 MB / 0.6581 GB, free: 10.57 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005277/0.2986, allocations: 2.709 MB / 0.6607 GB, free: 7.555 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.339e-05/0.2986, allocations: 4 kB / 0.6607 GB, free: 7.551 MB / 0.5607 GB Notification: Performance of matching and sorting (n=270) (initialization_lambda0): time 0.00488/0.3035, allocations: 2.149 MB / 0.6628 GB, free: 5.375 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 7.596e-05/0.3035, allocations: 49.69 kB / 0.6629 GB, free: 5.32 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002754/0.3063, allocations: 1.365 MB / 0.6642 GB, free: 3.941 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000386/0.3067, allocations: 120.7 kB / 0.6643 GB, free: 3.82 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001465/0.3081, allocations: 471.2 kB / 0.6648 GB, free: 3.359 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002612/0.3108, allocations: 2.025 MB / 0.6667 GB, free: 1.234 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00132/0.3121, allocations: 174.8 kB / 0.6669 GB, free: 1.062 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002681/0.3123, allocations: 123.9 kB / 0.667 GB, free: 0.9414 MB / 0.5607 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.0007396/0.3131, allocations: 361.2 kB / 0.6674 GB, free: 0.5742 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006738/0.3138, allocations: 218.7 kB / 0.6676 GB, free: 368 kB / 0.5607 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.003896/0.3177, allocations: 1.825 MB / 0.6694 GB, free: 14.5 MB / 0.5763 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. " [Timeout remaining time 799] [Calling sys.exit(0), Time elapsed: 4.400802884250879] Failed to read output from testmodel.py, exit status != 0: 0.7128662839531898 0.727881366 0.512306825 Calling exit ...