Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.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.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType,fileNamePrefix="Buildings_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 2.391/2.391, 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.001438/0.001438, allocations: 171.3 kB / 498.1 MB, free: 5.734 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.802/1.802, allocations: 223.1 MB / 0.7948 GB, free: 18.82 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.0008781/0.000878, allocations: 94.75 kB / 0.9346 GB, free: 7.168 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004004/0.0004003, allocations: 11.66 kB / 1.084 GB, free: 212.6 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2799/0.2803, allocations: 142.4 MB / 1.223 GB, free: 89.46 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1975/0.4778, allocations: 149.5 MB / 1.369 GB, free: 3.785 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003719/0.4783, allocations: 75.95 kB / 1.369 GB, free: 3.711 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.06202/0.5404, allocations: 24.29 MB / 1.393 GB, free: 11.38 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.823e-06/0.5404, allocations: 0 / 1.393 GB, free: 11.38 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 1.86e-05/0.5404, allocations: 12 kB / 1.393 GB, free: 11.37 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.0009815/0.5414, allocations: 0.6432 MB / 1.393 GB, free: 10.65 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.5415, allocations: 12.03 kB / 1.393 GB, free: 10.64 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.063e-05/0.5415, allocations: 46.55 kB / 1.393 GB, free: 10.58 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.995e-05/0.5416, allocations: 27.67 kB / 1.393 GB, free: 10.55 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003449/0.542, allocations: 253.7 kB / 1.394 GB, free: 10.27 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.399e-05/0.542, allocations: 24.2 kB / 1.394 GB, free: 10.24 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.971e-05/0.542, allocations: 16 kB / 1.394 GB, free: 10.23 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007018/0.5428, allocations: 450.8 kB / 1.394 GB, free: 9.77 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.5428, allocations: 3.938 kB / 1.394 GB, free: 9.766 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.714e-05/0.5428, allocations: 11.98 kB / 1.394 GB, free: 9.754 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.5428, allocations: 4 kB / 1.394 GB, free: 9.75 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004158/0.5432, allocations: 323.8 kB / 1.394 GB, free: 9.434 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006364/0.5439, allocations: 0.5547 MB / 1.395 GB, free: 8.82 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001231/0.5451, allocations: 1.027 MB / 1.396 GB, free: 7.758 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 3.541e-05/0.5452, allocations: 12.14 kB / 1.396 GB, free: 7.746 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005833/0.5458, allocations: 466.5 kB / 1.396 GB, free: 7.266 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=37): time 1.763e-06/0.5458, allocations: 0 / 1.396 GB, free: 7.266 MB / 0.9011 GB Notification: Performance of matching and sorting (n=37): time 0.001506/0.5473, allocations: 1.112 MB / 1.398 GB, free: 6.148 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.043e-05/0.5474, allocations: 144.5 kB / 1.398 GB, free: 5.977 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002217/0.5476, allocations: 224.1 kB / 1.398 GB, free: 5.754 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 3.641e-05/0.5477, allocations: 33.7 kB / 1.398 GB, free: 5.715 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 8.9e-05/0.5478, allocations: 125.1 kB / 1.398 GB, free: 5.586 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 7.689e-05/0.5478, allocations: 79.05 kB / 1.398 GB, free: 5.508 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.687e-05/0.5479, allocations: 8 kB / 1.398 GB, free: 5.5 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001371/0.548, allocations: 346.7 kB / 1.398 GB, free: 5.152 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003926/0.5484, allocations: 328.7 kB / 1.399 GB, free: 4.832 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004508/0.5489, allocations: 426.4 kB / 1.399 GB, free: 4.379 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004403/0.5493, allocations: 362.6 kB / 1.4 GB, free: 4.027 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.5493, allocations: 0 / 1.4 GB, free: 4.027 MB / 0.9011 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001066/0.5504, allocations: 0.8327 MB / 1.4 GB, free: 3.188 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.5504, allocations: 11.94 kB / 1.4 GB, free: 3.176 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.5504, allocations: 0 / 1.4 GB, free: 3.176 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.099e-05/0.5505, allocations: 8.094 kB / 1.4 GB, free: 3.168 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001689/0.5506, allocations: 39.91 kB / 1.4 GB, free: 3.129 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/0.5507, allocations: 7.984 kB / 1.4 GB, free: 3.121 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002203/0.5509, allocations: 15.91 kB / 1.4 GB, free: 3.105 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002634/0.5512, allocations: 216.1 kB / 1.401 GB, free: 2.895 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.0002111/0.5514, allocations: 197.6 kB / 1.401 GB, free: 2.691 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.542e-05/0.5514, allocations: 27.72 kB / 1.401 GB, free: 2.664 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.677e-05/0.5515, allocations: 38.17 kB / 1.401 GB, free: 2.625 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.5515, allocations: 4 kB / 1.401 GB, free: 2.621 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.5515, allocations: 4 kB / 1.401 GB, free: 2.617 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.597e-06/0.5516, allocations: 8.266 kB / 1.401 GB, free: 2.609 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001993/0.5536, allocations: 1.695 MB / 1.403 GB, free: 0.8555 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.5536, allocations: 7.938 kB / 1.403 GB, free: 0.8477 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.465e-05/0.5536, allocations: 23.97 kB / 1.403 GB, free: 0.8242 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.5536, allocations: 0 / 1.403 GB, free: 0.8242 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.48e-05/0.5537, allocations: 19.97 kB / 1.403 GB, free: 0.8047 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.145e-06/0.5537, allocations: 4 kB / 1.403 GB, free: 0.8008 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.5537, allocations: 11.83 kB / 1.403 GB, free: 0.7891 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5706/1.124, allocations: 1.141 MB / 1.404 GB, free: 178.5 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 9.029e-05/1.124, allocations: 101.5 kB / 1.404 GB, free: 178.4 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.125e-05/1.125, allocations: 16.75 kB / 1.404 GB, free: 178.4 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002754/1.125, allocations: 7.422 kB / 1.404 GB, free: 178.4 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001217/1.125, allocations: 49.19 kB / 1.404 GB, free: 178.4 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003336/1.125, allocations: 228.1 kB / 1.404 GB, free: 178.4 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0001843/1.125, allocations: 169.8 kB / 1.404 GB, free: 178.3 MB / 0.9011 GB Notification: Performance of sort global known variables: time 3.91e-07/1.125, allocations: 0.6875 kB / 1.404 GB, free: 178.3 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0005623/1.126, allocations: 66.03 kB / 1.404 GB, free: 178.3 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.001449/1.127, allocations: 1.957 MB / 1.406 GB, free: 177.2 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001086/1.129, allocations: 0.7294 MB / 1.407 GB, free: 177.2 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/1.129, allocations: 0 / 1.407 GB, free: 177.2 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0005542/1.129, allocations: 401 kB / 1.407 GB, free: 177.2 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001585/1.131, allocations: 409.3 kB / 1.408 GB, free: 177.2 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002092/1.133, allocations: 2.979 MB / 1.411 GB, free: 175 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002365/1.133, allocations: 0.762 MB / 1.411 GB, free: 174.3 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0004174/1.134, allocations: 117.1 kB / 1.412 GB, free: 174.3 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001804/1.134, allocations: 113.9 kB / 1.412 GB, free: 174.3 MB / 0.9011 GB Notification: Performance of SimCode: time 8.42e-07/1.134, allocations: 1.375 kB / 1.412 GB, free: 174.3 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03125/1.165, allocations: 10.85 MB / 1.422 GB, free: 173.6 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001569/1.165, allocations: 184.8 kB / 1.422 GB, free: 173.3 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.112/3.277, allocations: 4.969 kB / 1.422 GB, free: 173.3 MB / 0.9011 GB (rm -f Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; mkfifo Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe ; head -c 1048576 < Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe >> ../files/Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType_res.mat --tempDir=temp_Buildings_9_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_DayType_fmu --startTime=-1.8144e+06 --stopTime=1.8144e+06 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Obsolete_Controls_OBC_CDL_Discrete_Examples_DayType.fmu > Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Discrete.Examples.DayType_res.mat does not exist to compare? outputFormat=mat