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.253/2.253, allocations: 390.3 MB / 402.8 MB, free: 6.676 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.00118/0.00118, allocations: 172.9 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.623/1.623, allocations: 221.3 MB / 0.7915 GB, free: 5.379 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.0009811/0.0009811, allocations: 103.7 kB / 0.9317 GB, free: 5.691 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.413e-05/4.442e-05, allocations: 0 / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3028/0.3029, allocations: 143 MB / 1.219 GB, free: 13.39 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.021/1.324, allocations: 150.2 MB / 1.366 GB, free: 3.809 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002343/1.324, allocations: 75.64 kB / 1.366 GB, free: 3.766 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.06064/1.385, allocations: 24.21 MB / 1.389 GB, free: 15.79 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.703e-06/1.385, allocations: 4 kB / 1.389 GB, free: 15.79 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 2.446e-05/1.385, allocations: 4 kB / 1.389 GB, free: 15.79 MB / 0.8542 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.00104/1.386, allocations: 0.6186 MB / 1.39 GB, free: 15.11 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 5.544e-05/1.386, allocations: 12.03 kB / 1.39 GB, free: 15.1 MB / 0.8542 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.786e-05/1.386, allocations: 45.73 kB / 1.39 GB, free: 15.05 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.23e-05/1.386, allocations: 31.58 kB / 1.39 GB, free: 15.02 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004136/1.387, allocations: 256.5 kB / 1.39 GB, free: 14.74 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.634e-05/1.387, allocations: 12.16 kB / 1.39 GB, free: 14.73 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.946e-05/1.387, allocations: 19.38 kB / 1.39 GB, free: 14.72 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006247/1.387, allocations: 452.4 kB / 1.391 GB, free: 14.34 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/1.387, allocations: 0 / 1.391 GB, free: 14.34 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.296e-05/1.387, allocations: 3.25 kB / 1.391 GB, free: 14.34 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/1.387, allocations: 4 kB / 1.391 GB, free: 14.34 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004044/1.388, allocations: 323.2 kB / 1.391 GB, free: 14.07 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006897/1.389, allocations: 0.5585 MB / 1.392 GB, free: 13.54 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001192/1.39, allocations: 1.024 MB / 1.393 GB, free: 12.64 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007072/1.39, allocations: 0.6519 MB / 1.393 GB, free: 12.09 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 3.491e-05/1.39, allocations: 4 kB / 1.393 GB, free: 12.09 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005794/1.391, allocations: 475.6 kB / 1.394 GB, free: 11.67 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=37): time 2.134e-06/1.391, allocations: 0 / 1.394 GB, free: 11.67 MB / 0.8542 GB Notification: Performance of matching and sorting (n=37): time 0.001107/1.392, allocations: 0.787 MB / 1.394 GB, free: 11 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/1.392, allocations: 144.1 kB / 1.395 GB, free: 10.84 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002608/1.393, allocations: 221.9 kB / 1.395 GB, free: 10.64 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 4.426e-05/1.393, allocations: 40.45 kB / 1.395 GB, free: 10.61 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 8.478e-05/1.393, allocations: 126.1 kB / 1.395 GB, free: 10.51 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001001/1.393, allocations: 79.88 kB / 1.395 GB, free: 10.44 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.557e-05/1.393, allocations: 7.875 kB / 1.395 GB, free: 10.44 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001583/1.393, allocations: 341.4 kB / 1.395 GB, free: 10.11 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004075/1.393, allocations: 329.2 kB / 1.396 GB, free: 9.848 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004512/1.394, allocations: 416.8 kB / 1.396 GB, free: 9.473 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000453/1.394, allocations: 362.9 kB / 1.396 GB, free: 9.184 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.01e-06/1.394, allocations: 8 kB / 1.396 GB, free: 9.176 MB / 0.8542 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001026/1.395, allocations: 0.822 MB / 1.397 GB, free: 8.48 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/1.395, allocations: 7.938 kB / 1.397 GB, free: 8.473 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/1.395, allocations: 4 kB / 1.397 GB, free: 8.469 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/1.395, allocations: 4 kB / 1.397 GB, free: 8.465 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001681/1.396, allocations: 43.16 kB / 1.397 GB, free: 8.426 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.309e-05/1.396, allocations: 11.98 kB / 1.397 GB, free: 8.414 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002318/1.396, allocations: 18.5 kB / 1.397 GB, free: 8.402 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002647/1.396, allocations: 203.4 kB / 1.397 GB, free: 8.207 MB / 0.8542 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 () * 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.0001593/1.396, allocations: 155.4 kB / 1.398 GB, free: 8.062 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.435e-05/1.396, allocations: 35.56 kB / 1.398 GB, free: 8.031 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.381e-05/1.397, allocations: 38.69 kB / 1.398 GB, free: 8.008 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/1.397, allocations: 4 kB / 1.398 GB, free: 8.004 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/1.397, allocations: 3.938 kB / 1.398 GB, free: 8 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/1.397, allocations: 7.984 kB / 1.398 GB, free: 7.992 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002023/1.399, allocations: 1.697 MB / 1.399 GB, free: 6.453 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/1.399, allocations: 0 / 1.399 GB, free: 6.453 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.296e-05/1.399, allocations: 33.91 kB / 1.399 GB, free: 6.426 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/1.399, allocations: 0 / 1.399 GB, free: 6.426 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.168e-05/1.399, allocations: 19.72 kB / 1.399 GB, free: 6.41 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/1.399, allocations: 4 kB / 1.399 GB, free: 6.406 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/1.399, allocations: 3.953 kB / 1.399 GB, free: 6.402 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001113/1.4, allocations: 1.143 MB / 1.401 GB, free: 5.352 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 8.542e-05/1.4, allocations: 108.6 kB / 1.401 GB, free: 5.23 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.178e-05/1.4, allocations: 7.5 kB / 1.401 GB, free: 5.227 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002226/1.4, allocations: 2.875 kB / 1.401 GB, free: 5.227 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/1.4, allocations: 57.62 kB / 1.401 GB, free: 5.184 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002546/1.401, allocations: 223 kB / 1.401 GB, free: 4.969 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001709/1.401, allocations: 169.1 kB / 1.401 GB, free: 4.824 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.61e-07/1.401, allocations: 0 / 1.401 GB, free: 4.824 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0004787/1.401, allocations: 65.25 kB / 1.401 GB, free: 4.77 MB / 0.8542 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) * 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.001627/1.403, allocations: 1.937 MB / 1.403 GB, free: 2.93 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0009073/1.404, allocations: 0.7275 MB / 1.404 GB, free: 2.324 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/1.404, allocations: 0 / 1.404 GB, free: 2.324 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0005062/1.404, allocations: 403.9 kB / 1.404 GB, free: 1.996 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001616/1.406, allocations: 411.3 kB / 1.405 GB, free: 1.637 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001643/1.408, allocations: 0.9357 MB / 1.405 GB, free: 0.7891 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004533/1.408, allocations: 0.7601 MB / 1.406 GB, free: 8 kB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0004507/1.409, allocations: 118.8 kB / 1.406 GB, free: 15.89 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001937/1.409, allocations: 121 kB / 1.406 GB, free: 15.82 MB / 0.8698 GB Notification: Performance of SimCode: time 9.31e-07/1.409, allocations: 0 / 1.406 GB, free: 15.82 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02671/1.435, allocations: 10.92 MB / 1.417 GB, free: 5.121 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001876/1.436, allocations: 167.3 kB / 1.417 GB, free: 4.902 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.038/3.474, allocations: 11.88 kB / 1.417 GB, free: 4.891 MB / 0.8698 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