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.01283/0.01283, allocations: 1.769 MB / 18.12 MB, free: 4.906 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.001472/0.001472, allocations: 99.72 kB / 21.35 MB, free: 1.699 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.001654/0.001654, allocations: 210.4 kB / 24.75 MB, free: 3.715 MB / 14.72 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.522/1.522, allocations: 230.6 MB / 258.5 MB, free: 13.13 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.16/1.16, allocations: 130.6 MB / 445.5 MB, free: 14.96 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: Automatically loaded package TILMedia 1.9.0 ClaRa due to uses annotation from ClaRa. 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. 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.4081/0.4081, allocations: 46.15 MB / 0.6549 GB, free: 30.75 MB / 0.4982 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1741/0.5822, allocations: 89.05 MB / 0.7419 GB, free: 2.453 MB / 0.545 GB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.test_2_LimPID): time 0.01433/0.5965, allocations: 10.04 MB / 0.7517 GB, free: 8.367 MB / 0.5607 GB Notification: Performance of NFInst.instExpressions: time 0.02331/0.6199, allocations: 13.04 MB / 0.7645 GB, free: 11.28 MB / 0.5763 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001738/0.6216, allocations: 43.69 kB / 0.7645 GB, free: 11.24 MB / 0.5763 GB Notification: Performance of NFTyping.typeComponents: time 0.003183/0.6248, allocations: 0.9985 MB / 0.7655 GB, free: 10.23 MB / 0.5763 GB Notification: Performance of NFTyping.typeBindings: time 0.002501/0.6273, allocations: 0.8621 MB / 0.7663 GB, free: 9.367 MB / 0.5763 GB Notification: Performance of NFTyping.typeClassSections: time 0.003852/0.6311, allocations: 1.531 MB / 0.7678 GB, free: 7.836 MB / 0.5763 GB Notification: Performance of NFFlatten.flatten: time 0.003704/0.6348, allocations: 2.47 MB / 0.7702 GB, free: 5.355 MB / 0.5763 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001352/0.6362, allocations: 0.8138 MB / 0.771 GB, free: 4.512 MB / 0.5763 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001442/0.6376, allocations: 1.015 MB / 0.772 GB, free: 3.492 MB / 0.5763 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00159/0.6392, allocations: 1.138 MB / 0.7731 GB, free: 2.352 MB / 0.5763 GB Notification: Performance of NFPackage.collectConstants: time 0.0003026/0.6395, allocations: 188 kB / 0.7733 GB, free: 2.168 MB / 0.5763 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002395/0.6419, allocations: 1.256 MB / 0.7745 GB, free: 0.9102 MB / 0.5763 GB Notification: Performance of NFScalarize.scalarize: time 0.0006128/0.6425, allocations: 0.5916 MB / 0.7751 GB, free: 324 kB / 0.5763 GB Notification: Performance of NFVerifyModel.verify: time 0.001132/0.6437, allocations: 1.033 MB / 0.7761 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.005116/0.6488, allocations: 3.459 MB / 0.7795 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.6488, allocations: 4 kB / 0.7795 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.633e-06/0.6488, allocations: 3.938 kB / 0.7795 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 3.32e-05/0.6488, allocations: 0 / 0.7795 GB, free: 11.8 MB / 0.5919 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.005017/0.6538, allocations: 2.766 MB / 0.7822 GB, free: 8.957 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.6539, allocations: 12.03 kB / 0.7822 GB, free: 8.945 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000878/0.6547, allocations: 303.2 kB / 0.7825 GB, free: 8.648 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004409/0.6592, allocations: 2.489 MB / 0.7849 GB, free: 6.113 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.578e-05/0.6592, allocations: 86.27 kB / 0.785 GB, free: 6.027 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001711/0.6594, allocations: 108 kB / 0.7851 GB, free: 5.922 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004468/0.6639, allocations: 2.068 MB / 0.7871 GB, free: 3.539 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.277e-05/0.6639, allocations: 15.88 kB / 0.7871 GB, free: 3.523 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001258/0.664, allocations: 55.94 kB / 0.7872 GB, free: 3.469 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.54e-05/0.6641, allocations: 32 kB / 0.7872 GB, free: 3.438 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003694/0.6678, allocations: 1.381 MB / 0.7886 GB, free: 2.055 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01003/0.6778, allocations: 9.988 MB / 0.7983 GB, free: 7.648 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003684/0.6815, allocations: 1.278 MB / 0.7996 GB, free: 6.258 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008252/0.6823, allocations: 444.4 kB / 0.8 GB, free: 5.793 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001811/0.6825, allocations: 68.44 kB / 0.8001 GB, free: 5.727 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003079/0.6856, allocations: 1.12 MB / 0.8012 GB, free: 4.539 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=175): time 3.497e-06/0.6856, allocations: 0 / 0.8012 GB, free: 4.539 MB / 0.6075 GB Notification: Performance of matching and sorting (n=175): time 0.009023/0.6946, allocations: 2.792 MB / 0.8039 GB, free: 1.715 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003946/0.695, allocations: 0.6133 MB / 0.8045 GB, free: 0.9609 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002949/0.6979, allocations: 1.766 MB / 0.8062 GB, free: 15.15 MB / 0.6232 GB Notification: Performance of collectPreVariables (initialization): time 0.0002361/0.6982, allocations: 45.7 kB / 0.8063 GB, free: 15.1 MB / 0.6232 GB Notification: Performance of collectInitialEqns (initialization): time 0.000827/0.699, allocations: 0.8355 MB / 0.8071 GB, free: 14.25 MB / 0.6232 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006456/0.6996, allocations: 0.5924 MB / 0.8077 GB, free: 13.66 MB / 0.6232 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006469/0.7003, allocations: 423.3 kB / 0.8081 GB, free: 13.24 MB / 0.6232 GB Notification: Performance of setup shared object (initialization): time 0.0001475/0.7004, allocations: 309.1 kB / 0.8084 GB, free: 12.93 MB / 0.6232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001125/0.7016, allocations: 0.5446 MB / 0.8089 GB, free: 12.38 MB / 0.6232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001776/0.7033, allocations: 1.204 MB / 0.8101 GB, free: 10.87 MB / 0.6232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005291/0.7086, allocations: 2.736 MB / 0.8127 GB, free: 7.809 MB / 0.6232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.407e-05/0.7086, allocations: 4 kB / 0.8127 GB, free: 7.805 MB / 0.6232 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004497/0.7131, allocations: 2.147 MB / 0.8148 GB, free: 5.641 MB / 0.6232 GB Notification: Performance of prepare postOptimizeDAE: time 6.015e-05/0.7132, allocations: 45.69 kB / 0.8149 GB, free: 5.59 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00299/0.7162, allocations: 1.41 MB / 0.8163 GB, free: 4.168 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005171/0.7167, allocations: 144.8 kB / 0.8164 GB, free: 4.023 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001398/0.7181, allocations: 471.2 kB / 0.8168 GB, free: 3.562 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009476/0.7191, allocations: 0.7782 MB / 0.8176 GB, free: 2.762 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001206/0.7203, allocations: 222.4 kB / 0.8178 GB, free: 2.543 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002167/0.7205, allocations: 127.9 kB / 0.8179 GB, free: 2.418 MB / 0.6232 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.001924/0.7224, allocations: 0.9139 MB / 0.8188 GB, free: 1.5 MB / 0.6232 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001658/0.7241, allocations: 1.196 MB / 0.82 GB, free: 0 / 0.6232 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004984/0.729, allocations: 2.705 MB / 0.8226 GB, free: 12.98 MB / 0.6388 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.161e-05/0.7291, allocations: 4 kB / 0.8226 GB, free: 12.97 MB / 0.6388 GB Notification: Performance of matching and sorting (n=270) (initialization_lambda0): time 0.004305/0.7334, allocations: 2.112 MB / 0.8247 GB, free: 10.84 MB / 0.6388 GB Notification: Performance of prepare postOptimizeDAE: time 4.944e-05/0.7334, allocations: 45.95 kB / 0.8247 GB, free: 10.79 MB / 0.6388 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002572/0.736, allocations: 1.316 MB / 0.826 GB, free: 9.465 MB / 0.6388 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003507/0.7363, allocations: 116.8 kB / 0.8261 GB, free: 9.348 MB / 0.6388 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001396/0.7377, allocations: 479.4 kB / 0.8266 GB, free: 8.879 MB / 0.6388 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002547/0.7403, allocations: 2.179 MB / 0.8287 GB, free: 6.559 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00126/0.7415, allocations: 178.7 kB / 0.8289 GB, free: 6.383 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002042/0.7417, allocations: 123.9 kB / 0.829 GB, free: 6.262 MB / 0.6388 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.0006723/0.7424, allocations: 360.3 kB / 0.8294 GB, free: 5.898 MB / 0.6388 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004674/0.7429, allocations: 214.5 kB / 0.8296 GB, free: 5.688 MB / 0.6388 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.003649/0.7465, allocations: 1.833 MB / 0.8314 GB, free: 3.824 MB / 0.6388 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. " [Timeout remaining time 799] [Calling sys.exit(0), Time elapsed: 4.4525356520025525] Failed to read output from testmodel.py, exit status != 0: 0.7551255319995107 0.768447988 0.11652895599999995 Calling exit ...