Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.Sources.Examples.DayType.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_9_Buildings_Controls_Sources_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Sources.Examples.DayType,fileNamePrefix="Buildings_9_Buildings_Controls_Sources_Examples_DayType",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.417/2.417, allocations: 390.3 MB / 405.3 MB, free: 13.49 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.001081/0.001081, allocations: 185.1 kB / 498.1 MB, free: 5.723 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.503/1.503, allocations: 223.2 MB / 0.7948 GB, free: 17.9 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.000917/0.000917, allocations: 98.5 kB / 0.9346 GB, free: 6.172 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003912/0.0003912, allocations: 10.27 kB / 1.084 GB, free: 221.6 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.297/0.2974, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1848/0.4823, allocations: 149.9 MB / 1.369 GB, free: 12.04 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002433/0.4826, allocations: 83.88 kB / 1.369 GB, free: 11.95 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.04762/0.5302, allocations: 19 MB / 1.388 GB, free: 8.926 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.883e-06/0.5303, allocations: 3.938 kB / 1.388 GB, free: 8.922 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.756e-05/0.5303, allocations: 4 kB / 1.388 GB, free: 8.918 MB / 0.8855 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.001005/0.5313, allocations: 0.6369 MB / 1.389 GB, free: 8.207 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.5314, allocations: 8.031 kB / 1.389 GB, free: 8.199 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.227e-05/0.5314, allocations: 46.55 kB / 1.389 GB, free: 8.145 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.276e-05/0.5315, allocations: 31.67 kB / 1.389 GB, free: 8.113 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003548/0.5319, allocations: 253.7 kB / 1.389 GB, free: 7.828 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.818e-05/0.5319, allocations: 20.27 kB / 1.389 GB, free: 7.809 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.874e-05/0.532, allocations: 16 kB / 1.389 GB, free: 7.793 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006122/0.5326, allocations: 458.7 kB / 1.389 GB, free: 7.328 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.5326, allocations: 0 / 1.389 GB, free: 7.328 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.44e-05/0.5326, allocations: 4 kB / 1.389 GB, free: 7.324 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.794e-06/0.5326, allocations: 4 kB / 1.389 GB, free: 7.32 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004121/0.5331, allocations: 327.7 kB / 1.39 GB, free: 7 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006614/0.5337, allocations: 0.5547 MB / 1.39 GB, free: 6.387 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001195/0.5349, allocations: 1.036 MB / 1.391 GB, free: 5.316 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.341e-05/0.535, allocations: 8.031 kB / 1.391 GB, free: 5.309 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005669/0.5355, allocations: 470.7 kB / 1.392 GB, free: 4.824 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=37): time 2.204e-06/0.5356, allocations: 0 / 1.392 GB, free: 4.824 MB / 0.8855 GB Notification: Performance of matching and sorting (n=37): time 0.001432/0.537, allocations: 1.116 MB / 1.393 GB, free: 3.703 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.767e-05/0.5371, allocations: 140.4 kB / 1.393 GB, free: 3.535 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002193/0.5373, allocations: 224.1 kB / 1.393 GB, free: 3.312 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 4.15e-05/0.5374, allocations: 37.7 kB / 1.393 GB, free: 3.27 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 8.027e-05/0.5375, allocations: 125.1 kB / 1.393 GB, free: 3.141 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 7.111e-05/0.5375, allocations: 79 kB / 1.393 GB, free: 3.062 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.637e-05/0.5376, allocations: 4 kB / 1.393 GB, free: 3.059 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001749/0.5377, allocations: 350.8 kB / 1.394 GB, free: 2.707 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003774/0.5381, allocations: 328.7 kB / 1.394 GB, free: 2.383 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004357/0.5386, allocations: 418.5 kB / 1.394 GB, free: 1.938 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004458/0.539, allocations: 363.8 kB / 1.395 GB, free: 1.582 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.539, allocations: 0 / 1.395 GB, free: 1.582 MB / 0.8855 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009937/0.54, allocations: 0.8328 MB / 1.396 GB, free: 0.7422 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.54, allocations: 4 kB / 1.396 GB, free: 0.7383 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.5401, allocations: 4 kB / 1.396 GB, free: 0.7344 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.5401, allocations: 4 kB / 1.396 GB, free: 0.7305 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001715/0.5403, allocations: 43.84 kB / 1.396 GB, free: 0.6875 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.588e-05/0.5403, allocations: 7.984 kB / 1.396 GB, free: 0.6797 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002184/0.5405, allocations: 23.97 kB / 1.396 GB, free: 0.6562 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002491/0.5408, allocations: 208.1 kB / 1.396 GB, free: 464 kB / 0.8855 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.0001982/0.541, allocations: 201.9 kB / 1.396 GB, free: 252 kB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.266e-05/0.541, allocations: 23.72 kB / 1.396 GB, free: 228 kB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.817e-05/0.5411, allocations: 42.11 kB / 1.396 GB, free: 184 kB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.5411, allocations: 7.938 kB / 1.396 GB, free: 176 kB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.5411, allocations: 7.938 kB / 1.396 GB, free: 168 kB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.5411, allocations: 3.984 kB / 1.396 GB, free: 164 kB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001964/0.5431, allocations: 1.696 MB / 1.398 GB, free: 14.41 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.5431, allocations: 4 kB / 1.398 GB, free: 14.4 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.329e-05/0.5432, allocations: 23.91 kB / 1.398 GB, free: 14.38 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.5432, allocations: 4 kB / 1.398 GB, free: 14.38 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.144e-05/0.5432, allocations: 23.97 kB / 1.398 GB, free: 14.35 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.5432, allocations: 0 / 1.398 GB, free: 14.35 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.915e-06/0.5433, allocations: 7.953 kB / 1.398 GB, free: 14.34 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001063/0.5443, allocations: 1.157 MB / 1.399 GB, free: 13.15 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 6.336e-05/0.5444, allocations: 100.8 kB / 1.399 GB, free: 13.03 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.904e-05/0.5444, allocations: 12.12 kB / 1.399 GB, free: 13.02 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002191/0.5447, allocations: 4 kB / 1.399 GB, free: 13.02 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.558e-05/0.5448, allocations: 51.94 kB / 1.399 GB, free: 12.96 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002325/0.545, allocations: 219.5 kB / 1.399 GB, free: 12.75 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.000147/0.5452, allocations: 176.5 kB / 1.4 GB, free: 12.58 MB / 0.9011 GB Notification: Performance of sort global known variables: time 2.3e-07/0.5452, allocations: 0 / 1.4 GB, free: 12.58 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0004324/0.5456, allocations: 64 kB / 1.4 GB, free: 12.52 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.001484/0.5471, allocations: 1.95 MB / 1.401 GB, free: 10.53 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0009065/0.548, allocations: 0.7305 MB / 1.402 GB, free: 9.801 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.548, allocations: 0 / 1.402 GB, free: 9.801 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.000481/0.5485, allocations: 403.7 kB / 1.403 GB, free: 9.406 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001386/0.5499, allocations: 314.9 kB / 1.403 GB, free: 9.109 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002734/0.5527, allocations: 2.978 MB / 1.406 GB, free: 6.016 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004488/0.5531, allocations: 0.7647 MB / 1.407 GB, free: 5.227 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.000301/0.5534, allocations: 94.92 kB / 1.407 GB, free: 5.133 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000229/0.5537, allocations: 119.3 kB / 1.407 GB, free: 5.016 MB / 0.9011 GB Notification: Performance of SimCode: time 2.11e-07/0.5537, allocations: 0 / 1.407 GB, free: 5.016 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02403/0.5777, allocations: 10.33 MB / 1.417 GB, free: 10.89 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001655/0.5779, allocations: 180.9 kB / 1.417 GB, free: 10.64 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.032/2.61, allocations: 0 / 1.417 GB, free: 10.64 MB / 0.9167 GB (rm -f Buildings_9_Buildings.Controls.Sources.Examples.DayType.pipe ; mkfifo Buildings_9_Buildings.Controls.Sources.Examples.DayType.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Sources.Examples.DayType.pipe >> ../files/Buildings_9_Buildings.Controls.Sources.Examples.DayType.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.Sources.Examples.DayType_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_Sources_Examples_DayType_fmu --startTime=-1.8144e+06 --stopTime=1.8144e+06 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_Sources_Examples_DayType.fmu > Buildings_9_Buildings.Controls.Sources.Examples.DayType.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.Sources.Examples.DayType_res.mat does not exist to compare? outputFormat=mat