Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.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.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation,fileNamePrefix="Buildings_9_Buildings_Obsolete_DistrictHeatingCooling_SubStations_Validation_HeatingSubstation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation,fileNamePrefix="Buildings_9_Buildings_Obsolete_DistrictHeatingCooling_SubStations_Validation_HeatingSubstation",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.203/2.203, allocations: 387.4 MB / 394.9 MB, free: 13.38 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.001047/0.001048, allocations: 176.8 kB / 487.4 MB, free: 5.051 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.65/1.65, allocations: 221.5 MB / 0.7824 GB, free: 1.008 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.0009887/0.0009887, allocations: 93.34 kB / 0.9219 GB, free: 2.246 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.304e-05/2.304e-05, allocations: 0 / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2931/0.2931, allocations: 142.4 MB / 1.206 GB, free: 43.9 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.206/1.499, allocations: 440.7 MB / 1.636 GB, free: 14.01 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003331/1.5, allocations: 94.75 kB / 1.637 GB, free: 13.96 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 3.104/4.604, allocations: 0.7009 GB / 2.337 GB, free: 269.5 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.953e-06/4.604, allocations: 0 / 2.337 GB, free: 269.5 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001791/4.604, allocations: 41.62 kB / 2.337 GB, free: 269.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: 206 * Number of variables: 206 Notification: Performance of Generate backend data structure: time 0.004057/4.608, allocations: 1.713 MB / 2.339 GB, free: 268.6 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 6.015e-05/4.608, allocations: 14.09 kB / 2.339 GB, free: 268.6 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002262/4.611, allocations: 439.8 kB / 2.34 GB, free: 268.5 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01994/4.631, allocations: 8.706 MB / 2.348 GB, free: 266.5 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.144e-05/4.631, allocations: 30.77 kB / 2.348 GB, free: 266.5 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000172/4.631, allocations: 53.16 kB / 2.348 GB, free: 266.5 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001499/4.632, allocations: 0.6314 MB / 2.349 GB, free: 266.2 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001512/4.634, allocations: 0.8645 MB / 2.35 GB, free: 265.8 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.589e-05/4.634, allocations: 1.5 kB / 2.35 GB, free: 265.8 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.908e-05/4.634, allocations: 3.844 kB / 2.35 GB, free: 265.8 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.74e-05/4.634, allocations: 31.83 kB / 2.35 GB, free: 265.8 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.007022/4.641, allocations: 4.607 MB / 2.354 GB, free: 262.6 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007399/4.642, allocations: 466 kB / 2.355 GB, free: 262.4 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003194/4.642, allocations: 243 kB / 2.355 GB, free: 262.3 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002411/4.645, allocations: 1.68 MB / 2.356 GB, free: 260.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005024/4.645, allocations: 371.7 kB / 2.357 GB, free: 260.7 MB / 1.151 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000377/4.646, allocations: 60.08 kB / 2.357 GB, free: 260.7 MB / 1.151 GB Notification: Performance of pre-optimization done (n=47): time 4.008e-06/4.646, allocations: 0 / 2.357 GB, free: 260.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=47): time 0.002063/4.648, allocations: 0.7199 MB / 2.358 GB, free: 260.5 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.03e-05/4.648, allocations: 110.6 kB / 2.358 GB, free: 260.3 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001559/4.649, allocations: 0.9705 MB / 2.359 GB, free: 259.9 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 6.746e-05/4.649, allocations: 29.45 kB / 2.359 GB, free: 259.9 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007317/4.65, allocations: 0.6596 MB / 2.359 GB, free: 259.3 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001606/4.65, allocations: 150.7 kB / 2.359 GB, free: 259.2 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.695e-05/4.65, allocations: 2.531 kB / 2.359 GB, free: 259.2 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001315/4.65, allocations: 328.4 kB / 2.36 GB, free: 258.9 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003428/4.651, allocations: 214.7 kB / 2.36 GB, free: 258.8 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005875/4.651, allocations: 494.5 kB / 2.36 GB, free: 258.4 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00104/4.652, allocations: 346.8 kB / 2.361 GB, free: 258.3 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.964e-06/4.653, allocations: 1.719 kB / 2.361 GB, free: 258.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001858/4.654, allocations: 0.8984 MB / 2.362 GB, free: 258 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001232/4.656, allocations: 2.784 MB / 2.364 GB, free: 255.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.676e-05/4.656, allocations: 6.312 kB / 2.364 GB, free: 255.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003558/4.656, allocations: 76.7 kB / 2.364 GB, free: 255.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007247/4.657, allocations: 167.4 kB / 2.365 GB, free: 255.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007956/4.658, allocations: 1.133 MB / 2.366 GB, free: 254 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001152/4.659, allocations: 82.48 kB / 2.366 GB, free: 254 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001136/4.659, allocations: 45.8 kB / 2.366 GB, free: 254 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/4.659, allocations: 8.641 kB / 2.366 GB, free: 254 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001661/4.661, allocations: 0.7284 MB / 2.367 GB, free: 253.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/4.661, allocations: 11.38 kB / 2.367 GB, free: 253.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001936/4.661, allocations: 73.38 kB / 2.367 GB, free: 253.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006074/4.661, allocations: 159 kB / 2.367 GB, free: 253.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000676/4.662, allocations: 1.138 MB / 2.368 GB, free: 252.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009488/4.663, allocations: 77.97 kB / 2.368 GB, free: 252.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.431e-05/4.663, allocations: 46.75 kB / 2.368 GB, free: 252.6 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,QHea.a,QHea.b,QHea.last,$PRE.QHea.nextEvent,QHea.nextEvent,QHea.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 66 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003364/4.663, allocations: 162.7 kB / 2.368 GB, free: 252.5 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001507/4.665, allocations: 0.7133 MB / 2.369 GB, free: 252.2 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001626/4.665, allocations: 134 kB / 2.369 GB, free: 252.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001984/4.667, allocations: 0.863 MB / 2.37 GB, free: 251.9 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.065e-05/4.667, allocations: 2.938 kB / 2.37 GB, free: 251.9 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/4.667, allocations: 6.125 kB / 2.37 GB, free: 251.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/4.667, allocations: 3.891 kB / 2.37 GB, free: 251.9 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 postOpt removeSimpleEquations (simulation): time 0.003264/4.67, allocations: 1.875 MB / 2.372 GB, free: 250.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/4.67, allocations: 7.609 kB / 2.372 GB, free: 250.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005304/4.671, allocations: 114.5 kB / 2.372 GB, free: 250.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000217/4.671, allocations: 65.31 kB / 2.372 GB, free: 250.9 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.714e-05/4.671, allocations: 18.44 kB / 2.372 GB, free: 250.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005858/4.672, allocations: 1.128 MB / 2.373 GB, free: 249.8 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/4.672, allocations: 3.938 kB / 2.373 GB, free: 249.8 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001489/4.673, allocations: 1.03 MB / 2.374 GB, free: 249.2 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005161/4.674, allocations: 294.5 kB / 2.374 GB, free: 249 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001468/4.674, allocations: 11.55 kB / 2.374 GB, free: 249 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008098/4.675, allocations: 87.61 kB / 2.374 GB, free: 249 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/4.675, allocations: 35.39 kB / 2.374 GB, free: 249 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.76e-05/4.675, allocations: 31.44 kB / 2.374 GB, free: 249 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001129/4.676, allocations: 0.7447 MB / 2.375 GB, free: 248.6 MB / 1.151 GB Notification: Performance of sort global known variables: time 3.71e-07/4.676, allocations: 0 / 2.375 GB, free: 248.6 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002691/4.679, allocations: 0.7599 MB / 2.376 GB, free: 248.4 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,QHea.a,QHea.b,QHea.last,QHea.nextEvent,QHea.nextEventScaled) * Number of discrete states: 6 (QHea.nextEvent,QHea.last,QHea.nextEventScaled,QHea.b,QHea.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.003611/4.683, allocations: 2.761 MB / 2.379 GB, free: 246.8 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001833/4.684, allocations: 1.1 MB / 2.38 GB, free: 246.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/4.684, allocations: 0 / 2.38 GB, free: 246.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0004843/4.685, allocations: 372.9 kB / 2.38 GB, free: 246.2 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002553/4.688, allocations: 0.5323 MB / 2.381 GB, free: 246.1 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004587/4.692, allocations: 1.957 MB / 2.382 GB, free: 245.2 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000735/4.693, allocations: 1.232 MB / 2.384 GB, free: 244.4 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.00198/4.695, allocations: 402 kB / 2.384 GB, free: 244.4 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006482/4.696, allocations: 0.5017 MB / 2.384 GB, free: 244 MB / 1.151 GB Notification: Performance of SimCode: time 8.91e-07/4.696, allocations: 7.578 kB / 2.384 GB, free: 244 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09332/4.789, allocations: 40.02 MB / 2.424 GB, free: 219.8 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002549/4.789, allocations: 208.8 kB / 2.424 GB, free: 219.5 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.767/8.556, allocations: 0 / 2.424 GB, free: 219.5 MB / 1.151 GB (rm -f Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe ; mkfifo Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe ; head -c 1048576 < Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe >> ../files/Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation_res.mat --tempDir=temp_Buildings_9_Buildings_Obsolete_DistrictHeatingCooling_SubStations_Validation_HeatingSubstation_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Obsolete_DistrictHeatingCooling_SubStations_Validation_HeatingSubstation.fmu > Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation_res.mat does not exist to compare? outputFormat=mat