Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.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.LimPIDWithReset,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_latest_Buildings_Controls_Continuous_Examples_LimPIDWithReset",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.329/2.329, allocations: 390.3 MB / 402.8 MB, free: 6.688 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.001153/0.001152, allocations: 180.8 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.467/1.467, allocations: 221.3 MB / 0.7915 GB, free: 5.438 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.001015/0.001015, allocations: 91.77 kB / 0.9317 GB, free: 5.754 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.373e-05/3.388e-05, allocations: 6.266 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2876/0.2877, allocations: 143 MB / 1.219 GB, free: 13.44 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.969/1.257, allocations: 156.7 MB / 1.372 GB, free: 13.45 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002376/1.257, allocations: 82.44 kB / 1.372 GB, free: 13.4 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.03255/1.29, allocations: 12.37 MB / 1.384 GB, free: 3.055 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.633e-06/1.29, allocations: 0 / 1.384 GB, free: 3.055 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.163e-05/1.29, allocations: 19.44 kB / 1.384 GB, free: 3.039 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.002/1.292, allocations: 0.8771 MB / 1.385 GB, free: 2.152 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.694e-05/1.292, allocations: 8.031 kB / 1.385 GB, free: 2.145 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002295/1.292, allocations: 102.4 kB / 1.385 GB, free: 2.07 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002694/1.292, allocations: 83.05 kB / 1.385 GB, free: 1.988 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009991/1.293, allocations: 0.5178 MB / 1.386 GB, free: 1.535 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.233e-05/1.293, allocations: 47.56 kB / 1.386 GB, free: 1.508 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001129/1.293, allocations: 64.05 kB / 1.386 GB, free: 1.465 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001107/1.295, allocations: 0.6061 MB / 1.386 GB, free: 1.031 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.787e-05/1.295, allocations: 4 kB / 1.386 GB, free: 1.027 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.532e-05/1.295, allocations: 21.19 kB / 1.386 GB, free: 1.023 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.631e-05/1.295, allocations: 16 kB / 1.386 GB, free: 1.008 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008513/1.296, allocations: 430.4 kB / 1.387 GB, free: 0.7539 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003754/1.299, allocations: 2.095 MB / 1.389 GB, free: 15.15 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008345/1.3, allocations: 440.6 kB / 1.389 GB, free: 14.88 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003658/1.301, allocations: 220.3 kB / 1.389 GB, free: 14.75 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 4.657e-05/1.301, allocations: 8.438 kB / 1.389 GB, free: 14.74 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004703/1.301, allocations: 253.9 kB / 1.39 GB, free: 14.56 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=50): time 2.354e-06/1.301, allocations: 0 / 1.39 GB, free: 14.56 MB / 0.8542 GB Notification: Performance of matching and sorting (n=50): time 0.0008094/1.302, allocations: 425.6 kB / 1.39 GB, free: 14.26 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001106/1.302, allocations: 162.6 kB / 1.39 GB, free: 14.06 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004902/1.303, allocations: 391 kB / 1.391 GB, free: 13.76 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 4.684e-05/1.303, allocations: 40.39 kB / 1.391 GB, free: 13.72 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002393/1.303, allocations: 323.5 kB / 1.391 GB, free: 13.49 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001443/1.303, allocations: 167.9 kB / 1.391 GB, free: 13.35 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.503e-05/1.303, allocations: 14.62 kB / 1.391 GB, free: 13.34 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001804/1.303, allocations: 369.9 kB / 1.391 GB, free: 13 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002776/1.304, allocations: 151.6 kB / 1.392 GB, free: 12.91 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003452/1.304, allocations: 261 kB / 1.392 GB, free: 12.71 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003525/1.304, allocations: 210.4 kB / 1.392 GB, free: 12.56 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/1.304, allocations: 4 kB / 1.392 GB, free: 12.56 MB / 0.8542 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0008153/1.305, allocations: 0.5274 MB / 1.393 GB, free: 12.16 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 3.396e-05/1.305, allocations: 29.7 kB / 1.393 GB, free: 12.13 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/1.305, allocations: 4 kB / 1.393 GB, free: 12.12 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/1.305, allocations: 4 kB / 1.393 GB, free: 12.12 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005052/1.306, allocations: 123.3 kB / 1.393 GB, free: 12 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.356e-05/1.306, allocations: 7.938 kB / 1.393 GB, free: 12 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004607/1.306, allocations: 90.14 kB / 1.393 GB, free: 11.92 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.498e-05/1.306, allocations: 15.19 kB / 1.393 GB, free: 11.91 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.conPID.trigger,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * 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.0001555/1.306, allocations: 145.5 kB / 1.393 GB, free: 11.77 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.523e-05/1.307, allocations: 55.34 kB / 1.393 GB, free: 11.72 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001453/1.307, allocations: 64.73 kB / 1.393 GB, free: 11.69 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/1.307, allocations: 7.938 kB / 1.393 GB, free: 11.68 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/1.307, allocations: 0 / 1.393 GB, free: 11.68 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/1.307, allocations: 0 / 1.393 GB, free: 11.68 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001654/1.308, allocations: 1.225 MB / 1.394 GB, free: 10.77 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/1.308, allocations: 3.984 kB / 1.394 GB, free: 10.77 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005271/1.309, allocations: 118.9 kB / 1.394 GB, free: 10.66 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.269e-05/1.309, allocations: 4 kB / 1.394 GB, free: 10.65 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.648e-05/1.309, allocations: 7.25 kB / 1.394 GB, free: 10.65 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.963e-06/1.309, allocations: 7.984 kB / 1.394 GB, free: 10.64 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/1.309, allocations: 0 / 1.394 GB, free: 10.64 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/1.31, allocations: 0.7519 MB / 1.395 GB, free: 10.11 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002247/1.31, allocations: 177.6 kB / 1.395 GB, free: 9.949 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.46e-05/1.31, allocations: 11.62 kB / 1.395 GB, free: 9.945 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000393/1.311, allocations: 51.02 kB / 1.395 GB, free: 9.902 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/1.311, allocations: 43.56 kB / 1.395 GB, free: 9.867 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.812e-05/1.311, allocations: 15.88 kB / 1.395 GB, free: 9.855 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0003523/1.311, allocations: 312.8 kB / 1.396 GB, free: 9.625 MB / 0.8542 GB Notification: Performance of sort global known variables: time 4.31e-07/1.311, allocations: 0 / 1.396 GB, free: 9.625 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0005106/1.312, allocations: 149.3 kB / 1.396 GB, free: 9.492 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.conPID.trigger,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * 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.001373/1.313, allocations: 1.312 MB / 1.397 GB, free: 8.395 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0007343/1.314, allocations: 468.8 kB / 1.398 GB, free: 8.066 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/1.314, allocations: 0 / 1.398 GB, free: 8.066 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0003128/1.314, allocations: 202.9 kB / 1.398 GB, free: 7.938 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007149/1.315, allocations: 134.6 kB / 1.398 GB, free: 7.832 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003233/1.318, allocations: 1.396 MB / 1.399 GB, free: 6.527 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005126/1.319, allocations: 0.9021 MB / 1.4 GB, free: 5.598 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0003402/1.319, allocations: 64.55 kB / 1.4 GB, free: 5.531 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003028/1.319, allocations: 226.2 kB / 1.4 GB, free: 5.473 MB / 0.8542 GB Notification: Performance of SimCode: time 7.72e-07/1.319, allocations: 0 / 1.4 GB, free: 5.473 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02915/1.349, allocations: 11.48 MB / 1.412 GB, free: 10.22 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001784/1.349, allocations: 163 kB / 1.412 GB, free: 9.992 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.392/3.741, allocations: 0 / 1.412 GB, free: 9.992 MB / 0.8698 GB (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat does not exist to compare? outputFormat=mat