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.0139/0.0139, allocations: 1.344 MB / 21.03 MB, free: 0.6055 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.001587/0.001587, allocations: 85.78 kB / 24.58 MB, free: 1.883 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.002053/0.002053, allocations: 164.4 kB / 28.25 MB, free: 3.145 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.453/1.453, allocations: 177.2 MB / 209 MB, free: 7.637 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 0.9906/0.9906, allocations: 102.5 MB / 368.3 MB, free: 4.145 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: 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.06825/0.06825, allocations: 20.95 MB / 0.5569 GB, free: 4.922 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1472/0.2154, allocations: 81.88 MB / 0.6368 GB, free: 2.922 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.1346/0.35, allocations: 34.65 MB / 0.6707 GB, free: 316 kB / 0.5607 GB Notification: Performance of NFInst.instExpressions: time 0.01873/0.3688, allocations: 12.59 MB / 0.683 GB, free: 3.688 MB / 0.5763 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001054/0.3698, allocations: 55.62 kB / 0.683 GB, free: 3.633 MB / 0.5763 GB Notification: Performance of NFTyping.typeComponents: time 0.002625/0.3724, allocations: 0.9596 MB / 0.684 GB, free: 2.668 MB / 0.5763 GB Notification: Performance of NFTyping.typeBindings: time 0.001998/0.3744, allocations: 0.8777 MB / 0.6848 GB, free: 1.785 MB / 0.5763 GB Notification: Performance of NFTyping.typeClassSections: time 0.003635/0.3781, allocations: 1.586 MB / 0.6864 GB, free: 200 kB / 0.5763 GB Notification: Performance of NFFlatten.flatten: time 0.2839/0.662, allocations: 2.458 MB / 0.6888 GB, free: 19.19 MB / 0.5763 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001176/0.6631, allocations: 0.8489 MB / 0.6896 GB, free: 19.11 MB / 0.5763 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001186/0.6643, allocations: 1.014 MB / 0.6906 GB, free: 18.92 MB / 0.5763 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001402/0.6657, allocations: 1.065 MB / 0.6916 GB, free: 18.68 MB / 0.5763 GB Notification: Performance of NFPackage.collectConstants: time 0.0003026/0.666, allocations: 184.6 kB / 0.6918 GB, free: 18.68 MB / 0.5763 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001951/0.668, allocations: 0.985 MB / 0.6928 GB, free: 18.68 MB / 0.5763 GB Notification: Performance of NFScalarize.scalarize: time 0.0005102/0.6685, allocations: 0.5972 MB / 0.6934 GB, free: 18.57 MB / 0.5763 GB Notification: Performance of NFVerifyModel.verify: time 0.0007419/0.6692, allocations: 0.7813 MB / 0.6941 GB, free: 18.31 MB / 0.5763 GB Notification: Performance of NFConvertDAE.convert: time 0.004434/0.6737, allocations: 3.408 MB / 0.6974 GB, free: 17.79 MB / 0.5763 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.6737, allocations: 0 / 0.6974 GB, free: 17.79 MB / 0.5763 GB Notification: Performance of FrontEnd: time 1.302e-06/0.6737, allocations: 0.5312 kB / 0.6974 GB, free: 17.79 MB / 0.5763 GB Notification: Performance of Transformations before backend: time 3.8e-05/0.6737, allocations: 3.812 kB / 0.6974 GB, free: 17.79 MB / 0.5763 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.004634/0.6783, allocations: 2.942 MB / 0.7003 GB, free: 16.45 MB / 0.5763 GB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.6784, allocations: 8.875 kB / 0.7003 GB, free: 16.45 MB / 0.5763 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007915/0.6792, allocations: 301.3 kB / 0.7006 GB, free: 16.31 MB / 0.5763 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003861/0.683, allocations: 2.37 MB / 0.7029 GB, free: 15.81 MB / 0.5763 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.039e-05/0.6831, allocations: 94.11 kB / 0.703 GB, free: 15.81 MB / 0.5763 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001418/0.6832, allocations: 113.1 kB / 0.7031 GB, free: 15.8 MB / 0.5763 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003854/0.6871, allocations: 2.335 MB / 0.7054 GB, free: 14.68 MB / 0.5763 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.784e-05/0.6871, allocations: 12.81 kB / 0.7054 GB, free: 14.68 MB / 0.5763 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001043/0.6872, allocations: 53.97 kB / 0.7055 GB, free: 14.68 MB / 0.5763 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.125e-05/0.6873, allocations: 34.17 kB / 0.7055 GB, free: 14.68 MB / 0.5763 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003236/0.6905, allocations: 1.402 MB / 0.7069 GB, free: 14.64 MB / 0.5763 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005933/0.6964, allocations: 9.334 MB / 0.716 GB, free: 6.879 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003037/0.6995, allocations: 1.299 MB / 0.7173 GB, free: 6.25 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006277/0.7001, allocations: 468.4 kB / 0.7177 GB, free: 5.98 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001503/0.7003, allocations: 61.17 kB / 0.7178 GB, free: 5.973 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002576/0.7028, allocations: 1.151 MB / 0.7189 GB, free: 5.441 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=175): time 4.138e-06/0.7028, allocations: 3.938 kB / 0.7189 GB, free: 5.441 MB / 0.5763 GB Notification: Performance of matching and sorting (n=175): time 0.007832/0.7107, allocations: 2.779 MB / 0.7216 GB, free: 4.594 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/0.7108, allocations: 0.6035 MB / 0.7222 GB, free: 3.871 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002103/0.7129, allocations: 1.727 MB / 0.7239 GB, free: 3.156 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 9.061e-05/0.713, allocations: 48.55 kB / 0.7239 GB, free: 3.109 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004804/0.7135, allocations: 0.843 MB / 0.7247 GB, free: 2.441 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003304/0.7138, allocations: 0.5911 MB / 0.7253 GB, free: 1.977 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005186/0.7143, allocations: 418.5 kB / 0.7257 GB, free: 1.785 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 3.388e-05/0.7143, allocations: 312.1 kB / 0.726 GB, free: 1.484 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009154/0.7153, allocations: 0.5751 MB / 0.7266 GB, free: 1.164 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001326/0.7166, allocations: 1.315 MB / 0.7279 GB, free: 15.89 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005048/0.7216, allocations: 2.747 MB / 0.7305 GB, free: 13.97 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.331e-05/0.7216, allocations: 9.469 kB / 0.7306 GB, free: 13.97 MB / 0.5919 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004037/0.7257, allocations: 2.175 MB / 0.7327 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.954e-05/0.7257, allocations: 49.72 kB / 0.7327 GB, free: 12.94 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002899/0.7286, allocations: 1.442 MB / 0.7341 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004707/0.7291, allocations: 156.1 kB / 0.7343 GB, free: 12.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001249/0.7304, allocations: 474.8 kB / 0.7347 GB, free: 12.11 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008981/0.7313, allocations: 0.7701 MB / 0.7355 GB, free: 11.47 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001237/0.7325, allocations: 212.5 kB / 0.7357 GB, free: 11.33 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002027/0.7327, allocations: 121.8 kB / 0.7358 GB, free: 11.3 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.00189/0.7346, allocations: 0.9454 MB / 0.7367 GB, free: 10.73 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001694/0.7363, allocations: 1.295 MB / 0.738 GB, free: 9.453 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004701/0.741, allocations: 2.709 MB / 0.7406 GB, free: 7.566 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.172e-05/0.741, allocations: 8.781 kB / 0.7407 GB, free: 7.566 MB / 0.5919 GB Notification: Performance of matching and sorting (n=270) (initialization_lambda0): time 0.003974/0.745, allocations: 2.145 MB / 0.7427 GB, free: 6.477 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.668e-05/0.745, allocations: 49.16 kB / 0.7428 GB, free: 6.438 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002504/0.7475, allocations: 1.363 MB / 0.7441 GB, free: 5.77 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003156/0.7479, allocations: 121.8 kB / 0.7442 GB, free: 5.727 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001252/0.7491, allocations: 475.2 kB / 0.7447 GB, free: 5.605 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002339/0.7514, allocations: 2.025 MB / 0.7467 GB, free: 3.848 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001212/0.7527, allocations: 180.5 kB / 0.7468 GB, free: 3.723 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001993/0.7529, allocations: 123.2 kB / 0.747 GB, free: 3.691 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: 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.0006571/0.7535, allocations: 351.1 kB / 0.7473 GB, free: 3.375 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005126/0.754, allocations: 219.4 kB / 0.7475 GB, free: 3.254 MB / 0.5919 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.003472/0.7575, allocations: 1.839 MB / 0.7493 GB, free: 2.234 MB / 0.5919 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. " [Timeout remaining time 799] [Calling sys.exit(0), Time elapsed: 4.381725859013386] Failed to read output from testmodel.py, exit status != 0: 0.918976373039186 0.934299876 0.257455821 Calling exit ...