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.436/2.436, allocations: 387.4 MB / 394.9 MB, free: 13.4 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.001221/0.001221, allocations: 176.8 kB / 487.4 MB, free: 5.023 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.512/1.512, allocations: 221.5 MB / 0.7824 GB, free: 0.9961 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009251/0.000925, allocations: 93.62 kB / 0.9219 GB, free: 2.246 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.865e-05/1.867e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.286/0.2861, allocations: 142.4 MB / 1.206 GB, free: 43.88 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9697/1.256, allocations: 149.2 MB / 1.352 GB, free: 17.91 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003472/1.256, allocations: 71.25 kB / 1.352 GB, free: 17.91 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04357/1.3, allocations: 18.85 MB / 1.37 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.162e-06/1.3, allocations: 0 / 1.37 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.846e-05/1.3, allocations: 3.938 kB / 1.37 GB, free: 32.45 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.0008493/1.301, allocations: 0.6045 MB / 1.371 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/1.301, allocations: 11.56 kB / 1.371 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.41e-05/1.301, allocations: 25.61 kB / 1.371 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000299/1.301, allocations: 250.7 kB / 1.371 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.057e-05/1.301, allocations: 3.656 kB / 1.371 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.31e-05/1.301, allocations: 16.75 kB / 1.371 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000349/1.302, allocations: 310.6 kB / 1.371 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000446/1.302, allocations: 442.6 kB / 1.372 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/1.302, allocations: 0 / 1.372 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.497e-05/1.302, allocations: 7.797 kB / 1.372 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/1.302, allocations: 3.875 kB / 1.372 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005601/1.303, allocations: 0.5148 MB / 1.372 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009019/1.304, allocations: 1.004 MB / 1.373 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005631/1.304, allocations: 0.6435 MB / 1.374 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.767e-05/1.304, allocations: 8.844 kB / 1.374 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004569/1.305, allocations: 458.4 kB / 1.374 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=37): time 1.382e-06/1.305, allocations: 0 / 1.374 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of matching and sorting (n=37): time 0.0008954/1.306, allocations: 0.7628 MB / 1.375 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.668e-05/1.306, allocations: 139 kB / 1.375 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000238/1.306, allocations: 222.1 kB / 1.375 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.765e-05/1.306, allocations: 28.09 kB / 1.375 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.582e-05/1.306, allocations: 119 kB / 1.376 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.663e-05/1.306, allocations: 76.66 kB / 1.376 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.447e-05/1.306, allocations: 4 kB / 1.376 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001561/1.306, allocations: 347.9 kB / 1.376 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002983/1.307, allocations: 315.8 kB / 1.376 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003521/1.307, allocations: 418.1 kB / 1.377 GB, free: 30.26 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003971/1.307, allocations: 349 kB / 1.377 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.219e-06/1.307, allocations: 3.812 kB / 1.377 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007955/1.308, allocations: 0.7882 MB / 1.378 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/1.308, allocations: 7.688 kB / 1.378 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/1.308, allocations: 3.844 kB / 1.378 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.315e-05/1.308, allocations: 3.812 kB / 1.378 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001811/1.308, allocations: 48.19 kB / 1.378 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.396e-05/1.308, allocations: 3.812 kB / 1.378 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002139/1.309, allocations: 7.812 kB / 1.378 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002303/1.309, allocations: 212.8 kB / 1.378 GB, free: 30.16 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.0001481/1.309, allocations: 145.4 kB / 1.378 GB, free: 30.03 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007127/1.31, allocations: 0.7678 MB / 1.379 GB, free: 29.97 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.4e-05/1.31, allocations: 23.34 kB / 1.379 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.505e-05/1.31, allocations: 34.86 kB / 1.379 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/1.31, allocations: 3.844 kB / 1.379 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/1.31, allocations: 3.844 kB / 1.379 GB, free: 29.96 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/1.31, allocations: 10.47 kB / 1.379 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00164/1.312, allocations: 1.638 MB / 1.381 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/1.312, allocations: 0 / 1.381 GB, free: 29.34 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.591e-05/1.312, allocations: 30.84 kB / 1.381 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.96e-06/1.312, allocations: 256 / 1.381 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.811e-05/1.312, allocations: 22.78 kB / 1.381 GB, free: 29.32 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/1.312, allocations: 4 kB / 1.381 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/1.312, allocations: 7.781 kB / 1.381 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009011/1.313, allocations: 1.124 MB / 1.382 GB, free: 28.77 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.61e-05/1.313, allocations: 104.4 kB / 1.382 GB, free: 28.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.097e-05/1.313, allocations: 11.48 kB / 1.382 GB, free: 28.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002188/1.313, allocations: 3.844 kB / 1.382 GB, free: 28.65 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.923e-05/1.313, allocations: 49.91 kB / 1.382 GB, free: 28.63 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001932/1.313, allocations: 222.7 kB / 1.382 GB, free: 28.52 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.00014/1.313, allocations: 159.3 kB / 1.382 GB, free: 28.43 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.41e-07/1.313, allocations: 0 / 1.382 GB, free: 28.43 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000446/1.314, allocations: 49.91 kB / 1.382 GB, free: 28.43 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.001438/1.315, allocations: 1.923 MB / 1.384 GB, free: 27.13 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0008499/1.316, allocations: 0.707 MB / 1.385 GB, free: 27.03 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/1.316, allocations: 0 / 1.385 GB, free: 27.03 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0004175/1.317, allocations: 396 kB / 1.385 GB, free: 26.96 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001602/1.318, allocations: 315.9 kB / 1.386 GB, free: 26.85 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001533/1.32, allocations: 0.9029 MB / 1.386 GB, free: 26.54 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004315/1.32, allocations: 0.7587 MB / 1.387 GB, free: 25.81 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002875/1.321, allocations: 101.1 kB / 1.387 GB, free: 25.77 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001756/1.321, allocations: 117.8 kB / 1.387 GB, free: 25.74 MB / 0.8386 GB Notification: Performance of SimCode: time 3.81e-07/1.321, allocations: 0 / 1.387 GB, free: 25.74 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03059/1.351, allocations: 9.756 MB / 1.397 GB, free: 20.97 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001945/1.352, allocations: 131.2 kB / 1.397 GB, free: 20.78 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.12/3.472, allocations: 3.938 kB / 1.397 GB, free: 20.77 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