Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ClaRa_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.006134/0.006134, allocations: 1.435 MB / 21.29 MB, free: 3.262 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.000709/0.000709, allocations: 95.77 kB / 24.91 MB, free: 7.266 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.000728/0.000728, allocations: 163.4 kB / 28.62 MB, free: 4.453 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.8689/0.8689, allocations: 177.2 MB / 209.4 MB, free: 2.98 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.9.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.9.0/package.mo): time 0.7416/0.7416, allocations: 102.5 MB / 368.7 MB, free: 1.484 MB / 330.8 MB " [Timeout remaining time 179] Using package ClaRa with version 1.9.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ClaRa 1.9.0/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_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_ClaRa.Components.Utilities.Blocks.Check.test_2_LimPID") [Timeout 800] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 1.281 kB / 0.5374 GB, free: 39.88 MB / 490.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.004e-05/2.174e-05, allocations: 5.234 kB / 0.5374 GB, free: 39.88 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.1107/0.1107, allocations: 55.7 MB / 0.5918 GB, free: 4.328 MB / 490.8 MB Notification: Performance of NFInst.instExpressions: time 0.01253/0.1232, allocations: 12.36 MB / 0.6039 GB, free: 7.93 MB / 0.4949 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009945/0.1242, allocations: 47.69 kB / 0.6039 GB, free: 7.883 MB / 0.4949 GB Notification: Performance of NFTyping.typeComponents: time 0.001887/0.1261, allocations: 0.9747 MB / 0.6049 GB, free: 6.902 MB / 0.4949 GB Notification: Performance of NFTyping.typeBindings: time 0.001245/0.1274, allocations: 0.9003 MB / 0.6058 GB, free: 5.996 MB / 0.4949 GB Notification: Performance of NFTyping.typeClassSections: time 0.002598/0.13, allocations: 1.62 MB / 0.6073 GB, free: 4.371 MB / 0.4949 GB Notification: Performance of NFFlatten.flatten: time 0.002228/0.1322, allocations: 2.528 MB / 0.6098 GB, free: 1.832 MB / 0.4949 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001087/0.1333, allocations: 0.8567 MB / 0.6106 GB, free: 0.9453 MB / 0.4949 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00136/0.1346, allocations: 1.372 MB / 0.612 GB, free: 15.57 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009766/0.1356, allocations: 0.9113 MB / 0.6129 GB, free: 14.66 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0002567/0.1359, allocations: 184 kB / 0.6131 GB, free: 14.48 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001425/0.1373, allocations: 0.99 MB / 0.614 GB, free: 13.48 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0003578/0.1377, allocations: 0.6033 MB / 0.6146 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0005442/0.1382, allocations: 0.6231 MB / 0.6152 GB, free: 12.25 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.002907/0.1411, allocations: 3.372 MB / 0.6185 GB, free: 8.871 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.1411, allocations: 0 / 0.6185 GB, free: 8.871 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.212e-06/0.1411, allocations: 0 / 0.6185 GB, free: 8.871 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 2.554e-05/0.1411, allocations: 0 / 0.6185 GB, free: 8.871 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.002792/0.1439, allocations: 2.927 MB / 0.6214 GB, free: 5.887 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.144, allocations: 8.031 kB / 0.6214 GB, free: 5.879 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000497/0.1445, allocations: 311.1 kB / 0.6217 GB, free: 5.574 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002568/0.147, allocations: 2.358 MB / 0.624 GB, free: 3.176 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.368e-05/0.1471, allocations: 82.52 kB / 0.6241 GB, free: 3.094 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001064/0.1472, allocations: 108.4 kB / 0.6242 GB, free: 2.988 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00251/0.1497, allocations: 2.327 MB / 0.6264 GB, free: 292 kB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.65e-05/0.1497, allocations: 15.88 kB / 0.6264 GB, free: 276 kB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.842e-05/0.1498, allocations: 52 kB / 0.6265 GB, free: 224 kB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.317e-05/0.1498, allocations: 36 kB / 0.6265 GB, free: 188 kB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001984/0.1518, allocations: 1.402 MB / 0.6279 GB, free: 14.77 MB / 0.5262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004941/0.1568, allocations: 9.313 MB / 0.637 GB, free: 5.105 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001856/0.1586, allocations: 1.304 MB / 0.6383 GB, free: 3.68 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004489/0.1591, allocations: 466.3 kB / 0.6387 GB, free: 3.188 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001126/0.1592, allocations: 60.56 kB / 0.6388 GB, free: 3.129 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001556/0.1607, allocations: 1.147 MB / 0.6399 GB, free: 1.902 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=175): time 2.505e-06/0.1607, allocations: 0 / 0.6399 GB, free: 1.902 MB / 0.5262 GB Notification: Performance of matching and sorting (n=175): time 0.004486/0.1652, allocations: 2.794 MB / 0.6426 GB, free: 15.08 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002046/0.1654, allocations: 0.6052 MB / 0.6432 GB, free: 14.34 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001412/0.1668, allocations: 1.728 MB / 0.6449 GB, free: 12.56 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 6.258e-05/0.1669, allocations: 41.7 kB / 0.6449 GB, free: 12.51 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004508/0.1673, allocations: 0.8434 MB / 0.6458 GB, free: 11.66 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002982/0.1676, allocations: 0.5808 MB / 0.6463 GB, free: 11.07 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003834/0.168, allocations: 415.3 kB / 0.6467 GB, free: 10.66 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 7.145e-05/0.1681, allocations: 305.1 kB / 0.647 GB, free: 10.36 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006677/0.1688, allocations: 0.5768 MB / 0.6476 GB, free: 9.773 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009978/0.1698, allocations: 1.312 MB / 0.6489 GB, free: 8.129 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002925/0.1727, allocations: 2.757 MB / 0.6516 GB, free: 5.051 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.987e-06/0.1727, allocations: 8 kB / 0.6516 GB, free: 5.043 MB / 0.5418 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.002366/0.1751, allocations: 2.18 MB / 0.6537 GB, free: 2.84 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 4.282e-05/0.1751, allocations: 41.7 kB / 0.6537 GB, free: 2.793 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001684/0.1768, allocations: 1.451 MB / 0.6551 GB, free: 1.324 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002901/0.1771, allocations: 152.8 kB / 0.6553 GB, free: 1.172 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006948/0.1778, allocations: 471.2 kB / 0.6557 GB, free: 0.7109 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005374/0.1783, allocations: 0.767 MB / 0.6565 GB, free: 15.91 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005701/0.1789, allocations: 218.5 kB / 0.6567 GB, free: 15.7 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001244/0.179, allocations: 124.2 kB / 0.6568 GB, free: 15.58 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.001097/0.1801, allocations: 0.9472 MB / 0.6577 GB, free: 14.62 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009876/0.1811, allocations: 1.293 MB / 0.659 GB, free: 13 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002814/0.1839, allocations: 2.713 MB / 0.6617 GB, free: 9.973 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.267e-06/0.1839, allocations: 8 kB / 0.6617 GB, free: 9.965 MB / 0.5574 GB Notification: Performance of matching and sorting (n=270) (initialization_lambda0): time 0.002339/0.1863, allocations: 2.152 MB / 0.6638 GB, free: 7.789 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 3.31e-05/0.1863, allocations: 45.7 kB / 0.6638 GB, free: 7.738 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001494/0.1878, allocations: 1.369 MB / 0.6651 GB, free: 6.355 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001841/0.188, allocations: 124.7 kB / 0.6653 GB, free: 6.23 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007012/0.1887, allocations: 467.4 kB / 0.6657 GB, free: 5.773 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00146/0.1901, allocations: 2.028 MB / 0.6677 GB, free: 3.645 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005185/0.1906, allocations: 178.8 kB / 0.6679 GB, free: 3.469 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001119/0.1908, allocations: 119.9 kB / 0.668 GB, free: 3.352 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.0003557/0.1911, allocations: 353.7 kB / 0.6683 GB, free: 2.992 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002196/0.1913, allocations: 214.5 kB / 0.6685 GB, free: 2.781 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.001976/0.1933, allocations: 1.838 MB / 0.6703 GB, free: 0.9141 MB / 0.5574 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. " [Timeout remaining time 800] [Calling sys.exit(0), Time elapsed: 3.3494182666763663] Failed to read output from testmodel.py, exit status != 0: 0.36133610270917416 0.6584685419999999 0.515580397 Calling exit ...