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.008421/0.008421, allocations: 1.787 MB / 20.88 MB, free: 3.648 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.005228/0.005228, allocations: 77.38 kB / 24.59 MB, free: 7.219 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.00143/0.00143, allocations: 164.1 kB / 28.4 MB, free: 4.32 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.8343/0.8343, allocations: 177.2 MB / 209.3 MB, free: 2.52 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.7121/0.7121, allocations: 102.5 MB / 368.7 MB, free: 0.9766 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 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SMArtInt main/package.mo) Running command: setCommandLineOptions("--fmiFlags=s:cvode") Running command: "" <> buildModelFMU(ClaRa.Components.Utilities.Blocks.Check.test_2_LimPID,fileNamePrefix="ClaRa_dev_ClaRa_Components_Utilities_Blocks_Check_test_2_LimPID",fmuType="me_cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ClaRa.Components.Utilities.Blocks.Check.test_2_LimPID,fileNamePrefix="ClaRa_dev_ClaRa_Components_Utilities_Blocks_Check_test_2_LimPID",fmuType="me_cs",version="2.0",platforms={"static"}) [Timeout 800] "Notification: Performance of FrontEnd - loaded program: time 1.694e-06/1.694e-06, allocations: 0 / 0.5378 GB, free: 38.92 MB / 490.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.443e-05/2.612e-05, allocations: 4.531 kB / 0.5378 GB, free: 38.92 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.1291/0.1291, allocations: 64.39 MB / 0.6007 GB, free: 10.64 MB / 0.4949 GB Notification: Performance of NFInst.instExpressions: time 0.01316/0.1422, allocations: 12.35 MB / 0.6128 GB, free: 14.24 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001208/0.1435, allocations: 47.62 kB / 0.6128 GB, free: 14.2 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.002064/0.1455, allocations: 0.9708 MB / 0.6138 GB, free: 13.22 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.001534/0.1471, allocations: 0.912 MB / 0.6147 GB, free: 12.3 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.002633/0.1497, allocations: 1.608 MB / 0.6162 GB, free: 10.69 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.00262/0.1523, allocations: 2.527 MB / 0.6187 GB, free: 8.152 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001077/0.1534, allocations: 0.8684 MB / 0.6196 GB, free: 7.254 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001434/0.1548, allocations: 1.368 MB / 0.6209 GB, free: 5.883 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001025/0.1558, allocations: 0.9169 MB / 0.6218 GB, free: 4.965 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0002307/0.1561, allocations: 184 kB / 0.622 GB, free: 4.785 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001747/0.1578, allocations: 0.99 MB / 0.6229 GB, free: 3.793 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0004101/0.1582, allocations: 0.6072 MB / 0.6235 GB, free: 3.184 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0005168/0.1587, allocations: 0.6232 MB / 0.6241 GB, free: 2.559 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.00332/0.1621, allocations: 3.372 MB / 0.6274 GB, free: 15.18 MB / 0.5262 GB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1621, allocations: 0 / 0.6274 GB, free: 15.18 MB / 0.5262 GB Notification: Performance of FrontEnd: time 3.076e-06/0.1621, allocations: 0 / 0.6274 GB, free: 15.18 MB / 0.5262 GB Notification: Performance of Transformations before backend: time 2.71e-05/0.1621, allocations: 0 / 0.6274 GB, free: 15.18 MB / 0.5262 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.003245/0.1653, allocations: 2.919 MB / 0.6303 GB, free: 12.2 MB / 0.5262 GB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.1654, allocations: 11.97 kB / 0.6303 GB, free: 12.19 MB / 0.5262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001493/0.1655, allocations: 195.2 kB / 0.6305 GB, free: 11.99 MB / 0.5262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005208/0.1661, allocations: 303.2 kB / 0.6308 GB, free: 11.69 MB / 0.5262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002897/0.169, allocations: 2.358 MB / 0.6331 GB, free: 9.293 MB / 0.5262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.282e-05/0.169, allocations: 82.52 kB / 0.6331 GB, free: 9.211 MB / 0.5262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.1691, allocations: 108.4 kB / 0.6332 GB, free: 9.105 MB / 0.5262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002626/0.1717, allocations: 2.338 MB / 0.6355 GB, free: 6.395 MB / 0.5262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.506e-05/0.1718, allocations: 15.81 kB / 0.6355 GB, free: 6.379 MB / 0.5262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.979e-05/0.1718, allocations: 55.98 kB / 0.6356 GB, free: 6.324 MB / 0.5262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.343e-05/0.1719, allocations: 32 kB / 0.6356 GB, free: 6.293 MB / 0.5262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00213/0.174, allocations: 1.406 MB / 0.637 GB, free: 4.879 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006059/0.18, allocations: 9.471 MB / 0.6463 GB, free: 11.04 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00211/0.1822, allocations: 1.308 MB / 0.6475 GB, free: 9.609 MB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004865/0.1826, allocations: 470.2 kB / 0.648 GB, free: 9.113 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00013/0.1828, allocations: 56.62 kB / 0.648 GB, free: 9.059 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001727/0.1845, allocations: 1.143 MB / 0.6492 GB, free: 7.832 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=175): time 3.847e-06/0.1845, allocations: 0 / 0.6492 GB, free: 7.832 MB / 0.5418 GB Notification: Performance of matching and sorting (n=175): time 0.004981/0.1895, allocations: 2.783 MB / 0.6519 GB, free: 5.02 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004902/0.19, allocations: 0.6135 MB / 0.6525 GB, free: 4.266 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001796/0.1918, allocations: 1.793 MB / 0.6542 GB, free: 2.43 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 8.307e-05/0.1919, allocations: 49.69 kB / 0.6543 GB, free: 2.375 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.000451/0.1923, allocations: 0.8355 MB / 0.6551 GB, free: 1.527 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003374/0.1926, allocations: 0.5808 MB / 0.6556 GB, free: 0.9414 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003787/0.193, allocations: 411.3 kB / 0.656 GB, free: 0.5352 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 7.181e-05/0.1931, allocations: 317 kB / 0.6563 GB, free: 228 kB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006953/0.1938, allocations: 0.5771 MB / 0.6569 GB, free: 15.63 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009944/0.1948, allocations: 1.312 MB / 0.6582 GB, free: 13.99 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003199/0.198, allocations: 2.745 MB / 0.6609 GB, free: 10.93 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.235e-05/0.198, allocations: 4 kB / 0.6609 GB, free: 10.92 MB / 0.5574 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.002563/0.2006, allocations: 2.199 MB / 0.663 GB, free: 8.703 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 4.279e-05/0.2006, allocations: 41.7 kB / 0.6631 GB, free: 8.656 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001723/0.2023, allocations: 1.447 MB / 0.6645 GB, free: 7.191 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003347/0.2027, allocations: 148.9 kB / 0.6646 GB, free: 7.043 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000778/0.2034, allocations: 479.1 kB / 0.6651 GB, free: 6.574 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008035/0.2042, allocations: 0.7631 MB / 0.6658 GB, free: 5.785 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007172/0.205, allocations: 218.4 kB / 0.666 GB, free: 5.57 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001245/0.2051, allocations: 127.9 kB / 0.6661 GB, free: 5.445 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.001286/0.2064, allocations: 0.9393 MB / 0.6671 GB, free: 4.496 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009765/0.2073, allocations: 1.301 MB / 0.6683 GB, free: 2.863 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002837/0.2102, allocations: 2.717 MB / 0.671 GB, free: 15.83 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.077e-06/0.2102, allocations: 8 kB / 0.671 GB, free: 15.82 MB / 0.573 GB Notification: Performance of matching and sorting (n=270) (initialization_lambda0): time 0.002919/0.2131, allocations: 2.148 MB / 0.6731 GB, free: 13.65 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 4.392e-05/0.2132, allocations: 50.66 kB / 0.6731 GB, free: 13.6 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001566/0.2147, allocations: 1.365 MB / 0.6745 GB, free: 12.22 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002288/0.2149, allocations: 124.7 kB / 0.6746 GB, free: 12.09 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00075/0.2157, allocations: 475.2 kB / 0.675 GB, free: 11.63 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001523/0.2172, allocations: 2.055 MB / 0.6771 GB, free: 9.457 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007578/0.218, allocations: 170.9 kB / 0.6772 GB, free: 9.289 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001172/0.2181, allocations: 123.9 kB / 0.6773 GB, free: 9.168 MB / 0.573 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.0004466/0.2185, allocations: 349.7 kB / 0.6777 GB, free: 8.812 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002841/0.2188, allocations: 234.6 kB / 0.6779 GB, free: 8.582 MB / 0.573 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.002401/0.2212, allocations: 1.83 MB / 0.6797 GB, free: 6.723 MB / 0.573 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. " [Timeout remaining time 799] [Calling sys.exit(0), Time elapsed: 3.1859512766823173]