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.0008826/0.0008827, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001059/0.001059, allocations: 168.7 kB / 15.95 MB, free: 204 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.417/1.417, allocations: 223.2 MB / 240 MB, free: 5.395 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.32/2.32, allocations: 390.4 MB / 0.6655 GB, free: 2.973 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003222/0.0003222, allocations: 8 kB / 0.8149 GB, free: 14.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7035/0.7039, allocations: 142.3 MB / 0.9538 GB, free: 8.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis): time 0.002669/0.7066, allocations: 2.548 MB / 0.9563 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001267/0.7079, allocations: 0.8475 MB / 0.9572 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002089/0.7081, allocations: 16.84 kB / 0.9572 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001718/0.7083, allocations: 42.98 kB / 0.9572 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001407/0.7084, allocations: 71.86 kB / 0.9573 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003976/0.7088, allocations: 149.3 kB / 0.9574 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003722/0.7092, allocations: 432.9 kB / 0.9578 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002586/0.7095, allocations: 151.1 kB / 0.958 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001528/0.7096, allocations: 125.7 kB / 0.9581 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001459/0.7098, allocations: 123.1 kB / 0.9582 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.32e-05/0.7098, allocations: 9.75 kB / 0.9582 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 3.531e-05/0.7099, allocations: 15.72 kB / 0.9583 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.266e-05/0.7099, allocations: 60.2 kB / 0.9583 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.438e-05/0.71, allocations: 90.08 kB / 0.9584 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002659/0.7103, allocations: 380.5 kB / 0.9588 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.7103, allocations: 0 / 0.9588 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.893e-06/0.7103, allocations: 0.9688 kB / 0.9588 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.821e-06/0.7103, allocations: 0 / 0.9588 GB, free: 4.309 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.0007905/0.7111, allocations: 0.6516 MB / 0.9594 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.7111, allocations: 9.719 kB / 0.9594 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.27e-05/0.7112, allocations: 67.28 kB / 0.9595 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.913e-05/0.7113, allocations: 51.89 kB / 0.9595 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004403/0.7117, allocations: 378.7 kB / 0.9599 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.577e-05/0.7117, allocations: 25.91 kB / 0.9599 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.209e-05/0.7118, allocations: 26.31 kB / 0.9599 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005047/0.7123, allocations: 342.1 kB / 0.9603 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.7123, allocations: 0 / 0.9603 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.571e-05/0.7124, allocations: 12.12 kB / 0.9603 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.7124, allocations: 6.875 kB / 0.9603 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004126/0.7128, allocations: 221.4 kB / 0.9605 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001211/0.714, allocations: 1.2 MB / 0.9617 GB, free: 1.863 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005075/0.7145, allocations: 231.4 kB / 0.9619 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002009/0.7147, allocations: 111.8 kB / 0.962 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.127e-05/0.7148, allocations: 14.3 kB / 0.962 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.828e-05/0.7148, allocations: 40.36 kB / 0.962 GB, free: 1.625 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=22): time 1.313e-06/0.7148, allocations: 0.6875 kB / 0.962 GB, free: 1.625 MB / 0.7169 GB Notification: Performance of matching and sorting (n=22): time 0.0006006/0.7154, allocations: 295.9 kB / 0.9623 GB, free: 1.473 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.427e-05/0.7155, allocations: 105.1 kB / 0.9624 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002978/0.7158, allocations: 337.3 kB / 0.9627 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.7158, allocations: 31.73 kB / 0.9628 GB, free: 1.09 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/0.7159, allocations: 221.1 kB / 0.963 GB, free: 0.8867 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.588e-05/0.716, allocations: 80.53 kB / 0.9631 GB, free: 0.8164 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.279e-05/0.716, allocations: 4.969 kB / 0.9631 GB, free: 0.8125 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.305e-05/0.7161, allocations: 346.4 kB / 0.9634 GB, free: 484 kB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001675/0.7162, allocations: 79.89 kB / 0.9635 GB, free: 444 kB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001894/0.7164, allocations: 153.7 kB / 0.9636 GB, free: 312 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001796/0.7166, allocations: 86.41 kB / 0.9637 GB, free: 272 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.7166, allocations: 5.125 kB / 0.9637 GB, free: 268 kB / 0.7169 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004446/0.7171, allocations: 278.8 kB / 0.964 GB, free: 116 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.7171, allocations: 11.11 kB / 0.964 GB, free: 112 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.7171, allocations: 10.55 kB / 0.964 GB, free: 104 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.7171, allocations: 2.781 kB / 0.964 GB, free: 104 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002152/0.7174, allocations: 57.36 kB / 0.964 GB, free: 88 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.956e-06/0.7174, allocations: 6.422 kB / 0.9641 GB, free: 84 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001716/0.7176, allocations: 38.2 kB / 0.9641 GB, free: 64 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.811e-05/0.7176, allocations: 8.031 kB / 0.9641 GB, free: 64 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.0001676/0.7178, allocations: 157.5 kB / 0.9642 GB, free: 15.92 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.017e-05/0.7178, allocations: 40.22 kB / 0.9643 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.671e-05/0.7179, allocations: 43.69 kB / 0.9643 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.7179, allocations: 3.188 kB / 0.9643 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.7179, allocations: 0 / 0.9643 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.7179, allocations: 3.984 kB / 0.9643 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004125/0.7184, allocations: 388.8 kB / 0.9647 GB, free: 15.51 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.7184, allocations: 0 / 0.9647 GB, free: 15.51 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002163/0.7186, allocations: 40.98 kB / 0.9647 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.7186, allocations: 1 kB / 0.9647 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.996e-05/0.7186, allocations: 13.36 kB / 0.9648 GB, free: 15.49 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.738e-06/0.7186, allocations: 5.109 kB / 0.9648 GB, free: 15.49 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.7186, allocations: 0 / 0.9648 GB, free: 15.49 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000627/0.7193, allocations: 433 kB / 0.9652 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001035/0.7194, allocations: 125.4 kB / 0.9653 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.634e-05/0.7194, allocations: 10.58 kB / 0.9653 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000179/0.7196, allocations: 25.2 kB / 0.9653 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.974e-05/0.7197, allocations: 23.83 kB / 0.9654 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.366e-05/0.7197, allocations: 3.969 kB / 0.9654 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002375/0.72, allocations: 240.1 kB / 0.9656 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.71e-07/0.72, allocations: 0 / 0.9656 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003185/0.7203, allocations: 69.56 kB / 0.9657 GB, free: 14.86 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.0009126/0.7212, allocations: 0.9651 MB / 0.9666 GB, free: 14.05 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004335/0.7217, allocations: 202.4 kB / 0.9668 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.7217, allocations: 0 / 0.9668 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001968/0.7219, allocations: 99.34 kB / 0.9669 GB, free: 13.93 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000525/0.7224, allocations: 77.95 kB / 0.967 GB, free: 13.88 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003287/0.7257, allocations: 2.031 MB / 0.9689 GB, free: 12.52 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003518/0.7261, allocations: 0.7907 MB / 0.9697 GB, free: 11.78 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001652/0.7262, allocations: 38.19 kB / 0.9697 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001739/0.7264, allocations: 125.1 kB / 0.9699 GB, free: 11.66 MB / 0.7325 GB Notification: Performance of SimCode: time 2.9e-07/0.7264, allocations: 0 / 0.9699 GB, free: 11.66 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01722/0.7437, allocations: 6.209 MB / 0.9759 GB, free: 8.812 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001758/0.7439, allocations: 204.8 kB / 0.9761 GB, free: 8.574 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.79/2.534, allocations: 0 / 0.9761 GB, free: 8.574 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