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.258/2.258, allocations: 387.1 MB / 399.7 MB, free: 9.586 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.001135/0.001135, allocations: 183.7 kB / 492.3 MB, free: 0.6523 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.751/1.751, allocations: 221.3 MB / 0.7872 GB, free: 12.95 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.0008505/0.0008505, allocations: 91.88 kB / 0.9267 GB, free: 14.03 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.549e-05/3.552e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2947/0.2948, allocations: 142.3 MB / 1.212 GB, free: 38.46 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9844/1.279, allocations: 149.8 MB / 1.359 GB, free: 18.88 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002631/1.28, allocations: 74.44 kB / 1.359 GB, free: 18.88 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04434/1.324, allocations: 18.95 MB / 1.377 GB, free: 33.42 MB / 0.8386 GB Notification: Performance of FrontEnd: time 4.729e-06/1.324, allocations: 0 / 1.377 GB, free: 33.42 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4e-05/1.324, allocations: 7.844 kB / 1.377 GB, free: 33.41 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.001126/1.325, allocations: 0.5993 MB / 1.378 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.743e-05/1.325, allocations: 11.59 kB / 1.378 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001206/1.325, allocations: 47.48 kB / 1.378 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.317e-05/1.325, allocations: 27.3 kB / 1.378 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003593/1.326, allocations: 250.2 kB / 1.378 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.18e-05/1.326, allocations: 14.67 kB / 1.378 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.154e-05/1.326, allocations: 18.47 kB / 1.378 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005686/1.327, allocations: 452.4 kB / 1.379 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/1.327, allocations: 7.906 kB / 1.379 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.622e-05/1.327, allocations: 5.938 kB / 1.379 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/1.327, allocations: 7.844 kB / 1.379 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003497/1.327, allocations: 317.9 kB / 1.379 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006025/1.328, allocations: 0.5595 MB / 1.38 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009742/1.329, allocations: 1.026 MB / 1.381 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005745/1.329, allocations: 0.6568 MB / 1.381 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.324e-05/1.329, allocations: 3.656 kB / 1.381 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004765/1.33, allocations: 470.9 kB / 1.382 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=37): time 2.194e-06/1.33, allocations: 0 / 1.382 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of matching and sorting (n=37): time 0.0009072/1.331, allocations: 0.7913 MB / 1.382 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.028e-05/1.331, allocations: 139.5 kB / 1.383 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002101/1.331, allocations: 228.4 kB / 1.383 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.941e-05/1.331, allocations: 35.17 kB / 1.383 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.018e-05/1.331, allocations: 122 kB / 1.383 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.972e-05/1.331, allocations: 87.28 kB / 1.383 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.479e-05/1.331, allocations: 3.25 kB / 1.383 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.956e-05/1.331, allocations: 347.4 kB / 1.383 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003245/1.332, allocations: 332.2 kB / 1.384 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003522/1.332, allocations: 418 kB / 1.384 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004015/1.332, allocations: 353.4 kB / 1.384 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.142e-06/1.332, allocations: 0 / 1.384 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008553/1.333, allocations: 0.8235 MB / 1.385 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/1.333, allocations: 3.969 kB / 1.385 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/1.333, allocations: 11.58 kB / 1.385 GB, free: 30.22 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.482e-05/1.333, allocations: 7.812 kB / 1.385 GB, free: 30.22 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001725/1.333, allocations: 38.19 kB / 1.385 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.252e-05/1.333, allocations: 7.719 kB / 1.385 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002613/1.334, allocations: 22.23 kB / 1.385 GB, free: 30.19 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002404/1.334, allocations: 216.6 kB / 1.386 GB, free: 30.09 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.0001404/1.334, allocations: 157.2 kB / 1.386 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.214e-05/1.334, allocations: 23.53 kB / 1.386 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.956e-05/1.334, allocations: 36.58 kB / 1.386 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/1.334, allocations: 7.828 kB / 1.386 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/1.334, allocations: 3.844 kB / 1.386 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/1.334, allocations: 3.938 kB / 1.386 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001717/1.336, allocations: 1.694 MB / 1.387 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/1.336, allocations: 3.969 kB / 1.387 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.864e-05/1.336, allocations: 27.41 kB / 1.387 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.032e-06/1.336, allocations: 3.844 kB / 1.387 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.754e-05/1.336, allocations: 22.25 kB / 1.387 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/1.336, allocations: 7.812 kB / 1.387 GB, free: 29.13 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/1.336, allocations: 0 / 1.387 GB, free: 29.13 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009826/1.337, allocations: 1.142 MB / 1.389 GB, free: 28.59 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.177e-05/1.337, allocations: 104.5 kB / 1.389 GB, free: 28.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.74e-05/1.337, allocations: 14.98 kB / 1.389 GB, free: 28.47 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002294/1.338, allocations: 3.375 kB / 1.389 GB, free: 28.47 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/1.338, allocations: 52.62 kB / 1.389 GB, free: 28.46 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002244/1.338, allocations: 223.2 kB / 1.389 GB, free: 28.34 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001662/1.338, allocations: 167.4 kB / 1.389 GB, free: 28.25 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.338, allocations: 4 kB / 1.389 GB, free: 28.25 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000508/1.339, allocations: 63.81 kB / 1.389 GB, free: 28.25 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.001635/1.34, allocations: 1.947 MB / 1.391 GB, free: 26.95 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0007964/1.341, allocations: 0.7332 MB / 1.392 GB, free: 26.84 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/1.341, allocations: 4.062 kB / 1.392 GB, free: 26.84 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0004029/1.341, allocations: 396.6 kB / 1.392 GB, free: 26.78 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001401/1.343, allocations: 310.6 kB / 1.393 GB, free: 26.67 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001402/1.344, allocations: 0.9367 MB / 1.393 GB, free: 26.36 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004601/1.345, allocations: 0.7589 MB / 1.394 GB, free: 25.62 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.000361/1.345, allocations: 96.56 kB / 1.394 GB, free: 25.59 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001738/1.345, allocations: 123.8 kB / 1.394 GB, free: 25.55 MB / 0.8386 GB Notification: Performance of SimCode: time 5.31e-07/1.345, allocations: 0 / 1.394 GB, free: 25.55 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02586/1.371, allocations: 10.39 MB / 1.405 GB, free: 17.87 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001623/1.371, allocations: 151.7 kB / 1.405 GB, free: 17.64 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.059/3.43, allocations: 0 / 1.405 GB, free: 17.64 MB / 0.8386 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