Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.436/1.436, allocations: 252 MB / 267.3 MB, free: 10.86 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001546/0.001546, allocations: 165.9 kB / 327 MB, free: 2.102 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.072/2.072, allocations: 205.4 MB / 0.578 GB, free: 20.11 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001175/0.001175, allocations: 91.17 kB / 0.6826 GB, free: 12.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003861/0.0003863, allocations: 8.75 kB / 0.7971 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2395/0.2399, allocations: 106.3 MB / 0.9009 GB, free: 63.4 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.00381/0.2438, allocations: 3.326 MB / 0.9042 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.003129/0.247, allocations: 1.341 MB / 0.9055 GB, free: 58.7 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009911/0.248, allocations: 31.81 kB / 0.9055 GB, free: 58.67 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0004891/0.2485, allocations: 95.09 kB / 0.9056 GB, free: 58.57 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.001015/0.2495, allocations: 139 kB / 0.9057 GB, free: 58.44 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.001448/0.251, allocations: 0.5333 MB / 0.9062 GB, free: 57.91 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.001302/0.2523, allocations: 0.8978 MB / 0.9071 GB, free: 57.01 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006464/0.253, allocations: 329.6 kB / 0.9074 GB, free: 56.67 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005502/0.2535, allocations: 282.3 kB / 0.9077 GB, free: 56.39 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004791/0.254, allocations: 278.1 kB / 0.908 GB, free: 56.12 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 0.0001731/0.2542, allocations: 20 kB / 0.908 GB, free: 56.1 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001/0.2543, allocations: 20 kB / 0.908 GB, free: 56.08 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0001159/0.2544, allocations: 115.3 kB / 0.9081 GB, free: 55.97 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.000324/0.2548, allocations: 331.5 kB / 0.9084 GB, free: 55.64 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0006625/0.2554, allocations: 0.7823 MB / 0.9092 GB, free: 54.85 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.2554, allocations: 0 / 0.9092 GB, free: 54.85 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.543e-06/0.2554, allocations: 0 / 0.9092 GB, free: 54.85 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 3.717e-05/0.2555, allocations: 4 kB / 0.9092 GB, free: 54.85 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002112/0.2576, allocations: 1.056 MB / 0.9102 GB, free: 53.74 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.2577, allocations: 8.031 kB / 0.9102 GB, free: 53.73 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002087/0.2579, allocations: 102.7 kB / 0.9103 GB, free: 53.62 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002229/0.2581, allocations: 91.81 kB / 0.9104 GB, free: 53.53 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001024/0.2591, allocations: 0.6064 MB / 0.911 GB, free: 52.88 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001041/0.2593, allocations: 96.97 kB / 0.9111 GB, free: 52.77 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.809e-05/0.2594, allocations: 56.38 kB / 0.9112 GB, free: 52.72 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001068/0.2604, allocations: 0.6157 MB / 0.9118 GB, free: 52.05 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/0.2605, allocations: 3.938 kB / 0.9118 GB, free: 52.05 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.109e-05/0.2605, allocations: 20 kB / 0.9118 GB, free: 52.03 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.2605, allocations: 16 kB / 0.9118 GB, free: 52.02 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009202/0.2615, allocations: 443.6 kB / 0.9122 GB, free: 51.59 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002748/0.2642, allocations: 2.129 MB / 0.9143 GB, free: 49.37 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001101/0.2653, allocations: 0.5186 MB / 0.9148 GB, free: 48.84 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004213/0.2658, allocations: 228.8 kB / 0.915 GB, free: 48.62 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 3.867e-05/0.2658, allocations: 11.89 kB / 0.915 GB, free: 48.61 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006539/0.2665, allocations: 294.2 kB / 0.9153 GB, free: 48.3 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=45): time 2.194e-06/0.2665, allocations: 0 / 0.9153 GB, free: 48.3 MB / 0.6042 GB Notification: Performance of matching and sorting (n=45): time 0.001343/0.2678, allocations: 0.6372 MB / 0.9159 GB, free: 47.66 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.449e-05/0.2679, allocations: 92.8 kB / 0.916 GB, free: 47.55 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006097/0.2685, allocations: 0.6217 MB / 0.9166 GB, free: 46.92 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 4.562e-05/0.2686, allocations: 37.7 kB / 0.9167 GB, free: 46.88 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002047/0.2688, allocations: 364.8 kB / 0.917 GB, free: 46.52 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 9.782e-05/0.2689, allocations: 154.8 kB / 0.9172 GB, free: 46.36 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.441e-05/0.2689, allocations: 8 kB / 0.9172 GB, free: 46.36 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.839e-05/0.269, allocations: 334 kB / 0.9175 GB, free: 46.02 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003941/0.2694, allocations: 181 kB / 0.9177 GB, free: 45.85 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000419/0.2698, allocations: 288.2 kB / 0.9179 GB, free: 45.53 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000824/0.2707, allocations: 0.494 MB / 0.9184 GB, free: 45 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.2707, allocations: 0 / 0.9184 GB, free: 45 MB / 0.6042 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001087/0.2718, allocations: 0.618 MB / 0.919 GB, free: 44.37 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001035/0.2719, allocations: 201 kB / 0.9192 GB, free: 44.12 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.2719, allocations: 0 / 0.9192 GB, free: 44.12 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.2719, allocations: 8 kB / 0.9192 GB, free: 44.12 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004437/0.2724, allocations: 107.9 kB / 0.9193 GB, free: 44.01 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.2724, allocations: 11.94 kB / 0.9193 GB, free: 44 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004219/0.2728, allocations: 71.41 kB / 0.9194 GB, free: 43.93 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.933e-05/0.2729, allocations: 19.94 kB / 0.9194 GB, free: 43.91 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 7.865e-06/0.2729, allocations: 4 kB / 0.9194 GB, free: 43.91 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008631/0.2738, allocations: 0.5076 MB / 0.9199 GB, free: 43.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.2738, allocations: 0 / 0.9199 GB, free: 43.39 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.442e-06/0.2738, allocations: 8 kB / 0.9199 GB, free: 43.39 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003992/0.2742, allocations: 104.2 kB / 0.92 GB, free: 43.29 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.2742, allocations: 11.92 kB / 0.92 GB, free: 43.27 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003907/0.2746, allocations: 51.58 kB / 0.9201 GB, free: 43.22 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.304e-05/0.2747, allocations: 20 kB / 0.9201 GB, free: 43.2 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000305/0.275, allocations: 272.1 kB / 0.9204 GB, free: 42.93 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001073/0.2751, allocations: 86.94 kB / 0.9205 GB, free: 42.84 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000157/0.2752, allocations: 83.33 kB / 0.9205 GB, free: 42.76 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.2753, allocations: 4 kB / 0.9205 GB, free: 42.75 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.2753, allocations: 0 / 0.9205 GB, free: 42.75 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.2753, allocations: 3.984 kB / 0.9205 GB, free: 42.75 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006131/0.2759, allocations: 0.618 MB / 0.9211 GB, free: 42.08 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.74e-06/0.2759, allocations: 0 / 0.9211 GB, free: 42.08 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004247/0.2763, allocations: 99.88 kB / 0.9212 GB, free: 41.98 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.511e-06/0.2764, allocations: 0 / 0.9212 GB, free: 41.98 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.568e-05/0.2764, allocations: 12 kB / 0.9213 GB, free: 41.97 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.2764, allocations: 4 kB / 0.9213 GB, free: 41.97 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.2764, allocations: 0 / 0.9213 GB, free: 41.97 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001305/0.2777, allocations: 0.7562 MB / 0.922 GB, free: 41.19 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002309/0.278, allocations: 188.1 kB / 0.9222 GB, free: 40.99 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.63e-05/0.2781, allocations: 12 kB / 0.9222 GB, free: 40.98 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004079/0.2785, allocations: 55.89 kB / 0.9222 GB, free: 40.92 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.729e-05/0.2786, allocations: 27.95 kB / 0.9223 GB, free: 40.89 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.88e-05/0.2786, allocations: 15.98 kB / 0.9223 GB, free: 40.88 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0004395/0.2791, allocations: 435 kB / 0.9227 GB, free: 40.46 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2791, allocations: 3.938 kB / 0.9227 GB, free: 40.46 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0005763/0.2797, allocations: 215.4 kB / 0.9229 GB, free: 40.25 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001497/0.2812, allocations: 1.308 MB / 0.9242 GB, free: 38.91 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001459/0.2826, allocations: 0.8123 MB / 0.925 GB, free: 38.07 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.2827, allocations: 0 / 0.925 GB, free: 38.07 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0004178/0.2831, allocations: 228.5 kB / 0.9252 GB, free: 37.85 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009126/0.284, allocations: 194.7 kB / 0.9254 GB, free: 37.66 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007799/0.2918, allocations: 5.974 MB / 0.9312 GB, free: 31.54 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002941/0.2922, allocations: 0.9183 MB / 0.9321 GB, free: 30.59 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0004377/0.2926, allocations: 93.44 kB / 0.9322 GB, free: 30.5 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003054/0.2929, allocations: 267.3 kB / 0.9325 GB, free: 30.24 MB / 0.6042 GB Notification: Performance of SimCode: time 1.062e-06/0.2929, allocations: 0 / 0.9325 GB, free: 30.24 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02721/0.3201, allocations: 13.26 MB / 0.9454 GB, free: 17.18 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001487/0.3203, allocations: 203.5 kB / 0.9456 GB, free: 16.92 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.653/2.973, allocations: 0 / 0.9456 GB, free: 16.92 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_LimPID.fmu > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1)