Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.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.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch",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.0008787/0.0008785, allocations: 87.03 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.0009028/0.0009028, 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.424/1.424, allocations: 223.3 MB / 240 MB, free: 5.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.482/2.482, allocations: 409.4 MB / 0.684 GB, free: 0.8906 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003887/0.0003888, allocations: 19.94 kB / 0.8378 GB, free: 6.484 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7848/0.7852, allocations: 146.8 MB / 0.9812 GB, free: 6.254 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Switch): time 0.001007/0.7863, allocations: 0.4982 MB / 0.9817 GB, free: 5.762 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001522/0.7878, allocations: 1.127 MB / 0.9828 GB, free: 4.617 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.529e-05/0.7879, allocations: 0 / 0.9828 GB, free: 4.617 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.389e-05/0.788, allocations: 0 / 0.9828 GB, free: 4.617 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 9.732e-05/0.7881, allocations: 15.86 kB / 0.9828 GB, free: 4.602 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005422/0.7886, allocations: 121.4 kB / 0.9829 GB, free: 4.488 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001401/0.7888, allocations: 103.7 kB / 0.983 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.514e-05/0.7889, allocations: 12 kB / 0.983 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001144/0.789, allocations: 43.89 kB / 0.983 GB, free: 4.332 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 9.287e-05/0.7891, allocations: 39.88 kB / 0.9831 GB, free: 4.293 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.483e-05/0.7891, allocations: 8 kB / 0.9831 GB, free: 4.285 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.949e-05/0.7892, allocations: 27.92 kB / 0.9831 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.871e-05/0.7892, allocations: 0 / 0.9831 GB, free: 4.258 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.185e-05/0.7893, allocations: 41.64 kB / 0.9831 GB, free: 4.211 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001298/0.7894, allocations: 83.8 kB / 0.9832 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.7894, allocations: 3.938 kB / 0.9832 GB, free: 4.125 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.844e-06/0.7895, allocations: 0 / 0.9832 GB, free: 4.125 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.048e-06/0.7895, allocations: 0 / 0.9832 GB, free: 4.125 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006404/0.7901, allocations: 419.1 kB / 0.9836 GB, free: 3.664 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/0.7902, allocations: 12.03 kB / 0.9836 GB, free: 3.652 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.139e-05/0.7902, allocations: 30.56 kB / 0.9837 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.268e-05/0.7903, allocations: 11.89 kB / 0.9837 GB, free: 3.602 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001604/0.7904, allocations: 167 kB / 0.9838 GB, free: 3.398 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.189e-05/0.7905, allocations: 15.92 kB / 0.9839 GB, free: 3.383 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.491e-05/0.7905, allocations: 4 kB / 0.9839 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003068/0.7908, allocations: 93.59 kB / 0.984 GB, free: 3.281 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.114e-05/0.7908, allocations: 3.938 kB / 0.984 GB, free: 3.277 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.7909, allocations: 0 / 0.984 GB, free: 3.277 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.667e-06/0.7909, allocations: 4 kB / 0.984 GB, free: 3.273 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003055/0.7912, allocations: 91.92 kB / 0.984 GB, free: 3.184 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005181/0.7917, allocations: 340.7 kB / 0.9844 GB, free: 2.801 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001894/0.7919, allocations: 54.64 kB / 0.9844 GB, free: 2.738 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001544/0.7921, allocations: 64.75 kB / 0.9845 GB, free: 2.672 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.844e-05/0.7921, allocations: 0 / 0.9845 GB, free: 2.672 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003187/0.7924, allocations: 107.3 kB / 0.9846 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=6): time 1.694e-06/0.7924, allocations: 0 / 0.9846 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of matching and sorting (n=6): time 0.0006619/0.7931, allocations: 193.5 kB / 0.9848 GB, free: 2.359 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.009e-05/0.7932, allocations: 63.34 kB / 0.9848 GB, free: 2.285 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001514/0.7934, allocations: 126 kB / 0.985 GB, free: 2.148 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.917e-05/0.7934, allocations: 25.7 kB / 0.985 GB, free: 2.117 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.965e-05/0.7935, allocations: 96.05 kB / 0.9851 GB, free: 2.02 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.033e-05/0.7935, allocations: 19.86 kB / 0.9851 GB, free: 2 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.242e-05/0.7935, allocations: 0 / 0.9851 GB, free: 2 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001624/0.7937, allocations: 318.8 kB / 0.9854 GB, free: 1.68 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002227/0.7939, allocations: 71.94 kB / 0.9855 GB, free: 1.609 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002336/0.7942, allocations: 94.53 kB / 0.9856 GB, free: 1.508 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002471/0.7944, allocations: 101.6 kB / 0.9856 GB, free: 1.402 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.7945, allocations: 0 / 0.9856 GB, free: 1.402 MB / 0.7325 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005365/0.795, allocations: 231.3 kB / 0.9859 GB, free: 1.164 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 6.322e-05/0.7951, allocations: 37.69 kB / 0.9859 GB, free: 1.121 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.7951, allocations: 3.938 kB / 0.9859 GB, free: 1.117 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.7951, allocations: 0 / 0.9859 GB, free: 1.117 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000145/0.7953, allocations: 23.92 kB / 0.9859 GB, free: 1.094 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.282e-05/0.7953, allocations: 4.062 kB / 0.9859 GB, free: 1.09 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002469/0.7955, allocations: 63.86 kB / 0.986 GB, free: 1.027 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.693e-05/0.7956, allocations: 7.984 kB / 0.986 GB, free: 1.02 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: 4 ($whenCondition1,$whenCondition2,$PRE.booPul.y,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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.000113/0.7957, allocations: 121.7 kB / 0.9861 GB, free: 0.8906 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.974e-05/0.7957, allocations: 7.984 kB / 0.9861 GB, free: 0.8828 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.263e-05/0.7958, allocations: 16.38 kB / 0.9861 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.554e-06/0.7958, allocations: 0 / 0.9861 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/0.7958, allocations: 3.984 kB / 0.9861 GB, free: 0.8555 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.7958, allocations: 96 / 0.9861 GB, free: 0.8555 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001739/0.796, allocations: 185.5 kB / 0.9863 GB, free: 0.625 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.796, allocations: 3.953 kB / 0.9863 GB, free: 0.6211 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001008/0.7961, allocations: 23.97 kB / 0.9863 GB, free: 0.5977 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.7961, allocations: 0 / 0.9863 GB, free: 0.5977 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.31e-05/0.7961, allocations: 8 kB / 0.9864 GB, free: 0.5898 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.7961, allocations: 0 / 0.9864 GB, free: 0.5898 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.7961, allocations: 0 / 0.9864 GB, free: 0.5898 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003868/0.7965, allocations: 181.3 kB / 0.9865 GB, free: 404 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.331e-05/0.7966, allocations: 84.97 kB / 0.9866 GB, free: 300 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.849e-05/0.7966, allocations: 0 / 0.9866 GB, free: 300 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.785e-05/0.7967, allocations: 23.97 kB / 0.9866 GB, free: 276 kB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.927e-05/0.7968, allocations: 4 kB / 0.9866 GB, free: 272 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.155e-05/0.7968, allocations: 7.984 kB / 0.9866 GB, free: 264 kB / 0.7325 GB Notification: Performance of sorting global known variables: time 6.165e-05/0.7969, allocations: 94.16 kB / 0.9867 GB, free: 172 kB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7969, allocations: 0 / 0.9867 GB, free: 172 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002322/0.7971, allocations: 23.98 kB / 0.9868 GB, free: 148 kB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0007553/0.7979, allocations: 0.7177 MB / 0.9875 GB, free: 15.39 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0004926/0.7984, allocations: 211.3 kB / 0.9877 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.7984, allocations: 0 / 0.9877 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001817/0.7986, allocations: 59.89 kB / 0.9877 GB, free: 15.12 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002399/0.7988, allocations: 26.03 kB / 0.9877 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001564/0.8004, allocations: 0.7198 MB / 0.9884 GB, free: 14.32 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002307/0.8007, allocations: 0.6848 MB / 0.9891 GB, free: 13.61 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 4.868e-05/0.8007, allocations: 12.17 kB / 0.9891 GB, free: 13.6 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.939e-05/0.8008, allocations: 15.44 kB / 0.9891 GB, free: 13.59 MB / 0.7481 GB Notification: Performance of SimCode: time 6.01e-07/0.8008, allocations: 0 / 0.9891 GB, free: 13.59 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01291/0.8137, allocations: 2.294 MB / 0.9914 GB, free: 11.45 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001794/0.8139, allocations: 201 kB / 0.9916 GB, free: 11.2 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.825/2.639, allocations: 0 / 0.9916 GB, free: 11.2 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Continuous_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.Switch_res.mat does not exist to compare? outputFormat=mat