Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.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.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR_HeatRecovery",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery,fileNamePrefix="Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR_HeatRecovery",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.346/2.346, allocations: 390.5 MB / 398 MB, free: 10.94 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.001087/0.001087, allocations: 176.9 kB / 491.2 MB, free: 1.559 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.642/1.642, allocations: 221.5 MB / 0.7868 GB, free: 13.26 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.001015/0.001015, allocations: 101.1 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.385e-05/2.391e-05, allocations: 4 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2983/0.2984, allocations: 143 MB / 1.212 GB, free: 39.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.225/1.523, allocations: 431 MB / 1.633 GB, free: 15.66 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002483/1.524, allocations: 94.94 kB / 1.633 GB, free: 15.61 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 2.701/4.224, allocations: 0.6343 GB / 2.268 GB, free: 249.5 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.894e-06/4.224, allocations: 0 / 2.268 GB, free: 249.5 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001503/4.225, allocations: 48.33 kB / 2.268 GB, free: 249.5 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 236 * Number of variables: 236 Notification: Performance of Generate backend data structure: time 0.003549/4.228, allocations: 1.766 MB / 2.27 GB, free: 248.8 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/4.228, allocations: 11.75 kB / 2.27 GB, free: 248.8 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003533/4.232, allocations: 0.5798 MB / 2.27 GB, free: 248.7 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003452/4.235, allocations: 1.653 MB / 2.272 GB, free: 248.4 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001298/4.235, allocations: 108.8 kB / 2.272 GB, free: 248.4 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001629/4.235, allocations: 63.81 kB / 2.272 GB, free: 248.4 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001632/4.237, allocations: 0.9726 MB / 2.273 GB, free: 248.4 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001631/4.239, allocations: 1.016 MB / 2.274 GB, free: 248.2 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.996e-05/4.239, allocations: 10.97 kB / 2.274 GB, free: 248.2 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.476e-05/4.239, allocations: 2.875 kB / 2.274 GB, free: 248.2 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.992e-05/4.239, allocations: 28.64 kB / 2.274 GB, free: 248.2 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006556/4.245, allocations: 5.347 MB / 2.279 GB, free: 245.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004108/4.25, allocations: 1.106 MB / 2.28 GB, free: 245.8 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006135/4.25, allocations: 451.7 kB / 2.281 GB, free: 245.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007183/4.251, allocations: 1.16 MB / 2.282 GB, free: 244.5 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007316/4.252, allocations: 0.5435 MB / 2.282 GB, free: 244.4 MB / 1.151 GB Notification: Performance of pre-optimization done (n=69): time 2.835e-06/4.252, allocations: 0 / 2.282 GB, free: 244.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=69): time 0.009203/4.261, allocations: 1.699 MB / 2.284 GB, free: 244.3 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.9e-05/4.261, allocations: 118.6 kB / 2.284 GB, free: 244.1 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001647/4.263, allocations: 1.006 MB / 2.285 GB, free: 244 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0002664/4.263, allocations: 29.42 kB / 2.285 GB, free: 244 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.000529/4.263, allocations: 0.6795 MB / 2.286 GB, free: 243.8 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002734/4.264, allocations: 231.1 kB / 2.286 GB, free: 243.7 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.589e-05/4.264, allocations: 0 / 2.286 GB, free: 243.7 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.281e-05/4.264, allocations: 334.7 kB / 2.286 GB, free: 243.4 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005068/4.264, allocations: 361.2 kB / 2.287 GB, free: 243.4 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006197/4.265, allocations: 0.5925 MB / 2.287 GB, free: 243.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009501/4.266, allocations: 418 kB / 2.288 GB, free: 243.1 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/4.266, allocations: 3.312 kB / 2.288 GB, free: 243.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.009337/4.275, allocations: 1.815 MB / 2.289 GB, free: 243 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002732/4.276, allocations: 1.191 MB / 2.29 GB, free: 241.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/4.276, allocations: 7.953 kB / 2.291 GB, free: 241.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007814/4.276, allocations: 488.4 kB / 2.291 GB, free: 241.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008636/4.277, allocations: 192.1 kB / 2.291 GB, free: 241.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0118/4.289, allocations: 3.273 MB / 2.294 GB, free: 240.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002301/4.292, allocations: 195.1 kB / 2.295 GB, free: 240.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001688/4.292, allocations: 50.36 kB / 2.295 GB, free: 240.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/4.292, allocations: 10.81 kB / 2.295 GB, free: 240.5 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008996/4.301, allocations: 1.647 MB / 2.296 GB, free: 240.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.865e-05/4.301, allocations: 3.969 kB / 2.296 GB, free: 240.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007486/4.302, allocations: 485.8 kB / 2.297 GB, free: 240.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008558/4.302, allocations: 193.1 kB / 2.297 GB, free: 240.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01174/4.314, allocations: 3.273 MB / 2.3 GB, free: 239.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002047/4.316, allocations: 189.2 kB / 2.3 GB, free: 239.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001397/4.316, allocations: 50.95 kB / 2.3 GB, free: 239.2 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,chi.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0003191/4.317, allocations: 127.1 kB / 2.3 GB, free: 239.1 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009528/4.326, allocations: 1.697 MB / 2.302 GB, free: 239 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005713/4.327, allocations: 140.5 kB / 2.302 GB, free: 238.9 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00957/4.336, allocations: 1.885 MB / 2.304 GB, free: 238.8 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-05/4.337, allocations: 22.64 kB / 2.304 GB, free: 238.8 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/4.337, allocations: 0 / 2.304 GB, free: 238.8 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009026/4.346, allocations: 1.715 MB / 2.306 GB, free: 238.6 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01278/4.358, allocations: 3.801 MB / 2.309 GB, free: 237.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.08e-05/4.358, allocations: 10.33 kB / 2.309 GB, free: 237.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006237/4.359, allocations: 158.7 kB / 2.31 GB, free: 237.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006981/4.36, allocations: 497.5 kB / 2.31 GB, free: 237.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.611e-05/4.36, allocations: 22.88 kB / 2.31 GB, free: 237.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01275/4.373, allocations: 3.374 MB / 2.313 GB, free: 236.5 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.217e-06/4.373, allocations: 13.02 kB / 2.313 GB, free: 236.5 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01037/4.383, allocations: 2.845 MB / 2.316 GB, free: 235.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001019/4.384, allocations: 470.1 kB / 2.317 GB, free: 235.5 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002056/4.384, allocations: 7.516 kB / 2.317 GB, free: 235.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001358/4.386, allocations: 153.6 kB / 2.317 GB, free: 235.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001694/4.386, allocations: 83.88 kB / 2.317 GB, free: 235.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.391e-05/4.386, allocations: 48.17 kB / 2.317 GB, free: 235.5 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0009747/4.387, allocations: 0.7654 MB / 2.318 GB, free: 235.4 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.7e-07/4.387, allocations: 2.594 kB / 2.318 GB, free: 235.4 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002868/4.39, allocations: 0.9447 MB / 2.319 GB, free: 235.2 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (chi.vol1.dynBal.U,chi.vol2.dynBal.U) * Number of discrete variables: 4 ($whenCondition1,pulse.T_start,pulse.count,chi.on) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.01179/4.402, allocations: 5.253 MB / 2.324 GB, free: 232.7 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.005241/4.407, allocations: 1.912 MB / 2.326 GB, free: 232.4 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.105e-05/4.407, allocations: 0 / 2.326 GB, free: 232.4 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.003238/4.41, allocations: 0.8738 MB / 2.326 GB, free: 232.2 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00362/4.414, allocations: 0.6363 MB / 2.327 GB, free: 232.2 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00583/4.42, allocations: 2.496 MB / 2.329 GB, free: 231.5 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006522/4.42, allocations: 1.279 MB / 2.331 GB, free: 230.7 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001858/4.422, allocations: 425.2 kB / 2.331 GB, free: 230.7 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005619/4.423, allocations: 0.5435 MB / 2.332 GB, free: 230.7 MB / 1.151 GB Notification: Performance of SimCode: time 9.32e-07/4.423, allocations: 0 / 2.332 GB, free: 230.7 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0967/4.52, allocations: 53.83 MB / 2.384 GB, free: 226.3 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001721/4.52, allocations: 191.8 kB / 2.384 GB, free: 226.1 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.148/8.668, allocations: 3.281 kB / 2.384 GB, free: 226.1 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe >> ../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR_HeatRecovery_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Chillers_Examples_ElectricEIR_HeatRecovery.fmu > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery_res.mat does not exist to compare? outputFormat=mat