Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.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.OBC.CDL.Continuous.Validation.Hysteresis,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis",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.001479/0.001479, 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.00156/0.001559, 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.535/1.535, allocations: 223.2 MB / 239.9 MB, free: 5.461 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.447/2.447, allocations: 390.3 MB / 0.6653 GB, free: 2.969 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003426/0.0003427, allocations: 12 kB / 0.8146 GB, free: 14.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8076/0.8079, allocations: 142.3 MB / 0.9536 GB, free: 8.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.001279/0.8093, allocations: 0.7117 MB / 0.9543 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001594/0.8109, allocations: 1.251 MB / 0.9555 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.765e-05/0.811, allocations: 2.219 kB / 0.9555 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.46e-05/0.811, allocations: 3.938 kB / 0.9555 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001363/0.8111, allocations: 37.12 kB / 0.9556 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000625/0.8118, allocations: 223.5 kB / 0.9558 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001768/0.8119, allocations: 156.2 kB / 0.9559 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001204/0.8121, allocations: 35.66 kB / 0.956 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001313/0.8122, allocations: 96.33 kB / 0.956 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000128/0.8123, allocations: 100.8 kB / 0.9561 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.939e-05/0.8124, allocations: 12.44 kB / 0.9562 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.382e-05/0.8125, allocations: 22.8 kB / 0.9562 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.952e-05/0.8125, allocations: 29.39 kB / 0.9562 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.502e-05/0.8126, allocations: 55.86 kB / 0.9563 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002002/0.8128, allocations: 242.6 kB / 0.9565 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.8128, allocations: 1.281 kB / 0.9565 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.785e-06/0.8128, allocations: 0 / 0.9565 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.8128, allocations: 3.938 kB / 0.9565 GB, free: 5.871 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0006403/0.8134, allocations: 0.5281 MB / 0.957 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.8135, allocations: 9.906 kB / 0.957 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.767e-05/0.8135, allocations: 44.84 kB / 0.9571 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.846e-05/0.8136, allocations: 29.64 kB / 0.9571 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007433/0.8144, allocations: 315.8 kB / 0.9574 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.866e-05/0.8144, allocations: 12.91 kB / 0.9574 GB, free: 5 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.705e-05/0.8145, allocations: 18.66 kB / 0.9574 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002695/0.8147, allocations: 138.6 kB / 0.9576 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.8148, allocations: 0 / 0.9576 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.694e-05/0.8148, allocations: 5.156 kB / 0.9576 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.8148, allocations: 6.469 kB / 0.9576 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002373/0.815, allocations: 85.84 kB / 0.9576 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006738/0.8157, allocations: 0.639 MB / 0.9583 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003532/0.8161, allocations: 139.5 kB / 0.9584 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.416e-05/0.8161, allocations: 4 kB / 0.9584 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002569/0.8164, allocations: 156 kB / 0.9586 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.613e-06/0.8164, allocations: 0 / 0.9586 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0005181/0.8169, allocations: 212.6 kB / 0.9588 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.296e-05/0.817, allocations: 114.4 kB / 0.9589 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001427/0.8171, allocations: 190.4 kB / 0.9591 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.892e-05/0.8172, allocations: 40.92 kB / 0.9591 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.331e-05/0.8172, allocations: 123.2 kB / 0.9592 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.305e-05/0.8173, allocations: 32.92 kB / 0.9592 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.359e-05/0.8173, allocations: 15.5 kB / 0.9593 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.177e-05/0.8174, allocations: 330.4 kB / 0.9596 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002178/0.8176, allocations: 90.92 kB / 0.9597 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002316/0.8178, allocations: 162.8 kB / 0.9598 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000219/0.8181, allocations: 144.8 kB / 0.9599 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.8181, allocations: 5.375 kB / 0.96 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000585/0.8187, allocations: 360.2 kB / 0.9603 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.956e-05/0.8187, allocations: 65.11 kB / 0.9604 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.8187, allocations: 2.531 kB / 0.9604 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.8188, allocations: 9.969 kB / 0.9604 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.672e-05/0.8189, allocations: 26.28 kB / 0.9604 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.976e-06/0.8189, allocations: 2.844 kB / 0.9604 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004108/0.8193, allocations: 93.33 kB / 0.9605 GB, free: 2.434 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.81e-05/0.8193, allocations: 19.48 kB / 0.9605 GB, free: 2.426 MB / 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: 14 ($whenCondition3,$whenCondition4,$PRE.hysteresis1.y,hysteresis1.y,$PRE.pul.booPul.y,pul.booPul.y,$whenCondition1,$whenCondition2,$PRE.hysteresis2.y,hysteresis2.y,$PRE.pul1.booPul.y,pul1.booPul.y,$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 2 * 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.0001107/0.8195, allocations: 127.8 kB / 0.9606 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.634e-05/0.8195, allocations: 19.97 kB / 0.9606 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002673/0.8198, allocations: 102.7 kB / 0.9607 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.8198, allocations: 2.656 kB / 0.9607 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.8198, allocations: 3.953 kB / 0.9608 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.8198, allocations: 9.391 kB / 0.9608 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001718/0.82, allocations: 238.2 kB / 0.961 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.82, allocations: 0 / 0.961 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.141e-05/0.8201, allocations: 22.05 kB / 0.961 GB, free: 1.957 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.8201, allocations: 0.6562 kB / 0.961 GB, free: 1.957 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/0.8201, allocations: 6.844 kB / 0.961 GB, free: 1.953 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.8201, allocations: 5.312 kB / 0.961 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.8201, allocations: 1.531 kB / 0.961 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003543/0.8205, allocations: 230.9 kB / 0.9612 GB, free: 1.766 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.011e-05/0.8205, allocations: 97.84 kB / 0.9613 GB, free: 1.656 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.478e-05/0.8206, allocations: 11.8 kB / 0.9613 GB, free: 1.648 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.8207, allocations: 15.42 kB / 0.9614 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.702e-05/0.8207, allocations: 26.17 kB / 0.9614 GB, free: 1.625 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.375e-05/0.8208, allocations: 8.984 kB / 0.9614 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.91e-05/0.8209, allocations: 146.7 kB / 0.9615 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8209, allocations: 0 / 0.9615 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002825/0.8212, allocations: 46.28 kB / 0.9616 GB, free: 1.5 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition3,$whenCondition4,hysteresis1.y,pul.booPul.y,$whenCondition1,$whenCondition2,hysteresis2.y,pul1.booPul.y,hysteresis.y) * Number of discrete states: 3 (hysteresis.y,hysteresis2.y,hysteresis1.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * 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.0006162/0.8218, allocations: 0.9167 MB / 0.9625 GB, free: 0.6445 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005201/0.8223, allocations: 315.9 kB / 0.9628 GB, free: 440 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.8223, allocations: 4.25 kB / 0.9628 GB, free: 436 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001659/0.8225, allocations: 69.89 kB / 0.9628 GB, free: 408 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000262/0.8228, allocations: 38.11 kB / 0.9629 GB, free: 388 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/0.8239, allocations: 1.497 MB / 0.9643 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003202/0.8242, allocations: 0.73 MB / 0.9651 GB, free: 14.19 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001176/0.8244, allocations: 21.86 kB / 0.9651 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.534e-05/0.8245, allocations: 58.72 kB / 0.9651 GB, free: 14.13 MB / 0.7325 GB Notification: Performance of SimCode: time 2.5e-07/0.8245, allocations: 5 kB / 0.9651 GB, free: 14.13 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01622/0.8407, allocations: 4.532 MB / 0.9696 GB, free: 11.97 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000198/0.8409, allocations: 189.2 kB / 0.9697 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.696/2.537, allocations: 0 / 0.9697 GB, free: 11.73 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.mat does not exist to compare? outputFormat=mat