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.001041/0.001041, allocations: 84.38 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.001561/0.001561, 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.479/1.479, allocations: 223.3 MB / 240 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.726/2.726, allocations: 409.4 MB / 0.684 GB, free: 0.8945 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003837/0.0003838, allocations: 12 kB / 0.8378 GB, free: 6.492 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.822/0.8225, allocations: 146.8 MB / 0.9811 GB, free: 6.242 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001122/0.8236, allocations: 0.5256 MB / 0.9817 GB, free: 5.719 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001548/0.8252, allocations: 1.269 MB / 0.9829 GB, free: 4.434 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.944e-05/0.8253, allocations: 0 / 0.9829 GB, free: 4.434 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.293e-05/0.8253, allocations: 7.875 kB / 0.9829 GB, free: 4.426 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 7.695e-05/0.8254, allocations: 15.86 kB / 0.9829 GB, free: 4.41 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008824/0.8263, allocations: 294.1 kB / 0.9832 GB, free: 4.133 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002481/0.8265, allocations: 227.5 kB / 0.9834 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001125/0.8266, allocations: 33.53 kB / 0.9835 GB, free: 3.875 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001324/0.8268, allocations: 103.7 kB / 0.9836 GB, free: 3.773 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001265/0.8269, allocations: 75.7 kB / 0.9836 GB, free: 3.699 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.018e-05/0.827, allocations: 20 kB / 0.9836 GB, free: 3.68 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.878e-05/0.8271, allocations: 27.98 kB / 0.9837 GB, free: 3.652 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.433e-05/0.8271, allocations: 15.92 kB / 0.9837 GB, free: 3.637 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.799e-05/0.8272, allocations: 53.64 kB / 0.9837 GB, free: 3.578 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000211/0.8274, allocations: 181.8 kB / 0.9839 GB, free: 3.402 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.8274, allocations: 0 / 0.9839 GB, free: 3.402 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.064e-06/0.8274, allocations: 3.938 kB / 0.9839 GB, free: 3.398 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.979e-06/0.8274, allocations: 0 / 0.9839 GB, free: 3.398 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.0006642/0.8281, allocations: 499.7 kB / 0.9844 GB, free: 2.844 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.8281, allocations: 12.03 kB / 0.9844 GB, free: 2.832 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.231e-05/0.8282, allocations: 38.56 kB / 0.9844 GB, free: 2.785 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.859e-05/0.8283, allocations: 23.89 kB / 0.9845 GB, free: 2.762 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001407/0.8284, allocations: 179.4 kB / 0.9846 GB, free: 2.547 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.864e-05/0.8284, allocations: 12 kB / 0.9846 GB, free: 2.535 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.473e-05/0.8285, allocations: 23.95 kB / 0.9847 GB, free: 2.512 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001798/0.8287, allocations: 86.84 kB / 0.9848 GB, free: 2.422 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.375e-06/0.8287, allocations: 0 / 0.9848 GB, free: 2.422 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.563e-05/0.8287, allocations: 8 kB / 0.9848 GB, free: 2.414 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.8287, allocations: 0 / 0.9848 GB, free: 2.414 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001027/0.8288, allocations: 43.97 kB / 0.9848 GB, free: 2.371 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006935/0.8295, allocations: 0.4886 MB / 0.9853 GB, free: 1.832 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002035/0.8297, allocations: 74.48 kB / 0.9853 GB, free: 1.75 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.298e-05/0.8298, allocations: 32.98 kB / 0.9854 GB, free: 1.715 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.227e-05/0.8298, allocations: 0 / 0.9854 GB, free: 1.715 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002222/0.8301, allocations: 115.3 kB / 0.9855 GB, free: 1.59 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 1.273e-06/0.8301, allocations: 0 / 0.9855 GB, free: 1.59 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.0004245/0.8305, allocations: 173.4 kB / 0.9857 GB, free: 1.414 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.349e-05/0.8305, allocations: 51.41 kB / 0.9857 GB, free: 1.352 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001614/0.8307, allocations: 173.6 kB / 0.9859 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.282e-05/0.8308, allocations: 37.7 kB / 0.9859 GB, free: 1.133 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 9.71e-05/0.8309, allocations: 104 kB / 0.986 GB, free: 1.027 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 7.596e-05/0.831, allocations: 31.7 kB / 0.986 GB, free: 0.9961 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.683e-05/0.831, allocations: 4 kB / 0.986 GB, free: 0.9922 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002599/0.8313, allocations: 334.7 kB / 0.9864 GB, free: 0.6562 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001954/0.8315, allocations: 91.94 kB / 0.9864 GB, free: 0.5664 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000282/0.8317, allocations: 149.2 kB / 0.9866 GB, free: 412 kB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002521/0.832, allocations: 176.9 kB / 0.9868 GB, free: 216 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.832, allocations: 4 kB / 0.9868 GB, free: 212 kB / 0.7325 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000689/0.8327, allocations: 394.4 kB / 0.9871 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 9.362e-05/0.8328, allocations: 102.5 kB / 0.9872 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.427e-06/0.8328, allocations: 4 kB / 0.9872 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.8329, allocations: 0 / 0.9872 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.488e-05/0.8329, allocations: 15.92 kB / 0.9873 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.8329, allocations: 4 kB / 0.9873 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005352/0.8335, allocations: 121 kB / 0.9874 GB, free: 15.54 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.511e-05/0.8335, allocations: 19.98 kB / 0.9874 GB, free: 15.52 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.0001575/0.8337, allocations: 141.8 kB / 0.9875 GB, free: 15.37 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.268e-05/0.8337, allocations: 11.91 kB / 0.9875 GB, free: 15.36 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.284e-05/0.8338, allocations: 12.78 kB / 0.9876 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.8338, allocations: 4 kB / 0.9876 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/0.8338, allocations: 0 / 0.9876 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.8338, allocations: 3.938 kB / 0.9876 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002564/0.8341, allocations: 233.4 kB / 0.9878 GB, free: 15.06 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.8341, allocations: 0 / 0.9878 GB, free: 15.06 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.626e-05/0.8342, allocations: 12 kB / 0.9878 GB, free: 15.05 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.8342, allocations: 0 / 0.9878 GB, free: 15.05 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.386e-05/0.8342, allocations: 3.984 kB / 0.9878 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.8342, allocations: 4 kB / 0.9878 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.8342, allocations: 0 / 0.9878 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003917/0.8346, allocations: 159.2 kB / 0.988 GB, free: 14.87 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 7.034e-05/0.8347, allocations: 96.88 kB / 0.988 GB, free: 14.75 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.801e-05/0.8347, allocations: 4 kB / 0.988 GB, free: 14.75 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.871e-05/0.8347, allocations: 7.875 kB / 0.9881 GB, free: 14.74 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.004e-05/0.8348, allocations: 11.98 kB / 0.9881 GB, free: 14.73 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.157e-05/0.8348, allocations: 7.984 kB / 0.9881 GB, free: 14.72 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001191/0.8349, allocations: 111.9 kB / 0.9882 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8349, allocations: 0 / 0.9882 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002844/0.8352, allocations: 51.98 kB / 0.9882 GB, free: 14.56 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.0008781/0.8361, allocations: 0.713 MB / 0.9889 GB, free: 13.82 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0005327/0.8367, allocations: 377.2 kB / 0.9893 GB, free: 13.42 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.8367, allocations: 0 / 0.9893 GB, free: 13.42 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 9.126e-05/0.8368, allocations: 59.91 kB / 0.9893 GB, free: 13.36 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003051/0.8371, allocations: 24.36 kB / 0.9894 GB, free: 13.34 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002098/0.8392, allocations: 1.057 MB / 0.9904 GB, free: 12.21 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004593/0.8397, allocations: 0.7126 MB / 0.9911 GB, free: 11.48 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 4.371e-05/0.8397, allocations: 12.64 kB / 0.9911 GB, free: 11.46 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.555e-05/0.8398, allocations: 39.42 kB / 0.9911 GB, free: 11.43 MB / 0.7481 GB Notification: Performance of SimCode: time 4.31e-07/0.8398, allocations: 0 / 0.9911 GB, free: 11.43 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01828/0.8581, allocations: 3.902 MB / 0.995 GB, free: 7.695 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003215/0.8585, allocations: 200.5 kB / 0.9951 GB, free: 7.449 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.946/2.805, allocations: 11.88 kB / 0.9952 GB, free: 7.438 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