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.001036/0.001036, allocations: 86.72 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.001225/0.001225, 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.524/1.524, allocations: 223.2 MB / 240 MB, free: 5.418 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.536/2.536, allocations: 390.4 MB / 0.6655 GB, free: 2.914 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004176/0.0004178, allocations: 16 kB / 0.8149 GB, free: 14.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7319/0.7323, allocations: 142.3 MB / 0.9539 GB, free: 8.102 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.001071/0.7334, allocations: 0.6928 MB / 0.9546 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001442/0.7349, allocations: 1.29 MB / 0.9558 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.985e-05/0.735, allocations: 2.125 kB / 0.9558 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.623e-05/0.735, allocations: 11.86 kB / 0.9558 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.841e-05/0.7351, allocations: 27.19 kB / 0.9559 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006228/0.7357, allocations: 223.6 kB / 0.9561 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002656/0.736, allocations: 260.2 kB / 0.9563 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001343/0.7362, allocations: 35.48 kB / 0.9564 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001552/0.7363, allocations: 101.2 kB / 0.9564 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001356/0.7365, allocations: 88.67 kB / 0.9565 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.278e-05/0.7365, allocations: 16.97 kB / 0.9566 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.028e-05/0.7366, allocations: 22.3 kB / 0.9566 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.478e-05/0.7367, allocations: 26.41 kB / 0.9566 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.128e-05/0.7367, allocations: 58.42 kB / 0.9567 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002512/0.737, allocations: 251.3 kB / 0.9569 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.737, allocations: 1.406 kB / 0.9569 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.034e-06/0.737, allocations: 4 kB / 0.9569 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.03e-05/0.737, allocations: 0 / 0.9569 GB, free: 5.773 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.0008278/0.7379, allocations: 0.5242 MB / 0.9574 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.153e-05/0.7379, allocations: 10.59 kB / 0.9574 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.768e-05/0.738, allocations: 40.66 kB / 0.9575 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.699e-05/0.7381, allocations: 34.19 kB / 0.9575 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000772/0.7388, allocations: 320 kB / 0.9578 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.132e-05/0.7389, allocations: 7.656 kB / 0.9578 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.222e-05/0.7389, allocations: 18.28 kB / 0.9578 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002848/0.7392, allocations: 137.8 kB / 0.958 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.467e-06/0.7393, allocations: 4.906 kB / 0.958 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.847e-05/0.7393, allocations: 5.031 kB / 0.958 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.7393, allocations: 1.969 kB / 0.958 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002518/0.7396, allocations: 86.89 kB / 0.958 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007026/0.7403, allocations: 0.6429 MB / 0.9587 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003312/0.7406, allocations: 142 kB / 0.9588 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001213/0.7407, allocations: 58.61 kB / 0.9589 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.661e-05/0.7408, allocations: 1.125 kB / 0.9589 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002723/0.7411, allocations: 154.8 kB / 0.959 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.944e-06/0.7411, allocations: 0 / 0.959 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0005067/0.7416, allocations: 213.2 kB / 0.9592 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.488e-05/0.7416, allocations: 113.5 kB / 0.9593 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001625/0.7418, allocations: 196 kB / 0.9595 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.414e-05/0.7418, allocations: 35.2 kB / 0.9595 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.407e-05/0.7419, allocations: 123.4 kB / 0.9597 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.181e-05/0.742, allocations: 41.11 kB / 0.9597 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.312e-05/0.742, allocations: 8.125 kB / 0.9597 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.763e-05/0.7421, allocations: 330.9 kB / 0.96 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002205/0.7423, allocations: 93.45 kB / 0.9601 GB, free: 2.875 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002351/0.7425, allocations: 158.3 kB / 0.9603 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002368/0.7428, allocations: 149.4 kB / 0.9604 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.7428, allocations: 0 / 0.9604 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006804/0.7435, allocations: 357.6 kB / 0.9608 GB, free: 2.418 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.967e-05/0.7435, allocations: 67.8 kB / 0.9608 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.7436, allocations: 1.969 kB / 0.9608 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.7436, allocations: 7.141 kB / 0.9608 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.928e-05/0.7437, allocations: 25.73 kB / 0.9608 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.7437, allocations: 3.062 kB / 0.9609 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003929/0.7441, allocations: 96.77 kB / 0.9609 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.828e-05/0.7441, allocations: 15.33 kB / 0.961 GB, free: 2.289 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.0001361/0.7443, allocations: 137.2 kB / 0.9611 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.068e-05/0.7443, allocations: 15.19 kB / 0.9611 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002547/0.7446, allocations: 106.7 kB / 0.9612 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.7446, allocations: 2.25 kB / 0.9612 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.7446, allocations: 4.891 kB / 0.9612 GB, free: 2.078 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.7446, allocations: 8.891 kB / 0.9612 GB, free: 2.07 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001788/0.7448, allocations: 237.1 kB / 0.9614 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.7448, allocations: 1.5 kB / 0.9614 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.183e-05/0.7449, allocations: 20.98 kB / 0.9615 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.7449, allocations: 1.75 kB / 0.9615 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.46e-05/0.7449, allocations: 9.781 kB / 0.9615 GB, free: 1.805 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.7449, allocations: 2 kB / 0.9615 GB, free: 1.805 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.745, allocations: 1 kB / 0.9615 GB, free: 1.805 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003486/0.7453, allocations: 200.7 kB / 0.9617 GB, free: 1.66 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.75e-05/0.7454, allocations: 97.84 kB / 0.9618 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.322e-05/0.7454, allocations: 6.594 kB / 0.9618 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.657e-05/0.7455, allocations: 12.83 kB / 0.9618 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.898e-05/0.7456, allocations: 30.09 kB / 0.9618 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.635e-05/0.7456, allocations: 8.609 kB / 0.9618 GB, free: 1.52 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001012/0.7457, allocations: 147 kB / 0.962 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7457, allocations: 0 / 0.962 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002954/0.746, allocations: 50.47 kB / 0.962 GB, free: 1.395 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.0006232/0.7466, allocations: 0.7464 MB / 0.9627 GB, free: 0.7188 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005575/0.7472, allocations: 323.5 kB / 0.963 GB, free: 0.4961 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.7472, allocations: 1.125 kB / 0.963 GB, free: 0.4961 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001658/0.7474, allocations: 73.27 kB / 0.9631 GB, free: 476 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003092/0.7477, allocations: 42.62 kB / 0.9632 GB, free: 452 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001974/0.7497, allocations: 1.19 MB / 0.9643 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002981/0.75, allocations: 0.7208 MB / 0.965 GB, free: 14.9 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001192/0.7501, allocations: 26.06 kB / 0.9651 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.578e-05/0.7502, allocations: 55.27 kB / 0.9651 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of SimCode: time 2.6e-07/0.7502, allocations: 3.938 kB / 0.9651 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01573/0.766, allocations: 4.635 MB / 0.9696 GB, free: 12.62 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002889/0.7663, allocations: 194.6 kB / 0.9698 GB, free: 12.38 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.872/2.638, allocations: 1.438 kB / 0.9698 GB, free: 12.38 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