Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType,fileNamePrefix="Buildings_latest_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType,fileNamePrefix="Buildings_latest_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.403/2.403, allocations: 393.5 MB / 408.4 MB, free: 10.92 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001038/0.001038, allocations: 187.2 kB / 0.4901 GB, free: 2.094 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.531/1.531, allocations: 223.1 MB / 0.7992 GB, free: 15.65 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000962/0.0009616, allocations: 102.7 kB / 0.9396 GB, free: 2.871 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003951/0.0003952, allocations: 9.109 kB / 1.09 GB, free: 212.6 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2713/0.2717, allocations: 143 MB / 1.229 GB, free: 85.35 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1849/0.4567, allocations: 150.3 MB / 1.376 GB, free: 14.88 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002438/0.457, allocations: 83.94 kB / 1.376 GB, free: 14.8 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.06093/0.518, allocations: 24.3 MB / 1.4 GB, free: 6.465 MB / 0.9011 GB Notification: Performance of FrontEnd: time 3.897e-06/0.518, allocations: 0 / 1.4 GB, free: 6.465 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 1.697e-05/0.5181, allocations: 11.94 kB / 1.4 GB, free: 6.453 MB / 0.9011 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.001024/0.5191, allocations: 0.6394 MB / 1.4 GB, free: 5.738 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.7e-05/0.5192, allocations: 12.56 kB / 1.4 GB, free: 5.727 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.021e-05/0.5192, allocations: 50.48 kB / 1.401 GB, free: 5.668 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.566e-05/0.5193, allocations: 31.61 kB / 1.401 GB, free: 5.637 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003736/0.5197, allocations: 249.7 kB / 1.401 GB, free: 5.355 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.364e-05/0.5197, allocations: 16.28 kB / 1.401 GB, free: 5.34 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.723e-05/0.5198, allocations: 23.94 kB / 1.401 GB, free: 5.316 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005608/0.5204, allocations: 450.8 kB / 1.401 GB, free: 4.859 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.5204, allocations: 0 / 1.401 GB, free: 4.859 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.334e-05/0.5204, allocations: 8 kB / 1.401 GB, free: 4.852 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.5204, allocations: 4 kB / 1.401 GB, free: 4.848 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003929/0.5208, allocations: 327.7 kB / 1.402 GB, free: 4.527 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000599/0.5214, allocations: 0.5547 MB / 1.402 GB, free: 3.914 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001167/0.5226, allocations: 1.029 MB / 1.403 GB, free: 2.848 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 3.064e-05/0.5226, allocations: 8.031 kB / 1.403 GB, free: 2.84 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005399/0.5232, allocations: 478.2 kB / 1.404 GB, free: 2.348 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=37): time 1.452e-06/0.5232, allocations: 0 / 1.404 GB, free: 2.348 MB / 0.9011 GB Notification: Performance of matching and sorting (n=37): time 0.001398/0.5246, allocations: 1.111 MB / 1.405 GB, free: 1.23 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.69e-05/0.5247, allocations: 136.5 kB / 1.405 GB, free: 1.066 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000244/0.5249, allocations: 228 kB / 1.405 GB, free: 0.8359 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 3.76e-05/0.525, allocations: 41.7 kB / 1.405 GB, free: 0.7891 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 7.928e-05/0.5251, allocations: 121.1 kB / 1.405 GB, free: 0.6641 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 7.309e-05/0.5252, allocations: 79 kB / 1.405 GB, free: 0.5859 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.766e-05/0.5252, allocations: 8 kB / 1.405 GB, free: 0.5781 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.5253, allocations: 346.8 kB / 1.406 GB, free: 236 kB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.5918/1.117, allocations: 322.7 kB / 1.406 GB, free: 175.3 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006833/1.118, allocations: 423.7 kB / 1.406 GB, free: 175.3 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006171/1.119, allocations: 356.3 kB / 1.407 GB, free: 175.3 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/1.119, allocations: 2.312 kB / 1.407 GB, free: 175.3 MB / 0.9011 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001324/1.12, allocations: 0.8313 MB / 1.407 GB, free: 175.2 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/1.12, allocations: 7.266 kB / 1.407 GB, free: 175.2 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/1.12, allocations: 2.094 kB / 1.407 GB, free: 175.2 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.732e-05/1.12, allocations: 6.25 kB / 1.407 GB, free: 175.2 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001978/1.12, allocations: 45.69 kB / 1.408 GB, free: 175.2 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.418e-05/1.12, allocations: 7.484 kB / 1.408 GB, free: 175.2 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002521/1.12, allocations: 20.42 kB / 1.408 GB, free: 175.2 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003809/1.121, allocations: 213.5 kB / 1.408 GB, free: 175.2 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 45 ($PRE.dayTypMonThr.skipIDayIncrement,dayTypMonThr.skipIDayIncrement,$whenCondition4,dayTypMonThr.sampleTrigger,dayTypMonThr.y[1],dayTypMonThr.y[2],dayTypMonThr.y[3],$PRE.dayTypMonThr.iDay,dayTypMonThr.iDay,$PRE.dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.skipIDayIncrement,$whenCondition3,dayTypTwoWeeks.sampleTrigger,dayTypTwoWeeks.y[1],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[14],$PRE.dayTypTwoWeeks.iDay,dayTypTwoWeeks.iDay,$PRE.dayTypSat.skipIDayIncrement,dayTypSat.skipIDayIncrement,$whenCondition2,dayTypSat.sampleTrigger,dayTypSat.y[1],dayTypSat.y[2],$PRE.dayTypSat.iDay,dayTypSat.iDay,$PRE.dayTypMon.skipIDayIncrement,dayTypMon.skipIDayIncrement,$whenCondition1,dayTypMon.sampleTrigger,dayTypMon.y[1],dayTypMon.y[2],$PRE.dayTypMon.iDay,dayTypMon.iDay) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * 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.000259/1.121, allocations: 189.7 kB / 1.408 GB, free: 175.1 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.604e-05/1.121, allocations: 30.7 kB / 1.408 GB, free: 175.1 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.609e-05/1.121, allocations: 37.5 kB / 1.408 GB, free: 175.1 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.316e-06/1.121, allocations: 7.688 kB / 1.408 GB, free: 175.1 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/1.121, allocations: 2.953 kB / 1.408 GB, free: 175.1 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/1.121, allocations: 2.719 kB / 1.408 GB, free: 175.1 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002443/1.124, allocations: 1.71 MB / 1.41 GB, free: 174.6 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/1.124, allocations: 1.125 kB / 1.41 GB, free: 174.6 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.048e-05/1.124, allocations: 20.62 kB / 1.41 GB, free: 174.6 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.65e-06/1.124, allocations: 2.219 kB / 1.41 GB, free: 174.6 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.465e-05/1.124, allocations: 23.86 kB / 1.41 GB, free: 174.6 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/1.124, allocations: 6.125 kB / 1.41 GB, free: 174.6 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/1.124, allocations: 2.109 kB / 1.41 GB, free: 174.6 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001327/1.125, allocations: 1.148 MB / 1.411 GB, free: 174.2 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 5.979e-05/1.125, allocations: 103 kB / 1.411 GB, free: 174.1 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.1e-05/1.125, allocations: 8.625 kB / 1.411 GB, free: 174.1 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002356/1.126, allocations: 12.64 kB / 1.411 GB, free: 174.1 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/1.126, allocations: 50.73 kB / 1.411 GB, free: 174.1 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003485/1.126, allocations: 226.7 kB / 1.411 GB, free: 174.1 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0001708/1.126, allocations: 172 kB / 1.411 GB, free: 174 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.5e-07/1.126, allocations: 4 kB / 1.411 GB, free: 174 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0004827/1.127, allocations: 65.61 kB / 1.411 GB, free: 174 MB / 0.9011 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 37 (dayTypMon.sampleTrigger,$whenCondition1,dayTypMon.y[1],dayTypMon.y[2],dayTypMon.iDay,dayTypMon.skipIDayIncrement,dayTypSat.sampleTrigger,$whenCondition2,dayTypSat.y[1],dayTypSat.y[2],dayTypSat.iDay,dayTypSat.skipIDayIncrement,dayTypTwoWeeks.sampleTrigger,$whenCondition3,dayTypTwoWeeks.y[1],dayTypTwoWeeks.y[2],dayTypTwoWeeks.y[3],dayTypTwoWeeks.y[4],dayTypTwoWeeks.y[5],dayTypTwoWeeks.y[6],dayTypTwoWeeks.y[7],dayTypTwoWeeks.y[8],dayTypTwoWeeks.y[9],dayTypTwoWeeks.y[10],dayTypTwoWeeks.y[11],dayTypTwoWeeks.y[12],dayTypTwoWeeks.y[13],dayTypTwoWeeks.y[14],dayTypTwoWeeks.iDay,dayTypTwoWeeks.skipIDayIncrement,dayTypMonThr.sampleTrigger,$whenCondition4,dayTypMonThr.y[1],dayTypMonThr.y[2],dayTypMonThr.y[3],dayTypMonThr.iDay,dayTypMonThr.skipIDayIncrement) * Number of discrete states: 8 (dayTypMonThr.skipIDayIncrement,dayTypMonThr.iDay,dayTypTwoWeeks.skipIDayIncrement,dayTypTwoWeeks.iDay,dayTypSat.skipIDayIncrement,dayTypSat.iDay,dayTypMon.skipIDayIncrement,dayTypMon.iDay) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.001612/1.128, allocations: 1.935 MB / 1.413 GB, free: 172.8 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001201/1.13, allocations: 0.7393 MB / 1.414 GB, free: 172.8 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/1.13, allocations: 7.812 kB / 1.414 GB, free: 172.8 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0005917/1.13, allocations: 405.4 kB / 1.414 GB, free: 172.8 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001633/1.132, allocations: 404.1 kB / 1.415 GB, free: 172.8 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002204/1.134, allocations: 2.972 MB / 1.418 GB, free: 170.6 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002631/1.134, allocations: 0.7666 MB / 1.419 GB, free: 169.9 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0004101/1.135, allocations: 111.8 kB / 1.419 GB, free: 169.8 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001953/1.135, allocations: 116.9 kB / 1.419 GB, free: 169.8 MB / 0.9011 GB Notification: Performance of SimCode: time 7.91e-07/1.135, allocations: 3.094 kB / 1.419 GB, free: 169.8 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02853/1.164, allocations: 10.85 MB / 1.429 GB, free: 169.1 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001698/1.164, allocations: 196.6 kB / 1.43 GB, free: 168.8 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.138/3.301, allocations: 0 / 1.43 GB, free: 168.8 MB / 0.9011 GB (rm -f Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType_res.mat --tempDir=temp_Buildings_latest_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_DayType_fmu --startTime=-1.8144e+06 --stopTime=1.8144e+06 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_DayType.fmu > Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType_res.mat does not exist to compare? outputFormat=mat