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.691/2.691, allocations: 390.5 MB / 398 MB, free: 10.91 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.001161/0.001161, allocations: 180.9 kB / 491.2 MB, free: 1.566 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.555/1.555, allocations: 221.5 MB / 0.7868 GB, free: 13.23 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.001034/0.001034, allocations: 95.52 kB / 0.9269 GB, free: 13.74 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.763e-05/1.765e-05, allocations: 0 / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2945/0.2946, allocations: 143 MB / 1.212 GB, free: 39.4 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.926/1.221, allocations: 150 MB / 1.359 GB, free: 17.33 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002257/1.221, allocations: 72.27 kB / 1.359 GB, free: 17.32 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04168/1.263, allocations: 18.85 MB / 1.377 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.293e-06/1.263, allocations: 0 / 1.377 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.703e-05/1.263, allocations: 11.91 kB / 1.377 GB, free: 31.87 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.0007727/1.263, allocations: 0.5877 MB / 1.378 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/1.263, allocations: 11.5 kB / 1.378 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.538e-05/1.264, allocations: 33.61 kB / 1.378 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002605/1.264, allocations: 248.8 kB / 1.378 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.342e-05/1.264, allocations: 11 kB / 1.378 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.535e-05/1.264, allocations: 11.38 kB / 1.378 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003186/1.264, allocations: 311.8 kB / 1.379 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004071/1.265, allocations: 442.6 kB / 1.379 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/1.265, allocations: 0 / 1.379 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.111e-05/1.265, allocations: 3.938 kB / 1.379 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/1.265, allocations: 7.844 kB / 1.379 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004897/1.265, allocations: 0.512 MB / 1.379 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009371/1.266, allocations: 0.9971 MB / 1.38 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005841/1.267, allocations: 0.6464 MB / 1.381 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.347e-05/1.267, allocations: 7.75 kB / 1.381 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004374/1.267, allocations: 467.2 kB / 1.381 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=37): time 3.036e-06/1.267, allocations: 5.125 kB / 1.381 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of matching and sorting (n=37): time 0.0008504/1.268, allocations: 0.762 MB / 1.382 GB, free: 30.28 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.658e-05/1.268, allocations: 132.4 kB / 1.382 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002002/1.268, allocations: 228.7 kB / 1.383 GB, free: 29.99 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.916e-05/1.268, allocations: 33.11 kB / 1.383 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.989e-05/1.269, allocations: 119.7 kB / 1.383 GB, free: 29.87 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.57e-05/1.269, allocations: 76.28 kB / 1.383 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.485e-05/1.269, allocations: 0 / 1.383 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001547/1.269, allocations: 344 kB / 1.383 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002811/1.269, allocations: 319.9 kB / 1.383 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003344/1.269, allocations: 412.3 kB / 1.384 GB, free: 29.3 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003466/1.27, allocations: 346.8 kB / 1.384 GB, free: 29.25 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/1.27, allocations: 7.781 kB / 1.384 GB, free: 29.24 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.000793/1.271, allocations: 0.7846 MB / 1.385 GB, free: 29.07 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.497e-05/1.271, allocations: 4.812 kB / 1.385 GB, free: 29.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/1.271, allocations: 3.844 kB / 1.385 GB, free: 29.07 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.132e-05/1.271, allocations: 3.844 kB / 1.385 GB, free: 29.07 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001835/1.271, allocations: 46.55 kB / 1.385 GB, free: 29.05 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/1.271, allocations: 3.844 kB / 1.385 GB, free: 29.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002107/1.271, allocations: 11.62 kB / 1.385 GB, free: 29.04 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002381/1.271, allocations: 221.5 kB / 1.385 GB, free: 28.93 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.0001577/1.271, allocations: 149 kB / 1.385 GB, free: 28.8 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007291/1.272, allocations: 0.7689 MB / 1.386 GB, free: 28.63 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.251e-05/1.272, allocations: 27.22 kB / 1.386 GB, free: 28.62 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.326e-05/1.272, allocations: 35.58 kB / 1.386 GB, free: 28.61 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/1.272, allocations: 3.812 kB / 1.386 GB, free: 28.61 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/1.272, allocations: 4 kB / 1.386 GB, free: 28.6 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/1.272, allocations: 0 / 1.386 GB, free: 28.6 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001476/1.274, allocations: 1.642 MB / 1.388 GB, free: 27.87 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/1.274, allocations: 4 kB / 1.388 GB, free: 27.87 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.493e-05/1.274, allocations: 27.31 kB / 1.388 GB, free: 27.86 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/1.274, allocations: 3.688 kB / 1.388 GB, free: 27.86 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.733e-05/1.274, allocations: 14.58 kB / 1.388 GB, free: 27.85 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/1.274, allocations: 3.984 kB / 1.388 GB, free: 27.85 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/1.274, allocations: 11.8 kB / 1.388 GB, free: 27.84 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008986/1.275, allocations: 1.118 MB / 1.389 GB, free: 27.3 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.582e-05/1.275, allocations: 100.4 kB / 1.389 GB, free: 27.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.069e-05/1.275, allocations: 7.062 kB / 1.389 GB, free: 27.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002199/1.275, allocations: 4 kB / 1.389 GB, free: 27.19 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.503e-05/1.275, allocations: 50.55 kB / 1.389 GB, free: 27.17 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001828/1.275, allocations: 222.5 kB / 1.389 GB, free: 27.06 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001318/1.276, allocations: 163.1 kB / 1.389 GB, free: 26.97 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.276, allocations: 0 / 1.389 GB, free: 26.97 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004258/1.276, allocations: 54.05 kB / 1.39 GB, free: 26.97 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.001226/1.277, allocations: 1.923 MB / 1.391 GB, free: 25.68 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006961/1.278, allocations: 0.7068 MB / 1.392 GB, free: 25.57 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/1.278, allocations: 3.938 kB / 1.392 GB, free: 25.56 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003707/1.278, allocations: 391.1 kB / 1.392 GB, free: 25.5 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001473/1.28, allocations: 312.7 kB / 1.393 GB, free: 25.39 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001289/1.281, allocations: 0.8943 MB / 1.394 GB, free: 25.08 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003851/1.282, allocations: 0.7623 MB / 1.394 GB, free: 24.35 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002743/1.282, allocations: 101.6 kB / 1.394 GB, free: 24.31 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001842/1.282, allocations: 119.3 kB / 1.395 GB, free: 24.28 MB / 0.8386 GB Notification: Performance of SimCode: time 5.01e-07/1.282, allocations: 0 / 1.395 GB, free: 24.28 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02858/1.311, allocations: 9.764 MB / 1.404 GB, free: 17.7 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001507/1.311, allocations: 135.7 kB / 1.404 GB, free: 17.5 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.974/3.285, allocations: 0 / 1.404 GB, free: 17.5 MB / 0.8386 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