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.01101/0.01101, allocations: 1.751 MB / 21.35 MB, free: 356 kB / 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.001554/0.001554, allocations: 102.2 kB / 24.93 MB, free: 2.031 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.001952/0.001952, allocations: 212 kB / 28.65 MB, free: 3.297 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.539/1.539, allocations: 230.6 MB / 262.8 MB, free: 5.848 MB / 206.1 MB " [Timeout remaining time 178] 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 1.156/1.156, allocations: 130.7 MB / 450.4 MB, free: 6.445 MB / 350.1 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.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_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: 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.0689/0.0689, allocations: 20.99 MB / 0.6371 GB, free: 4.25 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1619/0.2308, allocations: 81.91 MB / 0.7171 GB, free: 2.246 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.5573/0.7881, allocations: 42.06 MB / 0.7581 GB, free: 23.95 MB / 0.5607 GB Notification: Performance of NFInst.instExpressions: time 0.02019/0.8083, allocations: 12.57 MB / 0.7704 GB, free: 15.4 MB / 0.5607 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002833/0.8112, allocations: 49.88 kB / 0.7705 GB, free: 15.38 MB / 0.5607 GB Notification: Performance of NFTyping.typeComponents: time 0.003884/0.815, allocations: 0.9635 MB / 0.7714 GB, free: 14.94 MB / 0.5607 GB Notification: Performance of NFTyping.typeBindings: time 0.00378/0.8188, allocations: 0.8889 MB / 0.7723 GB, free: 14.39 MB / 0.5607 GB Notification: Performance of NFTyping.typeClassSections: time 0.00512/0.8239, allocations: 1.578 MB / 0.7738 GB, free: 13.6 MB / 0.5607 GB Notification: Performance of NFFlatten.flatten: time 0.004903/0.8289, allocations: 2.463 MB / 0.7762 GB, free: 12.41 MB / 0.5607 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001856/0.8307, allocations: 0.8533 MB / 0.777 GB, free: 11.97 MB / 0.5607 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001873/0.8326, allocations: 1.011 MB / 0.778 GB, free: 11.5 MB / 0.5607 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001924/0.8345, allocations: 1.078 MB / 0.7791 GB, free: 11.03 MB / 0.5607 GB Notification: Performance of NFPackage.collectConstants: time 0.0003779/0.8349, allocations: 185.1 kB / 0.7793 GB, free: 11.03 MB / 0.5607 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002977/0.8379, allocations: 0.9802 MB / 0.7802 GB, free: 10.76 MB / 0.5607 GB Notification: Performance of NFScalarize.scalarize: time 0.0006291/0.8385, allocations: 0.5944 MB / 0.7808 GB, free: 10.43 MB / 0.5607 GB Notification: Performance of NFVerifyModel.verify: time 0.0009596/0.8394, allocations: 0.7829 MB / 0.7816 GB, free: 9.961 MB / 0.5607 GB Notification: Performance of NFConvertDAE.convert: time 0.006364/0.8458, allocations: 3.403 MB / 0.7849 GB, free: 8.141 MB / 0.5607 GB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.8458, allocations: 0 / 0.7849 GB, free: 8.141 MB / 0.5607 GB Notification: Performance of FrontEnd: time 3.066e-06/0.8458, allocations: 1.031 kB / 0.7849 GB, free: 8.141 MB / 0.5607 GB Notification: Performance of Transformations before backend: time 7.19e-05/0.8459, allocations: 0 / 0.7849 GB, free: 8.141 MB / 0.5607 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.006051/0.8519, allocations: 2.946 MB / 0.7878 GB, free: 6.008 MB / 0.5607 GB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.852, allocations: 10.22 kB / 0.7878 GB, free: 6.008 MB / 0.5607 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009979/0.853, allocations: 301.4 kB / 0.7881 GB, free: 5.844 MB / 0.5607 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004708/0.8577, allocations: 2.383 MB / 0.7904 GB, free: 4.219 MB / 0.5607 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.908e-05/0.8578, allocations: 87.17 kB / 0.7905 GB, free: 4.176 MB / 0.5607 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001712/0.858, allocations: 111.9 kB / 0.7906 GB, free: 4.137 MB / 0.5607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004256/0.8622, allocations: 2.332 MB / 0.7929 GB, free: 2.195 MB / 0.5607 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.596e-05/0.8622, allocations: 13 kB / 0.7929 GB, free: 2.188 MB / 0.5607 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.791e-05/0.8623, allocations: 55.38 kB / 0.7929 GB, free: 2.152 MB / 0.5607 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.447e-05/0.8624, allocations: 35.38 kB / 0.793 GB, free: 2.152 MB / 0.5607 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003369/0.8657, allocations: 1.401 MB / 0.7943 GB, free: 1.453 MB / 0.5607 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01114/0.8769, allocations: 9.333 MB / 0.8034 GB, free: 8.699 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003786/0.8807, allocations: 1.304 MB / 0.8047 GB, free: 7.867 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009194/0.8816, allocations: 474.8 kB / 0.8052 GB, free: 7.555 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001828/0.8818, allocations: 63.38 kB / 0.8052 GB, free: 7.535 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002923/0.8847, allocations: 1.152 MB / 0.8063 GB, free: 6.766 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=175): time 4.028e-06/0.8847, allocations: 0 / 0.8063 GB, free: 6.766 MB / 0.5763 GB Notification: Performance of matching and sorting (n=175): time 0.008847/0.8936, allocations: 2.776 MB / 0.8091 GB, free: 3.984 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004429/0.894, allocations: 0.6091 MB / 0.8097 GB, free: 3.234 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00322/0.8972, allocations: 1.732 MB / 0.8113 GB, free: 1.453 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0002153/0.8974, allocations: 41.7 kB / 0.8114 GB, free: 1.406 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009015/0.8983, allocations: 0.8429 MB / 0.8122 GB, free: 0.5547 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.000721/0.8991, allocations: 0.5953 MB / 0.8128 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006667/0.8997, allocations: 415.3 kB / 0.8132 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001602/0.8999, allocations: 308.9 kB / 0.8135 GB, free: 15.24 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00117/0.901, allocations: 0.5729 MB / 0.814 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001884/0.9029, allocations: 1.319 MB / 0.8153 GB, free: 13 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005323/0.9083, allocations: 2.753 MB / 0.818 GB, free: 9.973 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.529e-05/0.9083, allocations: 4 kB / 0.818 GB, free: 9.969 MB / 0.5919 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004654/0.9129, allocations: 2.168 MB / 0.8201 GB, free: 7.793 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 7.053e-05/0.913, allocations: 53.25 kB / 0.8202 GB, free: 7.738 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002969/0.916, allocations: 1.448 MB / 0.8216 GB, free: 6.277 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005447/0.9165, allocations: 144 kB / 0.8217 GB, free: 6.137 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001399/0.9179, allocations: 467.2 kB / 0.8222 GB, free: 5.68 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001016/0.9189, allocations: 0.7779 MB / 0.8229 GB, free: 4.879 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001597/0.9205, allocations: 210.5 kB / 0.8231 GB, free: 4.672 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002345/0.9208, allocations: 123.9 kB / 0.8233 GB, free: 4.551 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.002107/0.9229, allocations: 0.9468 MB / 0.8242 GB, free: 3.594 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001778/0.9246, allocations: 1.307 MB / 0.8255 GB, free: 1.965 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005048/0.9297, allocations: 2.716 MB / 0.8281 GB, free: 14.97 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.519e-05/0.9297, allocations: 4 kB / 0.8281 GB, free: 14.97 MB / 0.6075 GB Notification: Performance of matching and sorting (n=270) (initialization_lambda0): time 0.004607/0.9343, allocations: 2.135 MB / 0.8302 GB, free: 12.83 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.542e-05/0.9344, allocations: 51.03 kB / 0.8303 GB, free: 12.77 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002602/0.937, allocations: 1.363 MB / 0.8316 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000352/0.9373, allocations: 117 kB / 0.8317 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001397/0.9387, allocations: 479.1 kB / 0.8322 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002605/0.9413, allocations: 2.028 MB / 0.8341 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001629/0.943, allocations: 178.9 kB / 0.8343 GB, free: 8.516 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002246/0.9432, allocations: 123.9 kB / 0.8344 GB, free: 8.395 MB / 0.6075 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.0007961/0.944, allocations: 360.1 kB / 0.8348 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006044/0.9446, allocations: 218.5 kB / 0.835 GB, free: 7.82 MB / 0.6075 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.003714/0.9483, allocations: 1.837 MB / 0.8368 GB, free: 6.074 MB / 0.6075 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. " [Timeout remaining time 799] [Calling sys.exit(0), Time elapsed: 5.1489984770305455] Failed to read output from testmodel.py, exit status != 0: 1.163568729069084 1.179703075 0.330482584 Calling exit ...