Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.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.Obsolete.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_9_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_9_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresis",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.001507/0.001507, allocations: 100.1 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.001505/0.001505, allocations: 177.3 kB / 15.95 MB, free: 216 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.4/1.4, allocations: 223.2 MB / 239.9 MB, free: 5.363 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.513/2.513, allocations: 390.3 MB / 0.6653 GB, free: 3.012 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003543/0.0003544, allocations: 12 kB / 0.8146 GB, free: 14.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7801/0.7804, allocations: 142.3 MB / 0.9536 GB, free: 8.059 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis): time 0.003475/0.784, allocations: 2.514 MB / 0.956 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001996/0.786, allocations: 0.8433 MB / 0.9569 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005036/0.7865, allocations: 12.06 kB / 0.9569 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.628e-05/0.7867, allocations: 28.97 kB / 0.9569 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000485/0.7871, allocations: 104.1 kB / 0.957 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004503/0.7876, allocations: 167.2 kB / 0.9572 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004305/0.788, allocations: 301.8 kB / 0.9575 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003075/0.7884, allocations: 146.6 kB / 0.9576 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001961/0.7886, allocations: 135.2 kB / 0.9577 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001575/0.7887, allocations: 126.8 kB / 0.9578 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.487e-05/0.7888, allocations: 10.88 kB / 0.9579 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 3.779e-05/0.7888, allocations: 12.31 kB / 0.9579 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.207e-05/0.7889, allocations: 57.62 kB / 0.9579 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.8e-05/0.789, allocations: 88.73 kB / 0.958 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002913/0.7892, allocations: 367.7 kB / 0.9584 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.7893, allocations: 0 / 0.9584 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.364e-06/0.7893, allocations: 7.938 kB / 0.9584 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.514e-06/0.7893, allocations: 0 / 0.9584 GB, free: 4.328 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.000943/0.7902, allocations: 0.6586 MB / 0.959 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.7903, allocations: 9.438 kB / 0.959 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.024e-05/0.7904, allocations: 67.91 kB / 0.9591 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.784e-05/0.7905, allocations: 52.02 kB / 0.9591 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000522/0.791, allocations: 374.7 kB / 0.9595 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.798e-05/0.791, allocations: 20.44 kB / 0.9595 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.454e-05/0.7911, allocations: 26.72 kB / 0.9595 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005311/0.7916, allocations: 348 kB / 0.9599 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.7916, allocations: 1.781 kB / 0.9599 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.786e-05/0.7917, allocations: 9.875 kB / 0.9599 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.7917, allocations: 7.688 kB / 0.9599 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004954/0.7922, allocations: 225.3 kB / 0.9601 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001398/0.7936, allocations: 1.2 MB / 0.9613 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005538/0.7942, allocations: 228.1 kB / 0.9615 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.605e-05/0.7942, allocations: 2.875 kB / 0.9615 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.338e-05/0.7942, allocations: 48.44 kB / 0.9615 GB, free: 1.695 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=22): time 1.894e-06/0.7942, allocations: 0 / 0.9615 GB, free: 1.695 MB / 0.7169 GB Notification: Performance of matching and sorting (n=22): time 0.0006729/0.7949, allocations: 293.3 kB / 0.9618 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/0.795, allocations: 105.9 kB / 0.9619 GB, free: 1.422 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003465/0.7953, allocations: 341 kB / 0.9622 GB, free: 1.195 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.435e-05/0.7954, allocations: 31.7 kB / 0.9623 GB, free: 1.16 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001392/0.7955, allocations: 217.8 kB / 0.9625 GB, free: 0.9609 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.714e-05/0.7956, allocations: 80.77 kB / 0.9626 GB, free: 0.8906 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.181e-05/0.7956, allocations: 4 kB / 0.9626 GB, free: 0.8867 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.596e-05/0.7957, allocations: 347.4 kB / 0.9629 GB, free: 0.5469 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001806/0.7959, allocations: 83.86 kB / 0.963 GB, free: 0.5039 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000217/0.7961, allocations: 144.2 kB / 0.9631 GB, free: 392 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000228/0.7963, allocations: 95.23 kB / 0.9632 GB, free: 344 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.7963, allocations: 0 / 0.9632 GB, free: 344 kB / 0.7169 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005226/0.7969, allocations: 278.5 kB / 0.9635 GB, free: 192 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.7969, allocations: 10.25 kB / 0.9635 GB, free: 188 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.176e-06/0.7969, allocations: 4.984 kB / 0.9635 GB, free: 184 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.919e-05/0.7969, allocations: 8.094 kB / 0.9635 GB, free: 180 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002391/0.7972, allocations: 58 kB / 0.9635 GB, free: 164 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.846e-06/0.7972, allocations: 1.781 kB / 0.9635 GB, free: 164 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001999/0.7974, allocations: 42.03 kB / 0.9636 GB, free: 140 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.186e-05/0.7974, allocations: 11.19 kB / 0.9636 GB, free: 136 kB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 3 ($PRE.con.hys.y,con.hys.y,con.PID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * 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.0001802/0.7976, allocations: 162.5 kB / 0.9638 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.726e-05/0.7977, allocations: 35.72 kB / 0.9638 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.221e-05/0.7978, allocations: 40.2 kB / 0.9638 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.7978, allocations: 6.922 kB / 0.9638 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.7978, allocations: 0 / 0.9638 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.7978, allocations: 3.984 kB / 0.9638 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000545/0.7984, allocations: 387.7 kB / 0.9642 GB, free: 15.58 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.7984, allocations: 5.016 kB / 0.9642 GB, free: 15.58 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002272/0.7986, allocations: 44.64 kB / 0.9643 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.7986, allocations: 1.438 kB / 0.9643 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.129e-05/0.7987, allocations: 5.375 kB / 0.9643 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.7987, allocations: 1.125 kB / 0.9643 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.7987, allocations: 7.938 kB / 0.9643 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008069/0.7995, allocations: 426 kB / 0.9647 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001352/0.7996, allocations: 128.5 kB / 0.9648 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.807e-05/0.7997, allocations: 6.062 kB / 0.9648 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001941/0.7999, allocations: 29.03 kB / 0.9648 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.315e-05/0.8, allocations: 21.14 kB / 0.9648 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.346e-05/0.8, allocations: 8.125 kB / 0.9649 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002972/0.8003, allocations: 235.3 kB / 0.9651 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8003, allocations: 3.938 kB / 0.9651 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003412/0.8006, allocations: 64.84 kB / 0.9651 GB, free: 14.94 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.PID.I.y,cap.T) * Number of discrete variables: 1 (con.hys.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.001073/0.8017, allocations: 0.9705 MB / 0.9661 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004908/0.8022, allocations: 202.2 kB / 0.9663 GB, free: 14.04 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.8022, allocations: 5.281 kB / 0.9663 GB, free: 14.03 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002061/0.8024, allocations: 97.72 kB / 0.9664 GB, free: 13.99 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004732/0.8029, allocations: 66.7 kB / 0.9665 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004705/0.8076, allocations: 2.918 MB / 0.9693 GB, free: 11.7 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004693/0.8081, allocations: 0.799 MB / 0.9701 GB, free: 10.95 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002597/0.8084, allocations: 34.06 kB / 0.9701 GB, free: 10.94 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001919/0.8086, allocations: 121.6 kB / 0.9702 GB, free: 10.84 MB / 0.7325 GB Notification: Performance of SimCode: time 6.52e-07/0.8086, allocations: 7.938 kB / 0.9702 GB, free: 10.83 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02466/0.8333, allocations: 6.204 MB / 0.9763 GB, free: 7.984 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000213/0.8336, allocations: 193.1 kB / 0.9765 GB, free: 7.746 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.753/2.587, allocations: 1.406 kB / 0.9765 GB, free: 7.746 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis_res.mat --tempDir=temp_Buildings_9_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresis_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresis.fmu > Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis_res.mat does not exist to compare? outputFormat=mat