Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,fileNamePrefix="Buildings_latest_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.001434/0.001434, allocations: 92.16 kB / 15.06 MB, free: 1.098 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.001791/0.001791, allocations: 172.7 kB / 15.95 MB, free: 208 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.47/1.47, allocations: 223.2 MB / 240 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.712/2.712, allocations: 409.4 MB / 0.684 GB, free: 0.875 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.000343/0.0003434, allocations: 12 kB / 0.8378 GB, free: 6.461 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8401/0.8404, allocations: 146.8 MB / 0.9812 GB, free: 6.219 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.0009985/0.8415, allocations: 0.551 MB / 0.9817 GB, free: 5.676 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0009841/0.8425, allocations: 0.8663 MB / 0.9825 GB, free: 4.797 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.092e-05/0.8425, allocations: 0 / 0.9825 GB, free: 4.797 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.022e-05/0.8426, allocations: 3.938 kB / 0.9826 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.956e-05/0.8427, allocations: 23.84 kB / 0.9826 GB, free: 4.77 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001622/0.8428, allocations: 23.97 kB / 0.9826 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001203/0.843, allocations: 99.7 kB / 0.9827 GB, free: 4.645 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001152/0.8431, allocations: 21.09 kB / 0.9827 GB, free: 4.625 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001149/0.8432, allocations: 47.78 kB / 0.9828 GB, free: 4.578 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.669e-05/0.8433, allocations: 51.81 kB / 0.9828 GB, free: 4.527 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.363e-05/0.8433, allocations: 4 kB / 0.9828 GB, free: 4.523 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.586e-05/0.8433, allocations: 4 kB / 0.9828 GB, free: 4.52 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.227e-05/0.8434, allocations: 15.92 kB / 0.9828 GB, free: 4.504 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.67e-05/0.8434, allocations: 45.62 kB / 0.9829 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001029/0.8435, allocations: 78.06 kB / 0.9829 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.8435, allocations: 0 / 0.9829 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.104e-06/0.8435, allocations: 0 / 0.9829 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.563e-06/0.8436, allocations: 0 / 0.9829 GB, free: 4.379 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006145/0.8442, allocations: 442.8 kB / 0.9834 GB, free: 3.898 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.8442, allocations: 12.03 kB / 0.9834 GB, free: 3.887 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.71e-05/0.8443, allocations: 42.5 kB / 0.9834 GB, free: 3.836 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.664e-05/0.8443, allocations: 11.91 kB / 0.9834 GB, free: 3.824 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004683/0.8448, allocations: 262.7 kB / 0.9837 GB, free: 3.527 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.281e-05/0.8448, allocations: 8 kB / 0.9837 GB, free: 3.52 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.961e-05/0.8449, allocations: 11.94 kB / 0.9837 GB, free: 3.508 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002761/0.8451, allocations: 126.9 kB / 0.9838 GB, free: 3.371 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.8452, allocations: 4 kB / 0.9838 GB, free: 3.367 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.425e-05/0.8452, allocations: 4 kB / 0.9838 GB, free: 3.363 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.501e-06/0.8452, allocations: 3.938 kB / 0.9838 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002776/0.8455, allocations: 91.92 kB / 0.9839 GB, free: 3.27 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005998/0.8461, allocations: 0.5009 MB / 0.9844 GB, free: 2.711 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002358/0.8463, allocations: 119.8 kB / 0.9845 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001407/0.8465, allocations: 58.61 kB / 0.9846 GB, free: 2.5 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.765e-05/0.8465, allocations: 4.078 kB / 0.9846 GB, free: 2.496 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.873e-05/0.8465, allocations: 54.47 kB / 0.9846 GB, free: 2.434 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=8): time 1.473e-06/0.8466, allocations: 0 / 0.9846 GB, free: 2.434 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8): time 0.0005482/0.8471, allocations: 177.5 kB / 0.9848 GB, free: 2.254 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.531e-05/0.8472, allocations: 106.8 kB / 0.9849 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001315/0.8473, allocations: 152.3 kB / 0.9851 GB, free: 1.965 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.014e-05/0.8473, allocations: 29.86 kB / 0.9851 GB, free: 1.93 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.902e-05/0.8474, allocations: 112.3 kB / 0.9852 GB, free: 1.812 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.984e-05/0.8475, allocations: 23.64 kB / 0.9852 GB, free: 1.789 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.261e-06/0.8475, allocations: 4 kB / 0.9852 GB, free: 1.785 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001041/0.8476, allocations: 326.8 kB / 0.9855 GB, free: 1.457 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001487/0.8477, allocations: 47.97 kB / 0.9856 GB, free: 1.41 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001618/0.8479, allocations: 93.05 kB / 0.9857 GB, free: 1.301 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001394/0.8481, allocations: 48.2 kB / 0.9857 GB, free: 1.254 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.8481, allocations: 0 / 0.9857 GB, free: 1.254 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003582/0.8484, allocations: 157.5 kB / 0.9859 GB, free: 1.094 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.8485, allocations: 4 kB / 0.9859 GB, free: 1.09 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.807e-06/0.8485, allocations: 11.92 kB / 0.9859 GB, free: 1.078 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.8485, allocations: 0 / 0.9859 GB, free: 1.078 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001474/0.8486, allocations: 19.98 kB / 0.9859 GB, free: 1.059 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.8487, allocations: 0 / 0.9859 GB, free: 1.059 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001166/0.8488, allocations: 27.89 kB / 0.9859 GB, free: 1.031 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.437e-05/0.8488, allocations: 8 kB / 0.9859 GB, free: 1.023 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.hysteresis.y,hysteresis.y,$PRE.hysteresis1.y,hysteresis1.y,$PRE.hysteresis2.y,hysteresis2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001123/0.8489, allocations: 125.7 kB / 0.986 GB, free: 0.8906 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.16e-05/0.849, allocations: 7.906 kB / 0.9861 GB, free: 0.8828 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002633/0.8493, allocations: 105.8 kB / 0.9862 GB, free: 0.7734 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.8493, allocations: 0 / 0.9862 GB, free: 0.7734 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.8493, allocations: 4.062 kB / 0.9862 GB, free: 0.7695 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.8493, allocations: 4 kB / 0.9862 GB, free: 0.7656 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003299/0.8496, allocations: 201.5 kB / 0.9864 GB, free: 0.5195 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.8496, allocations: 0 / 0.9864 GB, free: 0.5195 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001134/0.8498, allocations: 31.91 kB / 0.9864 GB, free: 500 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.8498, allocations: 4 kB / 0.9864 GB, free: 496 kB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.284e-05/0.8498, allocations: 3.938 kB / 0.9864 GB, free: 492 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.624e-06/0.8498, allocations: 0 / 0.9864 GB, free: 492 kB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.8498, allocations: 0 / 0.9864 GB, free: 492 kB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004206/0.8502, allocations: 389.9 kB / 0.9868 GB, free: 84 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.59e-05/0.8503, allocations: 88.97 kB / 0.9869 GB, free: 15.98 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.699e-05/0.8503, allocations: 12 kB / 0.9869 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001973/0.8505, allocations: 15.98 kB / 0.9869 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.45e-05/0.8506, allocations: 27.94 kB / 0.9869 GB, free: 15.92 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.406e-06/0.8506, allocations: 4 kB / 0.9869 GB, free: 15.92 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 7.453e-05/0.8507, allocations: 108.9 kB / 0.987 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8507, allocations: 0 / 0.987 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003161/0.851, allocations: 20 kB / 0.987 GB, free: 15.79 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 (hysteresis.y,hysteresis1.y,hysteresis2.y) * Number of discrete states: 3 (hysteresis2.y,hysteresis1.y,hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0008533/0.8519, allocations: 0.9178 MB / 0.9879 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0003757/0.8523, allocations: 116 kB / 0.988 GB, free: 14.73 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.8523, allocations: 0 / 0.988 GB, free: 14.73 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001772/0.8525, allocations: 64.08 kB / 0.9881 GB, free: 14.67 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004696/0.853, allocations: 13.55 kB / 0.9881 GB, free: 14.66 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001452/0.8544, allocations: 0.7672 MB / 0.9889 GB, free: 13.82 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002539/0.8547, allocations: 0.7044 MB / 0.9895 GB, free: 13.09 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0001002/0.8548, allocations: 21.05 kB / 0.9896 GB, free: 13.07 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.951e-05/0.8549, allocations: 31.42 kB / 0.9896 GB, free: 13.04 MB / 0.7481 GB Notification: Performance of SimCode: time 3.11e-07/0.8549, allocations: 0 / 0.9896 GB, free: 13.04 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01416/0.8691, allocations: 2.372 MB / 0.9919 GB, free: 10.82 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001843/0.8693, allocations: 196.3 kB / 0.9921 GB, free: 10.59 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.818/2.688, allocations: 0 / 0.9921 GB, free: 10.59 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.mat does not exist to compare? outputFormat=mat