Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.23/2.23, allocations: 390.3 MB / 402.8 MB, free: 6.691 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 184.9 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.625/1.625, allocations: 221.3 MB / 0.7915 GB, free: 5.406 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009943/0.0009944, allocations: 91.89 kB / 0.9317 GB, free: 5.727 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.944e-05/3.946e-05, allocations: 0 / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2745/0.2746, allocations: 143 MB / 1.219 GB, free: 13.42 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.98/1.255, allocations: 158 MB / 1.373 GB, free: 12.09 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002481/1.255, allocations: 77.39 kB / 1.373 GB, free: 12.05 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.04881/1.304, allocations: 16.9 MB / 1.39 GB, free: 13.82 MB / 0.8542 GB Notification: Performance of FrontEnd: time 2.775e-06/1.304, allocations: 4 kB / 1.39 GB, free: 13.82 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 7.298e-05/1.304, allocations: 19.94 kB / 1.39 GB, free: 13.8 MB / 0.8542 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.001888/1.306, allocations: 0.9435 MB / 1.391 GB, free: 12.85 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 6.373e-05/1.306, allocations: 8.031 kB / 1.391 GB, free: 12.84 MB / 0.8542 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001454/1.306, allocations: 90.95 kB / 1.391 GB, free: 12.78 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001954/1.306, allocations: 94.88 kB / 1.391 GB, free: 12.68 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00114/1.307, allocations: 0.5852 MB / 1.391 GB, free: 12.15 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001495/1.308, allocations: 94.34 kB / 1.391 GB, free: 12.05 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001089/1.308, allocations: 52.75 kB / 1.392 GB, free: 12.02 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009667/1.309, allocations: 0.587 MB / 1.392 GB, free: 11.56 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/1.309, allocations: 0 / 1.392 GB, free: 11.56 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.994e-05/1.309, allocations: 29.61 kB / 1.392 GB, free: 11.55 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/1.309, allocations: 12 kB / 1.392 GB, free: 11.54 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006039/1.309, allocations: 366.8 kB / 1.393 GB, free: 11.31 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002995/1.312, allocations: 2.223 MB / 1.395 GB, free: 9.398 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008621/1.313, allocations: 457 kB / 1.395 GB, free: 9.094 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002758/1.314, allocations: 174.9 kB / 1.395 GB, free: 8.992 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 5.975e-05/1.314, allocations: 15.95 kB / 1.395 GB, free: 8.977 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004492/1.314, allocations: 246.1 kB / 1.396 GB, free: 8.793 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=45): time 2.324e-06/1.314, allocations: 0 / 1.396 GB, free: 8.793 MB / 0.8542 GB Notification: Performance of matching and sorting (n=45): time 0.0007451/1.315, allocations: 414.8 kB / 1.396 GB, free: 8.488 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/1.315, allocations: 195.4 kB / 1.396 GB, free: 8.258 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006854/1.316, allocations: 0.5302 MB / 1.397 GB, free: 7.84 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 5.14e-05/1.316, allocations: 36.83 kB / 1.397 GB, free: 7.805 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002516/1.316, allocations: 364.8 kB / 1.397 GB, free: 7.586 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001399/1.316, allocations: 158.3 kB / 1.397 GB, free: 7.449 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.382e-05/1.316, allocations: 15.31 kB / 1.397 GB, free: 7.441 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001274/1.316, allocations: 324.2 kB / 1.397 GB, free: 7.129 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002481/1.317, allocations: 146.7 kB / 1.398 GB, free: 7.043 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003585/1.317, allocations: 285.1 kB / 1.398 GB, free: 6.793 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003006/1.317, allocations: 195.6 kB / 1.398 GB, free: 6.652 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/1.317, allocations: 0 / 1.398 GB, free: 6.652 MB / 0.8542 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008205/1.318, allocations: 0.547 MB / 1.399 GB, free: 6.227 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004273/1.319, allocations: 0.9878 MB / 1.4 GB, free: 5.18 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/1.319, allocations: 8.047 kB / 1.4 GB, free: 5.172 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.205e-05/1.319, allocations: 8 kB / 1.4 GB, free: 5.164 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005132/1.319, allocations: 123.1 kB / 1.4 GB, free: 5.047 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.347e-05/1.319, allocations: 4 kB / 1.4 GB, free: 5.043 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004712/1.32, allocations: 86.38 kB / 1.4 GB, free: 4.965 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.137e-05/1.32, allocations: 23 kB / 1.4 GB, free: 4.949 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/1.32, allocations: 5.562 kB / 1.4 GB, free: 4.945 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006832/1.32, allocations: 466.5 kB / 1.4 GB, free: 4.629 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.846e-06/1.32, allocations: 0 / 1.4 GB, free: 4.629 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.538e-06/1.32, allocations: 8 kB / 1.4 GB, free: 4.621 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004561/1.321, allocations: 115.6 kB / 1.4 GB, free: 4.512 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/1.321, allocations: 11.98 kB / 1.4 GB, free: 4.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004122/1.321, allocations: 66.38 kB / 1.4 GB, free: 4.441 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.67e-05/1.321, allocations: 19.69 kB / 1.4 GB, free: 4.426 MB / 0.8542 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 () * 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.0001524/1.321, allocations: 139.3 kB / 1.401 GB, free: 4.301 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001072/1.322, allocations: 79.02 kB / 1.401 GB, free: 4.223 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001634/1.322, allocations: 81.3 kB / 1.401 GB, free: 4.172 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.543e-06/1.322, allocations: 4 kB / 1.401 GB, free: 4.168 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/1.322, allocations: 3.984 kB / 1.401 GB, free: 4.164 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/1.322, allocations: 3.984 kB / 1.401 GB, free: 4.16 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006905/1.322, allocations: 0.6473 MB / 1.401 GB, free: 3.625 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/1.323, allocations: 3.938 kB / 1.401 GB, free: 3.621 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004858/1.323, allocations: 95.2 kB / 1.402 GB, free: 3.531 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.266e-06/1.323, allocations: 15.88 kB / 1.402 GB, free: 3.516 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.344e-05/1.323, allocations: 10.56 kB / 1.402 GB, free: 3.512 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/1.323, allocations: 0 / 1.402 GB, free: 3.512 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/1.323, allocations: 0 / 1.402 GB, free: 3.512 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001002/1.324, allocations: 0.6566 MB / 1.402 GB, free: 3.047 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002524/1.324, allocations: 203.5 kB / 1.402 GB, free: 2.863 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.879e-05/1.324, allocations: 15.58 kB / 1.402 GB, free: 2.852 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004905/1.325, allocations: 58.77 kB / 1.402 GB, free: 2.801 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.463e-05/1.325, allocations: 42.38 kB / 1.402 GB, free: 2.766 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.757e-05/1.325, allocations: 11.44 kB / 1.402 GB, free: 2.758 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0004598/1.326, allocations: 426.7 kB / 1.403 GB, free: 2.445 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.5e-07/1.326, allocations: 0 / 1.403 GB, free: 2.445 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0006039/1.326, allocations: 241.4 kB / 1.403 GB, free: 2.23 MB / 0.8542 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) * 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.001381/1.328, allocations: 1.223 MB / 1.404 GB, free: 1.199 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.001064/1.329, allocations: 0.7398 MB / 1.405 GB, free: 0.6406 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/1.329, allocations: 1.25 kB / 1.405 GB, free: 0.6406 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0002814/1.329, allocations: 186.9 kB / 1.405 GB, free: 0.5195 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008235/1.33, allocations: 170.5 kB / 1.405 GB, free: 400 kB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002145/1.332, allocations: 1.023 MB / 1.406 GB, free: 15.45 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00055/1.332, allocations: 0.9352 MB / 1.407 GB, free: 14.49 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0006266/1.333, allocations: 127.7 kB / 1.407 GB, free: 14.36 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003328/1.333, allocations: 254.9 kB / 1.408 GB, free: 14.3 MB / 0.8698 GB Notification: Performance of SimCode: time 5.41e-07/1.333, allocations: 0 / 1.408 GB, free: 14.3 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03894/1.372, allocations: 14.98 MB / 1.422 GB, free: 15.54 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002791/1.373, allocations: 157.4 kB / 1.422 GB, free: 15.31 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.735/4.107, allocations: 0 / 1.422 GB, free: 15.31 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_Continuous_Examples_LimPID.fmu > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID_res.mat does not exist to compare? outputFormat=mat