Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Sources.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.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_latest_Buildings_Controls_Sources_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_latest_Buildings_Controls_Sources_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.37/2.37, allocations: 390.3 MB / 402.8 MB, free: 6.707 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.001063/0.001063, allocations: 180.8 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.557/1.557, allocations: 221.3 MB / 0.7915 GB, free: 5.461 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.001191/0.001191, allocations: 91.89 kB / 0.9317 GB, free: 5.781 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.234e-05/3.246e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2904/0.2905, allocations: 143 MB / 1.219 GB, free: 13.44 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.014/1.304, allocations: 150.6 MB / 1.366 GB, free: 3.359 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002443/1.305, allocations: 68.84 kB / 1.366 GB, free: 3.324 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04885/1.354, allocations: 18.95 MB / 1.385 GB, free: 3.715 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.693e-06/1.354, allocations: 0 / 1.385 GB, free: 3.715 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.65e-05/1.354, allocations: 7.938 kB / 1.385 GB, free: 3.707 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.0008683/1.355, allocations: 0.5937 MB / 1.385 GB, free: 3.055 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/1.355, allocations: 12.03 kB / 1.385 GB, free: 3.043 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.452e-05/1.355, allocations: 48.92 kB / 1.385 GB, free: 2.996 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.208e-05/1.355, allocations: 31.58 kB / 1.385 GB, free: 2.965 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003321/1.355, allocations: 250.2 kB / 1.385 GB, free: 2.691 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.844e-05/1.355, allocations: 12.22 kB / 1.385 GB, free: 2.684 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.067e-05/1.355, allocations: 22.86 kB / 1.385 GB, free: 2.668 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005514/1.356, allocations: 449.2 kB / 1.386 GB, free: 2.285 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-06/1.356, allocations: 0 / 1.386 GB, free: 2.285 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.292e-05/1.356, allocations: 7.109 kB / 1.386 GB, free: 2.281 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/1.356, allocations: 4 kB / 1.386 GB, free: 2.277 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003969/1.356, allocations: 325.7 kB / 1.386 GB, free: 2.016 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006787/1.357, allocations: 0.5554 MB / 1.387 GB, free: 1.48 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001169/1.358, allocations: 1.02 MB / 1.388 GB, free: 0.5859 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007189/1.359, allocations: 0.656 MB / 1.388 GB, free: 36 kB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.32e-05/1.359, allocations: 4 kB / 1.388 GB, free: 32 kB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005748/1.359, allocations: 476.2 kB / 1.389 GB, free: 15.62 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=37): time 1.503e-06/1.359, allocations: 0 / 1.389 GB, free: 15.62 MB / 0.8542 GB Notification: Performance of matching and sorting (n=37): time 0.001023/1.361, allocations: 0.7923 MB / 1.39 GB, free: 14.95 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.801e-05/1.361, allocations: 140.5 kB / 1.39 GB, free: 14.78 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002615/1.361, allocations: 233 kB / 1.39 GB, free: 14.58 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 4.939e-05/1.361, allocations: 37.45 kB / 1.39 GB, free: 14.54 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 6.77e-05/1.361, allocations: 117.7 kB / 1.39 GB, free: 14.45 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 7.518e-05/1.361, allocations: 80.88 kB / 1.39 GB, free: 14.38 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.545e-05/1.361, allocations: 7 kB / 1.39 GB, free: 14.38 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001325/1.361, allocations: 348.2 kB / 1.391 GB, free: 14.05 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003474/1.362, allocations: 321.4 kB / 1.391 GB, free: 13.79 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000401/1.362, allocations: 420.9 kB / 1.391 GB, free: 13.41 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004087/1.362, allocations: 361.4 kB / 1.392 GB, free: 13.12 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/1.362, allocations: 0 / 1.392 GB, free: 13.12 MB / 0.8542 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009515/1.363, allocations: 0.824 MB / 1.392 GB, free: 12.43 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/1.363, allocations: 4 kB / 1.392 GB, free: 12.42 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.407e-06/1.363, allocations: 4.281 kB / 1.392 GB, free: 12.42 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/1.363, allocations: 4 kB / 1.392 GB, free: 12.41 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001696/1.364, allocations: 47.33 kB / 1.392 GB, free: 12.37 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.11e-05/1.364, allocations: 4 kB / 1.392 GB, free: 12.37 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002161/1.364, allocations: 22.44 kB / 1.392 GB, free: 12.35 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002589/1.364, allocations: 223.3 kB / 1.393 GB, free: 12.14 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.0001356/1.364, allocations: 150.9 kB / 1.393 GB, free: 12 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.589e-05/1.364, allocations: 35.61 kB / 1.393 GB, free: 11.96 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.734e-05/1.364, allocations: 31.47 kB / 1.393 GB, free: 11.95 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/1.364, allocations: 4 kB / 1.393 GB, free: 11.95 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/1.364, allocations: 0 / 1.393 GB, free: 11.95 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/1.364, allocations: 3.984 kB / 1.393 GB, free: 11.94 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001871/1.366, allocations: 1.706 MB / 1.395 GB, free: 10.39 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/1.366, allocations: 0 / 1.395 GB, free: 10.39 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.594e-05/1.366, allocations: 27.16 kB / 1.395 GB, free: 10.37 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/1.366, allocations: 0 / 1.395 GB, free: 10.37 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.722e-05/1.366, allocations: 15.92 kB / 1.395 GB, free: 10.36 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/1.366, allocations: 8 kB / 1.395 GB, free: 10.35 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/1.366, allocations: 7.938 kB / 1.395 GB, free: 10.34 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001033/1.368, allocations: 1.147 MB / 1.396 GB, free: 9.293 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 6.748e-05/1.368, allocations: 100.7 kB / 1.396 GB, free: 9.176 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.851e-05/1.368, allocations: 7.312 kB / 1.396 GB, free: 9.172 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002212/1.368, allocations: 10.67 kB / 1.396 GB, free: 9.168 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.441e-05/1.368, allocations: 47.44 kB / 1.396 GB, free: 9.133 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002489/1.368, allocations: 231.2 kB / 1.396 GB, free: 8.91 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.000157/1.368, allocations: 168 kB / 1.396 GB, free: 8.766 MB / 0.8542 GB Notification: Performance of sort global known variables: time 3.51e-07/1.368, allocations: 4 kB / 1.396 GB, free: 8.762 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0004395/1.369, allocations: 64.94 kB / 1.396 GB, free: 8.711 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.001555/1.37, allocations: 1.928 MB / 1.398 GB, free: 6.875 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0009151/1.371, allocations: 0.732 MB / 1.399 GB, free: 6.266 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/1.371, allocations: 8.188 kB / 1.399 GB, free: 6.258 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0005014/1.372, allocations: 407.5 kB / 1.399 GB, free: 5.926 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001455/1.373, allocations: 321.8 kB / 1.4 GB, free: 5.652 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001441/1.375, allocations: 0.9239 MB / 1.401 GB, free: 4.816 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003337/1.375, allocations: 0.7559 MB / 1.401 GB, free: 4.039 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0002606/1.375, allocations: 106.8 kB / 1.401 GB, free: 3.934 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001674/1.376, allocations: 120.6 kB / 1.402 GB, free: 3.867 MB / 0.8542 GB Notification: Performance of SimCode: time 5.41e-07/1.376, allocations: 0 / 1.402 GB, free: 3.867 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02448/1.4, allocations: 10.38 MB / 1.412 GB, free: 9.703 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002095/1.4, allocations: 157.1 kB / 1.412 GB, free: 9.473 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.118/3.518, allocations: 3.125 kB / 1.412 GB, free: 9.473 MB / 0.8698 GB (rm -f Buildings_latest_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_latest_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_latest_Buildings.Controls.Sources.Examples.DayType.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.Sources.Examples.DayType_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_Sources_Examples_DayType_fmu --startTime=-1.8144e+06 --stopTime=1.8144e+06 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_Sources_Examples_DayType.fmu > Buildings_latest_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.Sources.Examples.DayType_res.mat does not exist to compare? outputFormat=mat