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.008188/0.008188, allocations: 1.781 MB / 22.36 MB, free: 2.113 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.00117/0.00117, allocations: 80.58 kB / 26.19 MB, free: 6.074 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.001379/0.001379, allocations: 163.8 kB / 30.12 MB, free: 2.18 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.8985/0.8985, allocations: 177.1 MB / 211.1 MB, free: 3.418 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.5991/0.5991, allocations: 102.5 MB / 370.7 MB, free: 220 kB / 330.7 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 1.0.0 (/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.342e-06/1.342e-06, allocations: 0 / 471.2 MB, free: 18.84 MB / 410.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.958e-05/2.092e-05, allocations: 3.438 kB / 471.2 MB, free: 18.84 MB / 410.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.1081/0.1082, allocations: 58.94 MB / 0.5178 GB, free: 12.69 MB / 442.8 MB Notification: Performance of NFInst.instExpressions: time 0.01348/0.1216, allocations: 12.88 MB / 0.5303 GB, free: 15.77 MB / 458.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001041/0.1227, allocations: 43.69 kB / 0.5304 GB, free: 15.73 MB / 458.8 MB Notification: Performance of NFTyping.typeComponents: time 0.002/0.1247, allocations: 0.9771 MB / 0.5313 GB, free: 14.75 MB / 458.8 MB Notification: Performance of NFTyping.typeBindings: time 0.001432/0.1261, allocations: 0.9235 MB / 0.5322 GB, free: 13.82 MB / 458.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.00248/0.1286, allocations: 1.608 MB / 0.5338 GB, free: 12.2 MB / 458.8 MB Notification: Performance of NFFlatten.flatten: time 0.00256/0.1311, allocations: 2.532 MB / 0.5363 GB, free: 9.668 MB / 458.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001049/0.1322, allocations: 0.904 MB / 0.5372 GB, free: 8.734 MB / 458.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1095/0.2417, allocations: 46.54 MB / 0.5826 GB, free: 11.39 MB / 0.4949 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001291/0.243, allocations: 0.7904 MB / 0.5834 GB, free: 10.59 MB / 0.4949 GB Notification: Performance of NFPackage.collectConstants: time 0.000275/0.2433, allocations: 136 kB / 0.5835 GB, free: 10.46 MB / 0.4949 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001304/0.2446, allocations: 0.8183 MB / 0.5843 GB, free: 9.641 MB / 0.4949 GB Notification: Performance of NFScalarize.scalarize: time 0.0003263/0.2449, allocations: 0.5058 MB / 0.5848 GB, free: 9.133 MB / 0.4949 GB Notification: Performance of NFVerifyModel.verify: time 0.0005269/0.2455, allocations: 0.5334 MB / 0.5853 GB, free: 8.598 MB / 0.4949 GB Notification: Performance of NFConvertDAE.convert: time 0.003043/0.2485, allocations: 2.206 MB / 0.5875 GB, free: 6.383 MB / 0.4949 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.2485, allocations: 4 kB / 0.5875 GB, free: 6.379 MB / 0.4949 GB Notification: Performance of FrontEnd: time 1.734e-06/0.2485, allocations: 0 / 0.5875 GB, free: 6.379 MB / 0.4949 GB Notification: Performance of Transformations before backend: time 4.029e-05/0.2486, allocations: 0 / 0.5875 GB, free: 6.379 MB / 0.4949 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.002516/0.2511, allocations: 2.912 MB / 0.5903 GB, free: 3.402 MB / 0.4949 GB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.2511, allocations: 8.031 kB / 0.5903 GB, free: 3.395 MB / 0.4949 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000305/0.2514, allocations: 331.3 kB / 0.5907 GB, free: 3.07 MB / 0.4949 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001307/0.2527, allocations: 1.34 MB / 0.592 GB, free: 1.688 MB / 0.4949 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.985e-05/0.2528, allocations: 82.52 kB / 0.592 GB, free: 1.605 MB / 0.4949 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.2529, allocations: 112.4 kB / 0.5921 GB, free: 1.496 MB / 0.4949 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002334/0.2552, allocations: 2.189 MB / 0.5943 GB, free: 14.83 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.567e-05/0.2552, allocations: 11.88 kB / 0.5943 GB, free: 14.82 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.237e-05/0.2553, allocations: 56 kB / 0.5944 GB, free: 14.76 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.456e-05/0.2553, allocations: 39.98 kB / 0.5944 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001473/0.2568, allocations: 0.9001 MB / 0.5953 GB, free: 13.82 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006526/0.2633, allocations: 12.88 MB / 0.6078 GB, free: 480 kB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001653/0.265, allocations: 1.04 MB / 0.6089 GB, free: 15.28 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002646/0.2653, allocations: 297.4 kB / 0.6091 GB, free: 14.93 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001082/0.2654, allocations: 68.56 kB / 0.6092 GB, free: 14.87 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001344/0.2667, allocations: 0.9717 MB / 0.6102 GB, free: 13.79 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=175): time 3.958e-06/0.2667, allocations: 4 kB / 0.6102 GB, free: 13.79 MB / 0.5262 GB Notification: Performance of matching and sorting (n=175): time 0.003918/0.2706, allocations: 2.164 MB / 0.6123 GB, free: 11.59 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004161/0.271, allocations: 0.6593 MB / 0.6129 GB, free: 10.78 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001249/0.2723, allocations: 1.591 MB / 0.6145 GB, free: 9.133 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 7.931e-05/0.2724, allocations: 53.69 kB / 0.6145 GB, free: 9.074 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005267/0.2729, allocations: 0.9557 MB / 0.6155 GB, free: 8.109 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003718/0.2733, allocations: 0.6002 MB / 0.616 GB, free: 7.504 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003804/0.2737, allocations: 444.9 kB / 0.6165 GB, free: 7.062 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 9.612e-05/0.2738, allocations: 476.8 kB / 0.6169 GB, free: 6.594 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003371/0.2741, allocations: 269.7 kB / 0.6172 GB, free: 6.316 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007709/0.2749, allocations: 1.359 MB / 0.6185 GB, free: 4.492 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001695/0.2766, allocations: 1.832 MB / 0.6203 GB, free: 2.242 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-05/0.2766, allocations: 4 kB / 0.6203 GB, free: 2.238 MB / 0.5262 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.002002/0.2786, allocations: 1.612 MB / 0.6219 GB, free: 0.5977 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 4.703e-05/0.2786, allocations: 41.7 kB / 0.6219 GB, free: 0.5508 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001109/0.2797, allocations: 0.9026 MB / 0.6228 GB, free: 15.63 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002591/0.28, allocations: 115.9 kB / 0.6229 GB, free: 15.52 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000727/0.2807, allocations: 475.1 kB / 0.6234 GB, free: 15.05 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004445/0.2812, allocations: 0.9403 MB / 0.6243 GB, free: 14.08 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000608/0.2818, allocations: 210.5 kB / 0.6245 GB, free: 13.87 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001101/0.2819, allocations: 103.9 kB / 0.6246 GB, free: 13.77 MB / 0.5418 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.0006593/0.2825, allocations: 420.5 kB / 0.625 GB, free: 13.35 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009104/0.2834, allocations: 1.359 MB / 0.6263 GB, free: 11.52 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001376/0.2848, allocations: 1.82 MB / 0.6281 GB, free: 9.281 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.011e-05/0.2848, allocations: 8 kB / 0.6281 GB, free: 9.273 MB / 0.5418 GB Notification: Performance of matching and sorting (n=270) (initialization_lambda0): time 0.001863/0.2867, allocations: 1.612 MB / 0.6297 GB, free: 7.637 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 3.41e-05/0.2867, allocations: 49.69 kB / 0.6297 GB, free: 7.582 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0009555/0.2877, allocations: 0.8715 MB / 0.6306 GB, free: 6.691 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002301/0.2879, allocations: 107.6 kB / 0.6307 GB, free: 6.582 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007205/0.2886, allocations: 475.2 kB / 0.6311 GB, free: 6.117 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001462/0.2901, allocations: 2.368 MB / 0.6334 GB, free: 3.637 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006866/0.2908, allocations: 174.9 kB / 0.6336 GB, free: 3.465 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001036/0.2909, allocations: 107.9 kB / 0.6337 GB, free: 3.359 MB / 0.5418 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.0004318/0.2913, allocations: 437 kB / 0.6341 GB, free: 2.918 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003144/0.2916, allocations: 250.4 kB / 0.6344 GB, free: 2.672 MB / 0.5418 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.001771/0.2934, allocations: 1.642 MB / 0.636 GB, free: 0.9922 MB / 0.5418 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. " [Timeout remaining time 799] [Calling sys.exit(0), Time elapsed: 2.9749824819155037]