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.006084/0.006084, allocations: 1.446 MB / 20.54 MB, free: 4.008 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.0006977/0.0006977, allocations: 91.45 kB / 24.16 MB, free: 396 kB / 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.0009401/0.0009401, allocations: 164.9 kB / 27.85 MB, free: 5.098 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.8673/0.8673, allocations: 177.2 MB / 208.6 MB, free: 2.945 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.7711/0.7711, allocations: 102.5 MB / 367.9 MB, free: 1.445 MB / 330.8 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.5.2 (/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.253e-06/1.253e-06, allocations: 0 / 0.5367 GB, free: 39.8 MB / 490.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.451e-05/1.576e-05, allocations: 2.281 kB / 0.5367 GB, free: 39.8 MB / 490.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.108/0.108, allocations: 55.7 MB / 0.5911 GB, free: 4.312 MB / 490.8 MB Notification: Performance of NFInst.instExpressions: time 0.01337/0.1214, allocations: 12.37 MB / 0.6031 GB, free: 7.902 MB / 0.4949 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009664/0.1224, allocations: 43.69 kB / 0.6032 GB, free: 7.859 MB / 0.4949 GB Notification: Performance of NFTyping.typeComponents: time 0.001822/0.1242, allocations: 0.9669 MB / 0.6041 GB, free: 6.887 MB / 0.4949 GB Notification: Performance of NFTyping.typeBindings: time 0.001048/0.1252, allocations: 0.9042 MB / 0.605 GB, free: 5.977 MB / 0.4949 GB Notification: Performance of NFTyping.typeClassSections: time 0.002065/0.1273, allocations: 1.612 MB / 0.6066 GB, free: 4.359 MB / 0.4949 GB Notification: Performance of NFFlatten.flatten: time 0.001597/0.1289, allocations: 2.54 MB / 0.6091 GB, free: 1.809 MB / 0.4949 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007169/0.1296, allocations: 0.8529 MB / 0.6099 GB, free: 0.9258 MB / 0.4949 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009417/0.1305, allocations: 1.375 MB / 0.6112 GB, free: 15.55 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007859/0.1313, allocations: 0.9074 MB / 0.6121 GB, free: 14.64 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0001626/0.1315, allocations: 188 kB / 0.6123 GB, free: 14.45 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001093/0.1326, allocations: 0.9861 MB / 0.6133 GB, free: 13.46 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0003461/0.1329, allocations: 0.6072 MB / 0.6139 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0004302/0.1334, allocations: 0.6115 MB / 0.6145 GB, free: 12.24 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.002411/0.1358, allocations: 3.376 MB / 0.6178 GB, free: 8.855 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.1358, allocations: 4 kB / 0.6178 GB, free: 8.852 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.623e-06/0.1358, allocations: 0 / 0.6178 GB, free: 8.852 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 2.047e-05/0.1358, allocations: 3.938 kB / 0.6178 GB, free: 8.848 MB / 0.5105 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.002751/0.1386, allocations: 2.917 MB / 0.6206 GB, free: 5.875 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.1386, allocations: 12.03 kB / 0.6206 GB, free: 5.863 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004535/0.139, allocations: 307.1 kB / 0.6209 GB, free: 5.562 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002505/0.1415, allocations: 2.362 MB / 0.6232 GB, free: 3.164 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.361e-05/0.1416, allocations: 82.52 kB / 0.6233 GB, free: 3.082 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.1417, allocations: 108.4 kB / 0.6234 GB, free: 2.977 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002498/0.1442, allocations: 2.338 MB / 0.6257 GB, free: 268 kB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.416e-05/0.1442, allocations: 11.88 kB / 0.6257 GB, free: 256 kB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.786e-05/0.1443, allocations: 52 kB / 0.6257 GB, free: 204 kB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.418e-05/0.1443, allocations: 40 kB / 0.6258 GB, free: 164 kB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002001/0.1463, allocations: 1.402 MB / 0.6272 GB, free: 14.75 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005081/0.1514, allocations: 9.317 MB / 0.6363 GB, free: 5.078 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001974/0.1534, allocations: 1.293 MB / 0.6375 GB, free: 3.664 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000487/0.1539, allocations: 474.2 kB / 0.638 GB, free: 3.164 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001204/0.154, allocations: 60.62 kB / 0.638 GB, free: 3.105 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0016/0.1556, allocations: 1.151 MB / 0.6392 GB, free: 1.875 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=175): time 2.675e-06/0.1556, allocations: 0 / 0.6392 GB, free: 1.875 MB / 0.5262 GB Notification: Performance of matching and sorting (n=175): time 0.004589/0.1602, allocations: 2.782 MB / 0.6419 GB, free: 15.07 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001895/0.1604, allocations: 0.6013 MB / 0.6425 GB, free: 14.32 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001456/0.1618, allocations: 1.729 MB / 0.6441 GB, free: 12.55 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 6.187e-05/0.1619, allocations: 53.7 kB / 0.6442 GB, free: 12.49 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004557/0.1623, allocations: 0.8351 MB / 0.645 GB, free: 11.64 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003035/0.1626, allocations: 0.5847 MB / 0.6456 GB, free: 11.05 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003731/0.163, allocations: 415.3 kB / 0.646 GB, free: 10.64 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 7.511e-05/0.1631, allocations: 301.1 kB / 0.6463 GB, free: 10.35 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006808/0.1638, allocations: 0.5768 MB / 0.6468 GB, free: 9.758 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001051/0.1648, allocations: 1.312 MB / 0.6481 GB, free: 8.113 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002942/0.1678, allocations: 2.761 MB / 0.6508 GB, free: 5.031 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.247e-05/0.1678, allocations: 8 kB / 0.6508 GB, free: 5.023 MB / 0.5418 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.002402/0.1702, allocations: 2.168 MB / 0.6529 GB, free: 2.832 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 4.634e-05/0.1702, allocations: 49.69 kB / 0.653 GB, free: 2.777 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001714/0.1719, allocations: 1.447 MB / 0.6544 GB, free: 1.312 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002978/0.1722, allocations: 160.8 kB / 0.6545 GB, free: 1.152 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007218/0.173, allocations: 467.5 kB / 0.655 GB, free: 0.6953 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005749/0.1735, allocations: 0.7631 MB / 0.6557 GB, free: 15.91 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000561/0.1741, allocations: 214.5 kB / 0.6559 GB, free: 15.7 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001227/0.1742, allocations: 124 kB / 0.6561 GB, free: 15.57 MB / 0.5574 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.001122/0.1753, allocations: 0.9507 MB / 0.657 GB, free: 14.61 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009975/0.1763, allocations: 1.297 MB / 0.6583 GB, free: 12.99 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002789/0.1791, allocations: 2.709 MB / 0.6609 GB, free: 9.965 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.013e-06/0.1791, allocations: 4 kB / 0.6609 GB, free: 9.961 MB / 0.5574 GB Notification: Performance of matching and sorting (n=270) (initialization_lambda0): time 0.002291/0.1814, allocations: 2.156 MB / 0.663 GB, free: 7.781 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 3.382e-05/0.1815, allocations: 49.69 kB / 0.6631 GB, free: 7.727 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001523/0.183, allocations: 1.365 MB / 0.6644 GB, free: 6.348 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001762/0.1832, allocations: 125.1 kB / 0.6645 GB, free: 6.223 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000716/0.1839, allocations: 475.2 kB / 0.665 GB, free: 5.758 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001454/0.1853, allocations: 2.028 MB / 0.6669 GB, free: 3.625 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005018/0.1858, allocations: 171.2 kB / 0.6671 GB, free: 3.457 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001142/0.1859, allocations: 123.9 kB / 0.6672 GB, free: 3.336 MB / 0.5574 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.0003209/0.1863, allocations: 357.7 kB / 0.6676 GB, free: 2.973 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002231/0.1865, allocations: 218.5 kB / 0.6678 GB, free: 2.758 MB / 0.5574 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.001932/0.1884, allocations: 1.821 MB / 0.6696 GB, free: 0.9062 MB / 0.5574 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. " [Timeout remaining time 800] [Calling sys.exit(0), Time elapsed: 3.356250734999776] Failed to read output from testmodel.py, exit status != 0: 0.36237913090735674 0.6601117519999999 0.522833122 Calling exit ...