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.361/2.361, allocations: 393.5 MB / 408.4 MB, free: 11 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.001064/0.001064, allocations: 182.9 kB / 0.4902 GB, free: 2.242 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.487/1.487, allocations: 223.1 MB / 0.7992 GB, free: 14.79 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.0009506/0.0009506, allocations: 101 kB / 0.9396 GB, free: 1.953 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003494/0.0003494, allocations: 10.81 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2783/0.2787, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1772/0.4559, allocations: 150.7 MB / 1.376 GB, free: 2.84 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002681/0.4562, allocations: 75.95 kB / 1.376 GB, free: 2.766 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.04883/0.5051, allocations: 19.01 MB / 1.395 GB, free: 15.73 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.993e-06/0.5051, allocations: 4 kB / 1.395 GB, free: 15.72 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 1.497e-05/0.5052, allocations: 4 kB / 1.395 GB, free: 15.72 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.000912/0.5061, allocations: 0.6316 MB / 1.396 GB, free: 15.01 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.985e-05/0.5061, allocations: 12.56 kB / 1.396 GB, free: 15 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.599e-05/0.5062, allocations: 46.55 kB / 1.396 GB, free: 14.95 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.973e-05/0.5063, allocations: 31.58 kB / 1.396 GB, free: 14.91 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003206/0.5066, allocations: 249.7 kB / 1.396 GB, free: 14.63 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.001e-05/0.5066, allocations: 12.28 kB / 1.396 GB, free: 14.62 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.59e-05/0.5067, allocations: 16 kB / 1.396 GB, free: 14.6 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005578/0.5072, allocations: 454.8 kB / 1.396 GB, free: 14.14 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.5073, allocations: 3.938 kB / 1.396 GB, free: 14.14 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.231e-05/0.5073, allocations: 12 kB / 1.396 GB, free: 14.12 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.483e-06/0.5073, allocations: 4 kB / 1.396 GB, free: 14.12 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003845/0.5077, allocations: 323.7 kB / 1.397 GB, free: 13.8 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000595/0.5083, allocations: 0.5586 MB / 1.397 GB, free: 13.19 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001096/0.5094, allocations: 1.029 MB / 1.398 GB, free: 12.12 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 3.229e-05/0.5095, allocations: 4.031 kB / 1.398 GB, free: 12.12 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005469/0.51, allocations: 490.1 kB / 1.399 GB, free: 11.61 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=37): time 1.553e-06/0.51, allocations: 0 / 1.399 GB, free: 11.61 MB / 0.9011 GB Notification: Performance of matching and sorting (n=37): time 0.001432/0.5115, allocations: 1.104 MB / 1.4 GB, free: 10.5 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.675e-05/0.5115, allocations: 140.5 kB / 1.4 GB, free: 10.34 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002445/0.5118, allocations: 228 kB / 1.4 GB, free: 10.11 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 4.196e-05/0.5119, allocations: 37.7 kB / 1.4 GB, free: 10.06 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 8.337e-05/0.5119, allocations: 121.1 kB / 1.4 GB, free: 9.938 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 7.605e-05/0.512, allocations: 79.05 kB / 1.4 GB, free: 9.859 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.743e-05/0.5121, allocations: 15.94 kB / 1.4 GB, free: 9.844 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001307/0.5122, allocations: 346.7 kB / 1.401 GB, free: 9.496 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003817/0.5126, allocations: 336.6 kB / 1.401 GB, free: 9.168 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004248/0.513, allocations: 418.5 kB / 1.402 GB, free: 8.727 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000419/0.5134, allocations: 355.8 kB / 1.402 GB, free: 8.379 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.5134, allocations: 0 / 1.402 GB, free: 8.379 MB / 0.9011 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009593/0.5144, allocations: 0.832 MB / 1.403 GB, free: 7.543 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.5144, allocations: 8 kB / 1.403 GB, free: 7.535 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.5145, allocations: 3.984 kB / 1.403 GB, free: 7.531 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-05/0.5145, allocations: 8 kB / 1.403 GB, free: 7.523 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001606/0.5146, allocations: 43.89 kB / 1.403 GB, free: 7.48 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.533e-05/0.5147, allocations: 8 kB / 1.403 GB, free: 7.473 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002073/0.5149, allocations: 8 kB / 1.403 GB, free: 7.465 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002475/0.5151, allocations: 216.2 kB / 1.403 GB, free: 7.254 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.000196/0.5153, allocations: 197.6 kB / 1.403 GB, free: 7.051 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.395e-05/0.5154, allocations: 31.62 kB / 1.403 GB, free: 7.02 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.589e-05/0.5155, allocations: 38.17 kB / 1.403 GB, free: 6.977 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.5155, allocations: 4 kB / 1.403 GB, free: 6.973 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.5155, allocations: 0 / 1.403 GB, free: 6.973 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.5155, allocations: 4 kB / 1.403 GB, free: 6.969 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001859/0.5174, allocations: 1.704 MB / 1.405 GB, free: 5.207 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.5174, allocations: 3.938 kB / 1.405 GB, free: 5.203 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.011e-05/0.5174, allocations: 23.97 kB / 1.405 GB, free: 5.18 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.5175, allocations: 0 / 1.405 GB, free: 5.18 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.548e-05/0.5175, allocations: 19.97 kB / 1.405 GB, free: 5.16 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.691e-06/0.5175, allocations: 7.938 kB / 1.405 GB, free: 5.152 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.5175, allocations: 7.953 kB / 1.405 GB, free: 5.145 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009972/0.5185, allocations: 1.138 MB / 1.406 GB, free: 3.969 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 5.412e-05/0.5186, allocations: 100.7 kB / 1.406 GB, free: 3.852 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.734e-05/0.5186, allocations: 11.98 kB / 1.406 GB, free: 3.84 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000221/0.5189, allocations: 15.98 kB / 1.406 GB, free: 3.824 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.274e-05/0.519, allocations: 51.88 kB / 1.406 GB, free: 3.773 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002264/0.5192, allocations: 223.7 kB / 1.406 GB, free: 3.555 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0001302/0.5193, allocations: 168.5 kB / 1.407 GB, free: 3.387 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5193, allocations: 0 / 1.407 GB, free: 3.387 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0004521/0.5198, allocations: 75.92 kB / 1.407 GB, free: 3.312 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.001366/0.5212, allocations: 1.929 MB / 1.409 GB, free: 1.344 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0008594/0.522, allocations: 0.7337 MB / 1.409 GB, free: 0.6094 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.5221, allocations: 4.25 kB / 1.409 GB, free: 0.6055 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0004609/0.5225, allocations: 412.2 kB / 1.41 GB, free: 208 kB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001295/0.5238, allocations: 318.8 kB / 1.41 GB, free: 15.9 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002069/0.5259, allocations: 2.972 MB / 1.413 GB, free: 12.82 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003087/0.5262, allocations: 0.7686 MB / 1.414 GB, free: 12.03 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0002561/0.5265, allocations: 98.91 kB / 1.414 GB, free: 11.93 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00016/0.5267, allocations: 119.3 kB / 1.414 GB, free: 11.81 MB / 0.9167 GB Notification: Performance of SimCode: time 3.5e-07/0.5267, allocations: 0 / 1.414 GB, free: 11.81 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02069/0.5474, allocations: 10.32 MB / 1.424 GB, free: 1.703 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001904/0.5476, allocations: 182.2 kB / 1.424 GB, free: 1.457 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.084/2.632, allocations: 3.938 kB / 1.424 GB, free: 1.453 MB / 0.9167 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