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.001196/0.001197, allocations: 91.69 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.001587/0.001588, 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.489/1.489, allocations: 223.2 MB / 240 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.621/2.621, allocations: 409.4 MB / 0.684 GB, free: 0.9375 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003945/0.0003947, allocations: 12 kB / 0.8378 GB, free: 6.488 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8293/0.8297, allocations: 146.8 MB / 0.9811 GB, free: 6.27 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.001015/0.8308, allocations: 431.6 kB / 0.9816 GB, free: 5.852 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001808/0.8326, allocations: 1.236 MB / 0.9828 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.835e-05/0.8327, allocations: 3.938 kB / 0.9828 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.796e-05/0.8327, allocations: 3.938 kB / 0.9828 GB, free: 4.59 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 9.332e-05/0.8328, allocations: 7.922 kB / 0.9828 GB, free: 4.582 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000924/0.8338, allocations: 287.1 kB / 0.9831 GB, free: 4.309 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002877/0.8341, allocations: 199.6 kB / 0.9832 GB, free: 4.113 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.8342, allocations: 16.17 kB / 0.9833 GB, free: 4.094 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002047/0.8344, allocations: 87.8 kB / 0.9833 GB, free: 4.008 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001462/0.8346, allocations: 63.84 kB / 0.9834 GB, free: 3.945 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 5.425e-05/0.8346, allocations: 12 kB / 0.9834 GB, free: 3.934 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001076/0.8348, allocations: 39.84 kB / 0.9835 GB, free: 3.895 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.376e-05/0.8348, allocations: 8 kB / 0.9835 GB, free: 3.887 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 7.819e-05/0.8349, allocations: 45.64 kB / 0.9835 GB, free: 3.836 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001983/0.8351, allocations: 153.9 kB / 0.9837 GB, free: 3.688 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.8351, allocations: 0 / 0.9837 GB, free: 3.688 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.044e-06/0.8351, allocations: 0 / 0.9837 GB, free: 3.688 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.756e-06/0.8351, allocations: 0 / 0.9837 GB, free: 3.688 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.0005543/0.8357, allocations: 460.2 kB / 0.9841 GB, free: 3.172 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.971e-05/0.8357, allocations: 8.031 kB / 0.9841 GB, free: 3.164 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.378e-05/0.8358, allocations: 38.55 kB / 0.9841 GB, free: 3.117 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.351e-05/0.8359, allocations: 15.91 kB / 0.9842 GB, free: 3.102 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001484/0.836, allocations: 175.5 kB / 0.9843 GB, free: 2.891 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.433e-05/0.8361, allocations: 16 kB / 0.9843 GB, free: 2.875 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.214e-05/0.8361, allocations: 12 kB / 0.9843 GB, free: 2.863 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001543/0.8363, allocations: 69.59 kB / 0.9844 GB, free: 2.789 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.8363, allocations: 3.938 kB / 0.9844 GB, free: 2.785 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.8363, allocations: 0 / 0.9844 GB, free: 2.785 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.501e-06/0.8363, allocations: 0 / 0.9844 GB, free: 2.785 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.617e-05/0.8364, allocations: 19.98 kB / 0.9844 GB, free: 2.766 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000613/0.837, allocations: 412.6 kB / 0.9848 GB, free: 2.312 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 7.298e-05/0.8371, allocations: 34.5 kB / 0.9849 GB, free: 2.27 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.19e-05/0.8371, allocations: 20.86 kB / 0.9849 GB, free: 2.246 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.256e-05/0.8372, allocations: 0 / 0.9849 GB, free: 2.246 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002183/0.8374, allocations: 99.34 kB / 0.985 GB, free: 2.137 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/0.8374, allocations: 3.938 kB / 0.985 GB, free: 2.133 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10): time 0.0003569/0.8378, allocations: 141.5 kB / 0.9851 GB, free: 1.988 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.338e-05/0.8378, allocations: 55.41 kB / 0.9852 GB, free: 1.922 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001394/0.838, allocations: 131.6 kB / 0.9853 GB, free: 1.785 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.048e-05/0.838, allocations: 34.08 kB / 0.9853 GB, free: 1.746 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 9.925e-05/0.8381, allocations: 108.1 kB / 0.9854 GB, free: 1.637 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.293e-05/0.8381, allocations: 19.75 kB / 0.9854 GB, free: 1.617 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.416e-05/0.8382, allocations: 4 kB / 0.9855 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001351/0.8383, allocations: 326.8 kB / 0.9858 GB, free: 1.285 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001834/0.8385, allocations: 87.95 kB / 0.9858 GB, free: 1.199 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002094/0.8387, allocations: 133.9 kB / 0.986 GB, free: 1.047 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002208/0.839, allocations: 174 kB / 0.9861 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.839, allocations: 0 / 0.9861 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005928/0.8396, allocations: 380.9 kB / 0.9865 GB, free: 476 kB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 7.488e-05/0.8397, allocations: 101.1 kB / 0.9866 GB, free: 356 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.8397, allocations: 0 / 0.9866 GB, free: 356 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.8397, allocations: 4 kB / 0.9866 GB, free: 352 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.682e-05/0.8397, allocations: 4.172 kB / 0.9866 GB, free: 348 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.278e-06/0.8397, allocations: 8 kB / 0.9866 GB, free: 340 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005231/0.8403, allocations: 112.3 kB / 0.9867 GB, free: 228 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.609e-05/0.8403, allocations: 19.98 kB / 0.9867 GB, free: 208 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.0001422/0.8405, allocations: 143.1 kB / 0.9869 GB, free: 56 kB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.879e-05/0.8405, allocations: 7.906 kB / 0.9869 GB, free: 48 kB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.458e-05/0.8405, allocations: 12.38 kB / 0.9869 GB, free: 32 kB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.8406, allocations: 0 / 0.9869 GB, free: 32 kB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.8406, allocations: 0 / 0.9869 GB, free: 32 kB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.8406, allocations: 0 / 0.9869 GB, free: 32 kB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001948/0.8408, allocations: 193.6 kB / 0.9871 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.8408, allocations: 0 / 0.9871 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.058e-05/0.8408, allocations: 4 kB / 0.9871 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.8408, allocations: 0 / 0.9871 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.8408, allocations: 4 kB / 0.9871 GB, free: 15.79 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.8408, allocations: 4 kB / 0.9871 GB, free: 15.78 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.8408, allocations: 0 / 0.9871 GB, free: 15.78 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001949/0.841, allocations: 136.9 kB / 0.9872 GB, free: 15.63 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 5.214e-05/0.8411, allocations: 88.97 kB / 0.9873 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.814e-05/0.8411, allocations: 3.938 kB / 0.9873 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.675e-05/0.8412, allocations: 11.98 kB / 0.9873 GB, free: 15.51 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.916e-05/0.8412, allocations: 15.92 kB / 0.9873 GB, free: 15.49 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.616e-06/0.8412, allocations: 4 kB / 0.9873 GB, free: 15.49 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 6.38e-05/0.8413, allocations: 96.95 kB / 0.9874 GB, free: 15.39 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8413, allocations: 0 / 0.9874 GB, free: 15.39 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002746/0.8416, allocations: 44.09 kB / 0.9875 GB, free: 15.35 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.0005125/0.8421, allocations: 0.6825 MB / 0.9881 GB, free: 14.64 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.000452/0.8426, allocations: 366.1 kB / 0.9885 GB, free: 14.25 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/0.8426, allocations: 0 / 0.9885 GB, free: 14.25 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 6.674e-05/0.8426, allocations: 39.92 kB / 0.9885 GB, free: 14.21 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002643/0.8429, allocations: 23.89 kB / 0.9886 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001414/0.8443, allocations: 0.9022 MB / 0.9894 GB, free: 13.21 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002717/0.8446, allocations: 0.6965 MB / 0.9901 GB, free: 12.49 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 3.981e-05/0.8447, allocations: 12.41 kB / 0.9901 GB, free: 12.48 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.898e-05/0.8447, allocations: 31.48 kB / 0.9902 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of SimCode: time 2.4e-07/0.8447, allocations: 0 / 0.9902 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01486/0.8596, allocations: 3.457 MB / 0.9935 GB, free: 9.16 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001936/0.8598, allocations: 192.7 kB / 0.9937 GB, free: 8.922 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.802/2.662, allocations: 0 / 0.9937 GB, free: 8.922 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