Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_9_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_9_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001257/0.001257, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001473/0.001473, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.268/2.268, allocations: 390.3 MB / 0.6653 GB, free: 2.914 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005645/0.0005645, allocations: 8 kB / 0.8146 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7667/0.7673, allocations: 142.3 MB / 0.9536 GB, free: 8.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.00341/0.7708, allocations: 3.131 MB / 0.9566 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002247/0.7731, allocations: 1.205 MB / 0.9578 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004093/0.7735, allocations: 26.94 kB / 0.9578 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.951e-05/0.7736, allocations: 51.38 kB / 0.9579 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000598/0.7742, allocations: 186.6 kB / 0.9581 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001045/0.7753, allocations: 474 kB / 0.9585 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0008654/0.7761, allocations: 0.6001 MB / 0.9591 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004386/0.7766, allocations: 258.3 kB / 0.9593 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003811/0.777, allocations: 298.5 kB / 0.9596 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000295/0.7773, allocations: 259.8 kB / 0.9599 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.094e-05/0.7773, allocations: 20.94 kB / 0.9599 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.502e-05/0.7774, allocations: 24.62 kB / 0.9599 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001002/0.7775, allocations: 106.8 kB / 0.96 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001039/0.7776, allocations: 137 kB / 0.9602 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004906/0.7781, allocations: 0.6173 MB / 0.9608 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.7781, allocations: 0 / 0.9608 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.823e-06/0.7782, allocations: 0 / 0.9608 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.332e-05/0.7782, allocations: 1.125 kB / 0.9608 GB, free: 2.57 MB / 0.7169 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.001866/0.78, allocations: 1.069 MB / 0.9618 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.7801, allocations: 8.812 kB / 0.9618 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001058/0.7802, allocations: 91.39 kB / 0.9619 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001543/0.7804, allocations: 101 kB / 0.962 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008789/0.7813, allocations: 0.5645 MB / 0.9625 GB, free: 1.113 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001062/0.7814, allocations: 99.14 kB / 0.9626 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.889e-05/0.7815, allocations: 63.09 kB / 0.9627 GB, free: 1.004 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001048/0.7825, allocations: 0.6081 MB / 0.9633 GB, free: 0.5859 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.7826, allocations: 1.031 kB / 0.9633 GB, free: 0.5859 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.161e-05/0.7826, allocations: 21.59 kB / 0.9633 GB, free: 0.5703 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.722e-05/0.7826, allocations: 21.08 kB / 0.9633 GB, free: 0.5625 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000951/0.7836, allocations: 440.9 kB / 0.9638 GB, free: 368 kB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002986/0.7866, allocations: 2.126 MB / 0.9658 GB, free: 14.61 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001384/0.788, allocations: 0.5193 MB / 0.9663 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.677e-05/0.788, allocations: 12.62 kB / 0.9664 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007358/0.7888, allocations: 297.8 kB / 0.9666 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=45): time 2.875e-06/0.7888, allocations: 0 / 0.9666 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of matching and sorting (n=45): time 0.001684/0.7905, allocations: 0.6322 MB / 0.9673 GB, free: 13.85 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.759e-05/0.7906, allocations: 95 kB / 0.9673 GB, free: 13.75 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008673/0.7914, allocations: 0.6081 MB / 0.9679 GB, free: 13.39 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.798e-05/0.7915, allocations: 32.8 kB / 0.968 GB, free: 13.35 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000296/0.7918, allocations: 353.7 kB / 0.9683 GB, free: 13.04 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.000157/0.792, allocations: 159.9 kB / 0.9685 GB, free: 12.9 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.564e-05/0.792, allocations: 10.94 kB / 0.9685 GB, free: 12.89 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001405/0.7922, allocations: 322.1 kB / 0.9688 GB, free: 12.58 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004732/0.7926, allocations: 193.9 kB / 0.969 GB, free: 12.48 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005494/0.7932, allocations: 278.6 kB / 0.9692 GB, free: 12.29 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005342/0.7937, allocations: 236.6 kB / 0.9695 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.7938, allocations: 4.938 kB / 0.9695 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001297/0.7951, allocations: 0.606 MB / 0.97 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004968/0.7956, allocations: 0.9936 MB / 0.971 GB, free: 10.77 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.7956, allocations: 10.5 kB / 0.971 GB, free: 10.77 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.105e-05/0.7956, allocations: 6.281 kB / 0.971 GB, free: 10.77 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005101/0.7961, allocations: 108.8 kB / 0.9711 GB, free: 10.74 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.467e-05/0.7962, allocations: 11.81 kB / 0.9711 GB, free: 10.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004384/0.7966, allocations: 74.2 kB / 0.9712 GB, free: 10.69 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.332e-05/0.7967, allocations: 18.44 kB / 0.9712 GB, free: 10.68 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 8.406e-06/0.7967, allocations: 4.75 kB / 0.9712 GB, free: 10.68 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001038/0.7977, allocations: 0.4998 MB / 0.9717 GB, free: 10.43 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.7977, allocations: 3.062 kB / 0.9717 GB, free: 10.43 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.7977, allocations: 9.031 kB / 0.9717 GB, free: 10.42 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004566/0.7982, allocations: 104.5 kB / 0.9718 GB, free: 10.4 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.7982, allocations: 8.781 kB / 0.9718 GB, free: 10.39 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003807/0.7986, allocations: 61.11 kB / 0.9719 GB, free: 10.36 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.589e-05/0.7987, allocations: 22.77 kB / 0.9719 GB, free: 10.35 MB / 0.7325 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003734/0.799, allocations: 275.3 kB / 0.9722 GB, free: 10.1 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/0.7992, allocations: 78.02 kB / 0.9723 GB, free: 10.06 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001535/0.7993, allocations: 77.84 kB / 0.9723 GB, free: 9.992 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.173e-06/0.7993, allocations: 4.094 kB / 0.9723 GB, free: 9.992 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/0.7994, allocations: 5.938 kB / 0.9724 GB, free: 9.988 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.7994, allocations: 3.984 kB / 0.9724 GB, free: 9.984 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000772/0.8001, allocations: 0.6139 MB / 0.973 GB, free: 9.484 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.8002, allocations: 3.984 kB / 0.973 GB, free: 9.48 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004773/0.8006, allocations: 86.36 kB / 0.973 GB, free: 9.461 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.656e-06/0.8007, allocations: 5.859 kB / 0.973 GB, free: 9.457 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.214e-05/0.8007, allocations: 11.25 kB / 0.9731 GB, free: 9.449 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.8007, allocations: 1.156 kB / 0.9731 GB, free: 9.449 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.8007, allocations: 5.125 kB / 0.9731 GB, free: 9.445 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001611/0.8023, allocations: 0.7392 MB / 0.9738 GB, free: 9.047 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002622/0.8026, allocations: 197.2 kB / 0.974 GB, free: 8.859 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.117e-05/0.8027, allocations: 15.02 kB / 0.974 GB, free: 8.848 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004105/0.8031, allocations: 42.69 kB / 0.974 GB, free: 8.832 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.997e-05/0.8032, allocations: 38.34 kB / 0.9741 GB, free: 8.809 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.618e-05/0.8033, allocations: 10.94 kB / 0.9741 GB, free: 8.809 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0005641/0.8038, allocations: 431 kB / 0.9745 GB, free: 8.559 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.71e-07/0.8038, allocations: 0 / 0.9745 GB, free: 8.559 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0006807/0.8045, allocations: 210.6 kB / 0.9747 GB, free: 8.508 MB / 0.7325 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001946/0.8065, allocations: 1.301 MB / 0.976 GB, free: 7.566 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001731/0.8082, allocations: 0.8161 MB / 0.9768 GB, free: 7.125 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.8082, allocations: 1 kB / 0.9768 GB, free: 7.125 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0005074/0.8087, allocations: 224.7 kB / 0.977 GB, free: 7.031 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009113/0.8097, allocations: 180.2 kB / 0.9771 GB, free: 6.938 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003913/0.8136, allocations: 3.291 MB / 0.9804 GB, free: 3.977 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006053/0.8142, allocations: 0.9339 MB / 0.9813 GB, free: 3.016 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0004775/0.8147, allocations: 85.14 kB / 0.9813 GB, free: 2.934 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003849/0.8151, allocations: 259.3 kB / 0.9816 GB, free: 2.68 MB / 0.7325 GB Notification: Performance of SimCode: time 1.112e-06/0.8151, allocations: 0 / 0.9816 GB, free: 2.68 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0295/0.8446, allocations: 12.82 MB / 0.9941 GB, free: 6.062 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001726/0.8448, allocations: 176.4 kB / 0.9943 GB, free: 5.82 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.916/2.76, allocations: 4 kB / 0.9943 GB, free: 5.816 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.Continuous.Examples.LimPID_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_Continuous_Examples_LimPID.fmu > Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.Continuous.Examples.LimPID_res.mat does not exist to compare? outputFormat=mat