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.01608/0.01608, allocations: 1.771 MB / 18.82 MB, free: 4.355 MB / 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.001696/0.001696, allocations: 99.72 kB / 22.07 MB, free: 1.109 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.002466/0.002466, allocations: 211.4 kB / 25.45 MB, free: 3.344 MB / 14.72 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.475/1.475, allocations: 230.6 MB / 259.3 MB, free: 13.13 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.05/1.05, allocations: 130.6 MB / 446.3 MB, free: 14.64 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: "" <> buildModelFMU(ClaRa.Components.Utilities.Blocks.Check.test_2_LimPID,fileNamePrefix="ClaRa_ClaRa_Components_Utilities_Blocks_Check_test_2_LimPID",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ClaRa.Components.Utilities.Blocks.Check.test_2_LimPID,fileNamePrefix="ClaRa_ClaRa_Components_Utilities_Blocks_Check_test_2_LimPID",fmuType="cs",version="2.0",platforms={"static"}) [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: Automatically loaded package TILMedia 1.9.0 ClaRa due to uses annotation from ClaRa. 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. 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.3917/0.3917, allocations: 46.14 MB / 0.6552 GB, free: 30.4 MB / 0.4982 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1748/0.5665, allocations: 89.06 MB / 0.7421 GB, free: 2.684 MB / 0.545 GB Notification: Performance of NFInst.instantiate(ClaRa.Components.Utilities.Blocks.Check.test_2_LimPID): time 0.01262/0.5792, allocations: 10.03 MB / 0.7519 GB, free: 8.613 MB / 0.5607 GB Notification: Performance of NFInst.instExpressions: time 0.02043/0.5996, allocations: 13.05 MB / 0.7647 GB, free: 11.52 MB / 0.5763 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001768/0.6014, allocations: 43.69 kB / 0.7647 GB, free: 11.47 MB / 0.5763 GB Notification: Performance of NFTyping.typeComponents: time 0.003053/0.6044, allocations: 1.002 MB / 0.7657 GB, free: 10.46 MB / 0.5763 GB Notification: Performance of NFTyping.typeBindings: time 0.002675/0.6071, allocations: 0.8582 MB / 0.7665 GB, free: 9.602 MB / 0.5763 GB Notification: Performance of NFTyping.typeClassSections: time 0.004043/0.6111, allocations: 1.53 MB / 0.768 GB, free: 8.07 MB / 0.5763 GB Notification: Performance of NFFlatten.flatten: time 0.004023/0.6152, allocations: 2.465 MB / 0.7704 GB, free: 5.598 MB / 0.5763 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001545/0.6167, allocations: 0.8215 MB / 0.7712 GB, free: 4.746 MB / 0.5763 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001688/0.6184, allocations: 1.012 MB / 0.7722 GB, free: 3.73 MB / 0.5763 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001881/0.6203, allocations: 1.142 MB / 0.7733 GB, free: 2.586 MB / 0.5763 GB Notification: Performance of NFPackage.collectConstants: time 0.0004318/0.6207, allocations: 184 kB / 0.7735 GB, free: 2.406 MB / 0.5763 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002602/0.6233, allocations: 1.256 MB / 0.7747 GB, free: 1.148 MB / 0.5763 GB Notification: Performance of NFScalarize.scalarize: time 0.0007592/0.6241, allocations: 0.5994 MB / 0.7753 GB, free: 0.5469 MB / 0.5763 GB Notification: Performance of NFVerifyModel.verify: time 0.001275/0.6253, allocations: 1.029 MB / 0.7763 GB, free: 15.51 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.005907/0.6312, allocations: 3.455 MB / 0.7797 GB, free: 12.04 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.6312, allocations: 4 kB / 0.7797 GB, free: 12.04 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.593e-06/0.6312, allocations: 0 / 0.7797 GB, free: 12.04 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 7.104e-05/0.6313, allocations: 0 / 0.7797 GB, free: 12.04 MB / 0.5919 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.005292/0.6366, allocations: 2.77 MB / 0.7824 GB, free: 9.195 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.6367, allocations: 8.031 kB / 0.7824 GB, free: 9.188 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.195e-05/0.6367, allocations: 34.33 kB / 0.7825 GB, free: 9.152 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002468/0.637, allocations: 195.2 kB / 0.7826 GB, free: 8.953 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009185/0.6379, allocations: 299.2 kB / 0.7829 GB, free: 8.66 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004536/0.6424, allocations: 2.488 MB / 0.7854 GB, free: 6.129 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.722e-05/0.6425, allocations: 78.14 kB / 0.7854 GB, free: 6.051 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001738/0.6427, allocations: 108 kB / 0.7855 GB, free: 5.945 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00452/0.6472, allocations: 2.076 MB / 0.7876 GB, free: 3.555 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.887e-05/0.6472, allocations: 19.86 kB / 0.7876 GB, free: 3.535 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001179/0.6473, allocations: 52 kB / 0.7876 GB, free: 3.484 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.806e-05/0.6474, allocations: 36 kB / 0.7877 GB, free: 3.449 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00371/0.6511, allocations: 1.377 MB / 0.789 GB, free: 2.07 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01017/0.6613, allocations: 9.992 MB / 0.7988 GB, free: 7.66 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003657/0.6649, allocations: 1.29 MB / 0.8 GB, free: 6.258 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008258/0.6658, allocations: 444.4 kB / 0.8005 GB, free: 5.793 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001784/0.6659, allocations: 64.45 kB / 0.8005 GB, free: 5.73 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002964/0.6689, allocations: 1.118 MB / 0.8016 GB, free: 4.543 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=175): time 3.987e-06/0.6689, allocations: 0 / 0.8016 GB, free: 4.543 MB / 0.6075 GB Notification: Performance of matching and sorting (n=175): time 0.008975/0.6779, allocations: 2.796 MB / 0.8043 GB, free: 1.715 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003458/0.6782, allocations: 0.6052 MB / 0.8049 GB, free: 0.9688 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002812/0.681, allocations: 1.77 MB / 0.8067 GB, free: 15.16 MB / 0.6232 GB Notification: Performance of collectPreVariables (initialization): time 0.0002257/0.6813, allocations: 45.7 kB / 0.8067 GB, free: 15.11 MB / 0.6232 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007967/0.6821, allocations: 0.8356 MB / 0.8075 GB, free: 14.26 MB / 0.6232 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007048/0.6828, allocations: 0.5964 MB / 0.8081 GB, free: 13.66 MB / 0.6232 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006773/0.6834, allocations: 419.3 kB / 0.8085 GB, free: 13.24 MB / 0.6232 GB Notification: Performance of setup shared object (initialization): time 0.0001547/0.6836, allocations: 305.1 kB / 0.8088 GB, free: 12.94 MB / 0.6232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001112/0.6847, allocations: 0.5439 MB / 0.8093 GB, free: 12.39 MB / 0.6232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0017/0.6864, allocations: 1.204 MB / 0.8105 GB, free: 10.88 MB / 0.6232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005292/0.6917, allocations: 2.749 MB / 0.8132 GB, free: 7.805 MB / 0.6232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.677e-05/0.6917, allocations: 8 kB / 0.8132 GB, free: 7.797 MB / 0.6232 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004671/0.6964, allocations: 2.135 MB / 0.8153 GB, free: 5.645 MB / 0.6232 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001025/0.6965, allocations: 45.7 kB / 0.8153 GB, free: 5.594 MB / 0.6232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002938/0.6994, allocations: 1.41 MB / 0.8167 GB, free: 4.172 MB / 0.6232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005819/0.7, allocations: 148.8 kB / 0.8168 GB, free: 4.023 MB / 0.6232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001389/0.7014, allocations: 467.2 kB / 0.8173 GB, free: 3.566 MB / 0.6232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009341/0.7023, allocations: 0.7787 MB / 0.818 GB, free: 2.762 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001334/0.7037, allocations: 222.3 kB / 0.8183 GB, free: 2.543 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002101/0.7039, allocations: 127.9 kB / 0.8184 GB, free: 2.418 MB / 0.6232 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.001862/0.7057, allocations: 0.9101 MB / 0.8193 GB, free: 1.504 MB / 0.6232 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00156/0.7073, allocations: 1.189 MB / 0.8204 GB, free: 12 kB / 0.6232 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004835/0.7121, allocations: 2.705 MB / 0.8231 GB, free: 12.99 MB / 0.6388 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.603e-05/0.7121, allocations: 8 kB / 0.8231 GB, free: 12.98 MB / 0.6388 GB Notification: Performance of matching and sorting (n=270) (initialization_lambda0): time 0.004336/0.7165, allocations: 2.104 MB / 0.8251 GB, free: 10.86 MB / 0.6388 GB Notification: Performance of prepare postOptimizeDAE: time 6.405e-05/0.7165, allocations: 53.72 kB / 0.8252 GB, free: 10.8 MB / 0.6388 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002494/0.719, allocations: 1.316 MB / 0.8265 GB, free: 9.477 MB / 0.6388 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003707/0.7194, allocations: 124.8 kB / 0.8266 GB, free: 9.352 MB / 0.6388 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001378/0.7208, allocations: 471.2 kB / 0.827 GB, free: 8.891 MB / 0.6388 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002478/0.7233, allocations: 2.175 MB / 0.8292 GB, free: 6.574 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001337/0.7246, allocations: 182.8 kB / 0.8293 GB, free: 6.395 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002324/0.7248, allocations: 120.3 kB / 0.8295 GB, free: 6.277 MB / 0.6388 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.000682/0.7255, allocations: 353.2 kB / 0.8298 GB, free: 5.918 MB / 0.6388 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005335/0.726, allocations: 222.5 kB / 0.83 GB, free: 5.699 MB / 0.6388 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.003552/0.7296, allocations: 1.821 MB / 0.8318 GB, free: 3.848 MB / 0.6388 GB Error: post-optimization module wrapFunctionCalls (simulation) failed. " [Timeout remaining time 799] [Calling sys.exit(0), Time elapsed: 4.2837587259709835] Failed to read output from testmodel.py, exit status != 0: 0.7376838290365413 0.751976624 0.11751546500000001 Calling exit ...