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.62/2.62, allocations: 390.5 MB / 398 MB, free: 10.95 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.001139/0.001139, allocations: 184.8 kB / 491.2 MB, free: 1.562 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.952/1.952, allocations: 221.5 MB / 0.7868 GB, free: 13.3 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.001064/0.001064, allocations: 91.84 kB / 0.9269 GB, free: 13.8 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.349e-05/3.391e-05, allocations: 0 / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4602/0.4603, allocations: 143 MB / 1.212 GB, free: 39.45 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.397/1.857, allocations: 149.5 MB / 1.358 GB, free: 17.29 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000306/1.858, allocations: 75.91 kB / 1.359 GB, free: 17.29 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.05748/1.915, allocations: 24.11 MB / 1.382 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.974e-06/1.915, allocations: 4 kB / 1.382 GB, free: 30.42 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.072e-05/1.915, allocations: 3.875 kB / 1.382 GB, free: 30.42 MB / 0.8386 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.001142/1.916, allocations: 0.6113 MB / 1.383 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.26e-05/1.917, allocations: 7.719 kB / 1.383 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001414/1.917, allocations: 37.7 kB / 1.383 GB, free: 29.8 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003601/1.917, allocations: 249.8 kB / 1.383 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.906e-05/1.917, allocations: 10.62 kB / 1.383 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.722e-05/1.917, allocations: 15.41 kB / 1.383 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003663/1.918, allocations: 303.8 kB / 1.383 GB, free: 29.51 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004625/1.918, allocations: 452.5 kB / 1.384 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/1.918, allocations: 0 / 1.384 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.286e-05/1.918, allocations: 4 kB / 1.384 GB, free: 29.35 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/1.918, allocations: 3.875 kB / 1.384 GB, free: 29.35 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006172/1.919, allocations: 0.5083 MB / 1.384 GB, free: 29.09 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009175/1.92, allocations: 1.003 MB / 1.385 GB, free: 28.85 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005574/1.92, allocations: 0.6396 MB / 1.386 GB, free: 28.73 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.413e-05/1.92, allocations: 18.72 kB / 1.386 GB, free: 28.72 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004808/1.921, allocations: 460.5 kB / 1.386 GB, free: 28.55 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=37): time 2.384e-06/1.921, allocations: 4 kB / 1.386 GB, free: 28.55 MB / 0.8386 GB Notification: Performance of matching and sorting (n=37): time 0.0008856/1.922, allocations: 0.7602 MB / 1.387 GB, free: 28.39 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.316e-05/1.922, allocations: 143.6 kB / 1.387 GB, free: 28.23 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002253/1.922, allocations: 213.9 kB / 1.387 GB, free: 28.11 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.92e-05/1.922, allocations: 25.7 kB / 1.387 GB, free: 28.08 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.428e-05/1.922, allocations: 128.4 kB / 1.388 GB, free: 27.98 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.078e-05/1.922, allocations: 75.78 kB / 1.388 GB, free: 27.94 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.673e-05/1.922, allocations: 0 / 1.388 GB, free: 27.94 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000142/1.922, allocations: 348.3 kB / 1.388 GB, free: 27.61 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003162/1.923, allocations: 320.5 kB / 1.388 GB, free: 27.57 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003638/1.923, allocations: 404 kB / 1.389 GB, free: 27.43 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003801/1.923, allocations: 350.8 kB / 1.389 GB, free: 27.37 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/1.923, allocations: 3.844 kB / 1.389 GB, free: 27.37 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008795/1.924, allocations: 0.7883 MB / 1.39 GB, free: 27.19 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.781e-05/1.924, allocations: 3.812 kB / 1.39 GB, free: 27.19 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.748e-05/1.924, allocations: 7.891 kB / 1.39 GB, free: 27.18 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.438e-05/1.924, allocations: 3.812 kB / 1.39 GB, free: 27.18 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002461/1.925, allocations: 45.06 kB / 1.39 GB, free: 27.17 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/1.925, allocations: 3.844 kB / 1.39 GB, free: 27.17 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002854/1.925, allocations: 15.73 kB / 1.39 GB, free: 27.16 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002374/1.925, allocations: 206.4 kB / 1.39 GB, free: 27.06 MB / 0.8386 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.000213/1.925, allocations: 152.3 kB / 1.39 GB, free: 26.93 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008475/1.926, allocations: 0.7596 MB / 1.391 GB, free: 26.77 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.356e-05/1.926, allocations: 27.16 kB / 1.391 GB, free: 26.75 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001001/1.926, allocations: 33.89 kB / 1.391 GB, free: 26.74 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/1.926, allocations: 7.812 kB / 1.391 GB, free: 26.73 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/1.927, allocations: 7.969 kB / 1.391 GB, free: 26.73 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/1.927, allocations: 0 / 1.391 GB, free: 26.73 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001618/1.928, allocations: 1.646 MB / 1.393 GB, free: 26 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/1.928, allocations: 4 kB / 1.393 GB, free: 25.99 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.026e-05/1.928, allocations: 26.94 kB / 1.393 GB, free: 25.98 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/1.928, allocations: 0 / 1.393 GB, free: 25.98 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.967e-05/1.928, allocations: 19.03 kB / 1.393 GB, free: 25.97 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/1.928, allocations: 7.781 kB / 1.393 GB, free: 25.97 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/1.928, allocations: 3.953 kB / 1.393 GB, free: 25.96 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008858/1.929, allocations: 1.122 MB / 1.394 GB, free: 25.43 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.74e-05/1.929, allocations: 100.6 kB / 1.394 GB, free: 25.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.881e-05/1.929, allocations: 3.906 kB / 1.394 GB, free: 25.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002343/1.93, allocations: 11.8 kB / 1.394 GB, free: 25.31 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/1.93, allocations: 49.62 kB / 1.394 GB, free: 25.29 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002229/1.93, allocations: 223.6 kB / 1.394 GB, free: 25.18 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001883/1.93, allocations: 161.7 kB / 1.394 GB, free: 25.09 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.51e-07/1.93, allocations: 0 / 1.394 GB, free: 25.09 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005601/1.931, allocations: 49.72 kB / 1.394 GB, free: 25.09 MB / 0.8386 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.001487/1.932, allocations: 1.915 MB / 1.396 GB, free: 23.8 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0007599/1.933, allocations: 0.7078 MB / 1.397 GB, free: 23.7 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/1.933, allocations: 0 / 1.397 GB, free: 23.7 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003733/1.933, allocations: 392.9 kB / 1.397 GB, free: 23.64 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001625/1.935, allocations: 415 kB / 1.398 GB, free: 23.49 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001451/1.936, allocations: 0.9057 MB / 1.398 GB, free: 23.18 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004423/1.937, allocations: 0.7663 MB / 1.399 GB, free: 22.44 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0003974/1.937, allocations: 120.2 kB / 1.399 GB, free: 22.39 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001645/1.937, allocations: 112.6 kB / 1.399 GB, free: 22.36 MB / 0.8386 GB Notification: Performance of SimCode: time 4.41e-07/1.937, allocations: 0 / 1.399 GB, free: 22.36 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03785/1.975, allocations: 10.26 MB / 1.409 GB, free: 13.46 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002052/1.976, allocations: 155.6 kB / 1.41 GB, free: 13.27 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.431/4.407, allocations: 3.938 kB / 1.41 GB, free: 13.27 MB / 0.8386 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