Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.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.Logical.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_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.001176/0.001176, allocations: 99.78 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.001378/0.001377, 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 2.276/2.276, allocations: 223.2 MB / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 3.326/3.326, allocations: 409.2 MB / 0.6838 GB, free: 1.02 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0004251/0.0004252, allocations: 12 kB / 0.8375 GB, free: 6.582 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.144/1.144, allocations: 146.8 MB / 0.9809 GB, free: 6.336 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001274/1.146, allocations: 427.7 kB / 0.9813 GB, free: 5.922 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00207/1.148, allocations: 1.189 MB / 0.9825 GB, free: 4.715 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.261e-05/1.148, allocations: 0 / 0.9825 GB, free: 4.715 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.228e-05/1.148, allocations: 0 / 0.9825 GB, free: 4.715 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001103/1.148, allocations: 23.89 kB / 0.9825 GB, free: 4.691 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001083/1.149, allocations: 281.2 kB / 0.9827 GB, free: 4.426 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002226/1.149, allocations: 123.8 kB / 0.9829 GB, free: 4.305 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000123/1.149, allocations: 16.16 kB / 0.9829 GB, free: 4.285 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000169/1.15, allocations: 87.86 kB / 0.983 GB, free: 4.199 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001637/1.15, allocations: 71.77 kB / 0.983 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.768e-05/1.15, allocations: 12 kB / 0.983 GB, free: 4.117 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001046/1.15, allocations: 23.98 kB / 0.9831 GB, free: 4.094 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.883e-05/1.15, allocations: 7.984 kB / 0.9831 GB, free: 4.086 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 8.841e-05/1.15, allocations: 53.64 kB / 0.9831 GB, free: 4.027 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002609/1.15, allocations: 149.9 kB / 0.9833 GB, free: 3.883 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/1.15, allocations: 0 / 0.9833 GB, free: 3.883 MB / 0.7325 GB Notification: Performance of FrontEnd: time 5.38e-06/1.15, allocations: 3.984 kB / 0.9833 GB, free: 3.879 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.591e-06/1.15, allocations: 0 / 0.9833 GB, free: 3.879 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.0006796/1.151, allocations: 452.2 kB / 0.9837 GB, free: 3.371 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.105e-05/1.151, allocations: 12.03 kB / 0.9837 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.688e-05/1.151, allocations: 34.55 kB / 0.9837 GB, free: 3.316 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.563e-05/1.151, allocations: 15.91 kB / 0.9838 GB, free: 3.301 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000161/1.152, allocations: 170.9 kB / 0.9839 GB, free: 3.094 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.08e-05/1.152, allocations: 15.94 kB / 0.9839 GB, free: 3.078 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.574e-05/1.152, allocations: 19.98 kB / 0.984 GB, free: 3.059 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001619/1.152, allocations: 57.62 kB / 0.984 GB, free: 2.996 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/1.152, allocations: 3.938 kB / 0.984 GB, free: 2.992 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.351e-05/1.152, allocations: 0 / 0.984 GB, free: 2.992 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/1.152, allocations: 0 / 0.984 GB, free: 2.992 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.5e-05/1.152, allocations: 23.98 kB / 0.984 GB, free: 2.969 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007498/1.153, allocations: 424.5 kB / 0.9844 GB, free: 2.504 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 8.472e-05/1.153, allocations: 30.56 kB / 0.9845 GB, free: 2.465 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 8.927e-06/1.153, allocations: 0 / 0.9845 GB, free: 2.465 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002196/1.153, allocations: 103.3 kB / 0.9846 GB, free: 2.352 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=10): time 1.913e-06/1.153, allocations: 0 / 0.9846 GB, free: 2.352 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10): time 0.0004078/1.154, allocations: 137.5 kB / 0.9847 GB, free: 2.211 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.62e-05/1.154, allocations: 59.41 kB / 0.9848 GB, free: 2.141 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000135/1.154, allocations: 135.2 kB / 0.9849 GB, free: 2 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.173e-05/1.154, allocations: 29.7 kB / 0.9849 GB, free: 1.965 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/1.154, allocations: 104 kB / 0.985 GB, free: 1.859 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.88e-05/1.154, allocations: 19.88 kB / 0.985 GB, free: 1.84 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.363e-05/1.154, allocations: 4 kB / 0.985 GB, free: 1.836 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001447/1.154, allocations: 322.8 kB / 0.9853 GB, free: 1.512 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002617/1.154, allocations: 83.95 kB / 0.9854 GB, free: 1.43 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002872/1.155, allocations: 137.9 kB / 0.9856 GB, free: 1.273 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003485/1.155, allocations: 173 kB / 0.9857 GB, free: 1.086 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/1.155, allocations: 4 kB / 0.9857 GB, free: 1.082 MB / 0.7325 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0008273/1.156, allocations: 373.3 kB / 0.9861 GB, free: 0.6953 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001015/1.156, allocations: 105.1 kB / 0.9862 GB, free: 0.5742 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.998e-06/1.156, allocations: 4 kB / 0.9862 GB, free: 0.5703 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/1.156, allocations: 4 kB / 0.9862 GB, free: 0.5664 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.799e-05/1.156, allocations: 0 / 0.9862 GB, free: 0.5664 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.228e-05/1.156, allocations: 7.938 kB / 0.9862 GB, free: 0.5586 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007879/1.157, allocations: 125 kB / 0.9863 GB, free: 448 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.974e-05/1.157, allocations: 16.36 kB / 0.9863 GB, free: 432 kB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,$PRE.booPul3.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 3 * 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.000158/1.157, allocations: 129.8 kB / 0.9865 GB, free: 292 kB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.981e-05/1.157, allocations: 7.906 kB / 0.9865 GB, free: 284 kB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.717e-05/1.157, allocations: 16.36 kB / 0.9865 GB, free: 264 kB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/1.157, allocations: 7.938 kB / 0.9865 GB, free: 256 kB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/1.157, allocations: 0 / 0.9865 GB, free: 256 kB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/1.157, allocations: 0 / 0.9865 GB, free: 256 kB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002087/1.157, allocations: 189.6 kB / 0.9867 GB, free: 16 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/1.158, allocations: 4 kB / 0.9867 GB, free: 12 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.466e-05/1.158, allocations: 7.922 kB / 0.9867 GB, free: 4 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/1.158, allocations: 0 / 0.9867 GB, free: 4 kB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.054e-05/1.158, allocations: 4 kB / 0.9867 GB, free: 0 / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/1.158, allocations: 128 / 0.9867 GB, free: 16 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/1.158, allocations: 3.938 kB / 0.9867 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002529/1.158, allocations: 140.9 kB / 0.9868 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 6.587e-05/1.158, allocations: 88.97 kB / 0.9869 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.449e-05/1.158, allocations: 0 / 0.9869 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.681e-05/1.158, allocations: 4 kB / 0.9869 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.819e-05/1.158, allocations: 11.98 kB / 0.9869 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.265e-05/1.158, allocations: 4 kB / 0.9869 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 8.517e-05/1.158, allocations: 97.09 kB / 0.987 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.91e-07/1.158, allocations: 0 / 0.987 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004227/1.159, allocations: 47.98 kB / 0.9871 GB, free: 15.57 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.000661/1.159, allocations: 0.6834 MB / 0.9877 GB, free: 14.86 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0006584/1.16, allocations: 366.1 kB / 0.9881 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/1.16, allocations: 0.5625 kB / 0.9881 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 8.727e-05/1.16, allocations: 43.92 kB / 0.9881 GB, free: 14.42 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003176/1.16, allocations: 21.14 kB / 0.9881 GB, free: 14.4 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001297/1.162, allocations: 1.346 MB / 0.9895 GB, free: 12.98 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000358/1.162, allocations: 0.6965 MB / 0.9901 GB, free: 12.26 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 4.826e-05/1.162, allocations: 16.42 kB / 0.9902 GB, free: 12.24 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.648e-05/1.162, allocations: 27.42 kB / 0.9902 GB, free: 12.21 MB / 0.7481 GB Notification: Performance of SimCode: time 4.4e-07/1.162, allocations: 0 / 0.9902 GB, free: 12.21 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02312/1.185, allocations: 3.418 MB / 0.9935 GB, free: 8.961 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002614/1.186, allocations: 182.2 kB / 0.9937 GB, free: 8.727 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.374/3.56, allocations: 0 / 0.9937 GB, free: 8.727 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat does not exist to compare? outputFormat=mat