Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.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.Integers.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_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.001336/0.001336, allocations: 100.6 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.001538/0.001538, allocations: 177.3 kB / 15.94 MB, free: 220 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.117/2.117, allocations: 223.2 MB / 239.9 MB, free: 5.484 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 3.328/3.328, allocations: 409.2 MB / 0.6838 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.000604/0.0006045, allocations: 12 kB / 0.8375 GB, free: 6.527 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.086/1.086, allocations: 146.8 MB / 0.9809 GB, free: 6.301 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001173/1.087, allocations: 0.5336 MB / 0.9814 GB, free: 5.77 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001565/1.089, allocations: 1.21 MB / 0.9826 GB, free: 4.539 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.216e-05/1.089, allocations: 0 / 0.9826 GB, free: 4.539 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.294e-05/1.089, allocations: 3.938 kB / 0.9826 GB, free: 4.535 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.785e-05/1.089, allocations: 19.95 kB / 0.9826 GB, free: 4.516 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008507/1.09, allocations: 301.2 kB / 0.9829 GB, free: 4.23 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002047/1.09, allocations: 143.8 kB / 0.983 GB, free: 4.09 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000131/1.09, allocations: 37.55 kB / 0.9831 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002347/1.091, allocations: 91.8 kB / 0.9831 GB, free: 3.961 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001308/1.091, allocations: 83.69 kB / 0.9832 GB, free: 3.879 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.676e-05/1.091, allocations: 16 kB / 0.9832 GB, free: 3.863 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 8.451e-05/1.091, allocations: 24 kB / 0.9833 GB, free: 3.84 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.487e-05/1.091, allocations: 15.92 kB / 0.9833 GB, free: 3.824 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 7.198e-05/1.091, allocations: 53.64 kB / 0.9833 GB, free: 3.766 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002069/1.091, allocations: 181.8 kB / 0.9835 GB, free: 3.59 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/1.091, allocations: 4 kB / 0.9835 GB, free: 3.586 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.883e-06/1.091, allocations: 0 / 0.9835 GB, free: 3.586 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.949e-06/1.091, allocations: 0 / 0.9835 GB, free: 3.586 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0006416/1.092, allocations: 491.8 kB / 0.984 GB, free: 3.039 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/1.092, allocations: 8.031 kB / 0.984 GB, free: 3.031 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.296e-05/1.092, allocations: 42.56 kB / 0.984 GB, free: 2.98 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.744e-05/1.092, allocations: 19.89 kB / 0.984 GB, free: 2.961 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00014/1.092, allocations: 183.4 kB / 0.9842 GB, free: 2.742 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.735e-05/1.092, allocations: 8 kB / 0.9842 GB, free: 2.734 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.235e-05/1.092, allocations: 23.95 kB / 0.9843 GB, free: 2.711 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001743/1.093, allocations: 91.02 kB / 0.9843 GB, free: 2.617 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/1.093, allocations: 0 / 0.9843 GB, free: 2.617 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/1.093, allocations: 0 / 0.9843 GB, free: 2.617 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.073e-05/1.093, allocations: 7.938 kB / 0.9843 GB, free: 2.609 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001023/1.093, allocations: 47.92 kB / 0.9844 GB, free: 2.562 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007719/1.094, allocations: 0.4926 MB / 0.9849 GB, free: 2.02 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002367/1.094, allocations: 70.55 kB / 0.9849 GB, free: 1.941 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.06e-05/1.094, allocations: 0 / 0.9849 GB, free: 1.941 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002013/1.094, allocations: 115.4 kB / 0.9851 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 1.373e-06/1.094, allocations: 3.938 kB / 0.9851 GB, free: 1.812 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.0003879/1.094, allocations: 170.4 kB / 0.9852 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.647e-05/1.094, allocations: 59.39 kB / 0.9853 GB, free: 1.57 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001467/1.095, allocations: 165.6 kB / 0.9854 GB, free: 1.402 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.634e-05/1.095, allocations: 33.7 kB / 0.9855 GB, free: 1.363 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 9.416e-05/1.095, allocations: 116.2 kB / 0.9856 GB, free: 1.246 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.54e-05/1.095, allocations: 23.7 kB / 0.9856 GB, free: 1.223 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.329e-05/1.095, allocations: 8 kB / 0.9856 GB, free: 1.215 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002017/1.095, allocations: 326.8 kB / 0.9859 GB, free: 0.8867 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001935/1.095, allocations: 95.94 kB / 0.986 GB, free: 0.793 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000221/1.095, allocations: 141.9 kB / 0.9861 GB, free: 0.6328 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002339/1.096, allocations: 186.5 kB / 0.9863 GB, free: 444 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/1.096, allocations: 0 / 0.9863 GB, free: 444 kB / 0.7325 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006381/1.096, allocations: 391.6 kB / 0.9867 GB, free: 28 kB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 9.257e-05/1.096, allocations: 105.2 kB / 0.9868 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.423e-06/1.097, allocations: 4 kB / 0.9868 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/1.097, allocations: 0 / 0.9868 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.311e-05/1.097, allocations: 23.92 kB / 0.9868 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/1.097, allocations: 4 kB / 0.9868 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006572/1.097, allocations: 113.2 kB / 0.9869 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.634e-05/1.097, allocations: 27.97 kB / 0.987 GB, free: 15.74 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,$PRE.booPul1.y,booPul1.y,$PRE.booPul2.y,booPul2.y,$PRE.booPul3.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * 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.0001404/1.097, allocations: 137.7 kB / 0.9871 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.139e-05/1.098, allocations: 11.91 kB / 0.9871 GB, free: 15.58 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.751e-05/1.098, allocations: 16.84 kB / 0.9871 GB, free: 15.56 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/1.098, allocations: 0 / 0.9871 GB, free: 15.56 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/1.098, allocations: 0 / 0.9871 GB, free: 15.56 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/1.098, allocations: 3.984 kB / 0.9871 GB, free: 15.56 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002656/1.098, allocations: 225.4 kB / 0.9873 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/1.098, allocations: 0 / 0.9873 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.575e-05/1.098, allocations: 15.98 kB / 0.9874 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/1.098, allocations: 0 / 0.9874 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.241e-05/1.098, allocations: 8 kB / 0.9874 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/1.098, allocations: 0 / 0.9874 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/1.098, allocations: 0 / 0.9874 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002593/1.098, allocations: 163.9 kB / 0.9875 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 6.906e-05/1.098, allocations: 92.88 kB / 0.9876 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.819e-05/1.098, allocations: 0 / 0.9876 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.582e-05/1.098, allocations: 11.98 kB / 0.9876 GB, free: 14.97 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.258e-05/1.099, allocations: 7.984 kB / 0.9876 GB, free: 14.96 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.03e-05/1.099, allocations: 8 kB / 0.9876 GB, free: 14.95 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 9.362e-05/1.099, allocations: 111.9 kB / 0.9877 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of sort global known variables: time 4.6e-07/1.099, allocations: 0 / 0.9877 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003776/1.099, allocations: 52 kB / 0.9878 GB, free: 14.79 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: 14 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul2.y,booPul3.y,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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.0006695/1.1, allocations: 0.7169 MB / 0.9885 GB, free: 14.05 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0006309/1.1, allocations: 378.1 kB / 0.9888 GB, free: 13.64 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/1.1, allocations: 0 / 0.9888 GB, free: 13.64 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 8.906e-05/1.1, allocations: 51.92 kB / 0.9889 GB, free: 13.59 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002539/1.101, allocations: 28.3 kB / 0.9889 GB, free: 13.57 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001284/1.102, allocations: 1.413 MB / 0.9903 GB, free: 12.08 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000561/1.103, allocations: 0.7164 MB / 0.991 GB, free: 11.34 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 4.541e-05/1.103, allocations: 16.64 kB / 0.991 GB, free: 11.32 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.244e-05/1.103, allocations: 43.42 kB / 0.9911 GB, free: 11.28 MB / 0.7481 GB Notification: Performance of SimCode: time 6.62e-07/1.103, allocations: 0 / 0.9911 GB, free: 11.28 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02349/1.126, allocations: 3.839 MB / 0.9948 GB, free: 7.602 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003048/1.127, allocations: 185.2 kB / 0.995 GB, free: 7.363 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.344/3.471, allocations: 3.25 kB / 0.995 GB, free: 7.363 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_Switch.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat does not exist to compare? outputFormat=mat