Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust,fileNamePrefix="Buildings_9_Buildings_Fluid_FMI_Adaptors_Examples_ThermalZoneHVACWithExhaust",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust,fileNamePrefix="Buildings_9_Buildings_Fluid_FMI_Adaptors_Examples_ThermalZoneHVACWithExhaust",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008773/0.0008773, allocations: 90.75 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.349/2.349, allocations: 390.4 MB / 0.6655 GB, free: 3.004 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003424/0.0003425, allocations: 12 kB / 0.8149 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7453/0.7457, allocations: 142.3 MB / 0.9539 GB, free: 8.043 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust): time 1.111/1.857, allocations: 347.1 MB / 1.293 GB, free: 25.77 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.05049/1.907, allocations: 41.44 MB / 1.333 GB, free: 25.2 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006792/1.914, allocations: 145.7 kB / 1.333 GB, free: 25.2 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.006943/1.921, allocations: 1.784 MB / 1.335 GB, free: 25.18 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01799/1.939, allocations: 5.311 MB / 1.34 GB, free: 24.94 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.009896/1.949, allocations: 2.788 MB / 1.343 GB, free: 24.84 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01707/1.966, allocations: 13.08 MB / 1.356 GB, free: 24.81 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006839/1.973, allocations: 3.94 MB / 1.36 GB, free: 24.27 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01204/1.985, allocations: 4.85 MB / 1.364 GB, free: 24.21 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006731/1.992, allocations: 3.286 MB / 1.368 GB, free: 23.72 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.001227/1.993, allocations: 171.3 kB / 1.368 GB, free: 23.72 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01077/2.004, allocations: 3.352 MB / 1.371 GB, free: 23.01 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.003144/2.007, allocations: 1.332 MB / 1.372 GB, free: 22.58 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.004071/2.011, allocations: 1.001 MB / 1.373 GB, free: 22.55 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.01195/2.023, allocations: 6.613 MB / 1.38 GB, free: 19.18 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 8.746e-06/2.023, allocations: 0 / 1.38 GB, free: 19.18 MB / 0.9981 GB Notification: Performance of FrontEnd: time 3.246e-06/2.023, allocations: 3.312 kB / 1.38 GB, free: 19.18 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0002646/2.024, allocations: 0 / 1.38 GB, free: 19.18 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 856 * Number of variables: 856 Notification: Performance of Generate backend data structure: time 0.01114/2.035, allocations: 4.763 MB / 1.384 GB, free: 16.28 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/2.035, allocations: 9.562 kB / 1.384 GB, free: 16.28 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001479/2.036, allocations: 475.3 kB / 1.385 GB, free: 16.14 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01126/2.048, allocations: 2.082 MB / 1.387 GB, free: 15.31 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007627/2.055, allocations: 3.489 MB / 1.39 GB, free: 13.95 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001473/2.057, allocations: 0.6906 MB / 1.391 GB, free: 13.7 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009413/2.058, allocations: 344.1 kB / 1.391 GB, free: 13.7 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009843/2.068, allocations: 4.677 MB / 1.396 GB, free: 12.41 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.297e-05/2.068, allocations: 10.58 kB / 1.396 GB, free: 12.4 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003626/2.068, allocations: 141.8 kB / 1.396 GB, free: 12.4 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001053/2.068, allocations: 130.1 kB / 1.396 GB, free: 12.39 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009421/2.078, allocations: 4.325 MB / 1.4 GB, free: 11.59 MB / 0.9981 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.03117/2.109, allocations: 18.94 MB / 1.419 GB, free: 12.26 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005601/2.114, allocations: 2.211 MB / 1.421 GB, free: 10.59 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002903/2.117, allocations: 1.143 MB / 1.422 GB, free: 9.773 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008027/2.118, allocations: 449.1 kB / 1.423 GB, free: 9.273 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003293/2.121, allocations: 1.343 MB / 1.424 GB, free: 8.23 MB / 1.014 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002443/2.124, allocations: 181.8 kB / 1.424 GB, free: 8.078 MB / 1.014 GB Notification: Performance of pre-optimization done (n=135): time 9.978e-06/2.124, allocations: 0 / 1.424 GB, free: 8.078 MB / 1.014 GB Notification: Performance of matching and sorting (n=135): time 0.009879/2.134, allocations: 3.501 MB / 1.427 GB, free: 5.309 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.054e-05/2.134, allocations: 149.1 kB / 1.428 GB, free: 5.137 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007166/2.141, allocations: 3.658 MB / 1.431 GB, free: 2.445 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0003982/2.142, allocations: 60.45 kB / 1.431 GB, free: 2.402 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.002011/2.144, allocations: 2.01 MB / 1.433 GB, free: 1.309 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008327/2.144, allocations: 479.7 kB / 1.434 GB, free: 0.9102 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001552/2.145, allocations: 37.59 kB / 1.434 GB, free: 0.9023 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001917/2.145, allocations: 379 kB / 1.434 GB, free: 0.5547 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003066/2.148, allocations: 1.206 MB / 1.435 GB, free: 15.66 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003677/2.152, allocations: 1.853 MB / 1.437 GB, free: 13.9 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003445/2.155, allocations: 1.356 MB / 1.438 GB, free: 12.93 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.578e-05/2.155, allocations: 4 kB / 1.438 GB, free: 12.93 MB / 1.029 GB Notification: Performance of matching and sorting (n=231) (initialization): time 0.008396/2.163, allocations: 3.373 MB / 1.442 GB, free: 10.35 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004207/2.164, allocations: 0.5952 MB / 1.442 GB, free: 9.586 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.507e-05/2.164, allocations: 16 kB / 1.442 GB, free: 9.57 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.604e-05/2.164, allocations: 31.98 kB / 1.442 GB, free: 9.539 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002738/2.167, allocations: 0.5934 MB / 1.443 GB, free: 8.984 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.019e-05/2.167, allocations: 35.95 kB / 1.443 GB, free: 8.957 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004989/2.172, allocations: 0.6704 MB / 1.444 GB, free: 8.316 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002815/2.172, allocations: 98.14 kB / 1.444 GB, free: 8.234 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/2.172, allocations: 11.16 kB / 1.444 GB, free: 8.227 MB / 1.029 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00714/2.179, allocations: 3.016 MB / 1.447 GB, free: 6.047 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.798e-05/2.179, allocations: 16 kB / 1.447 GB, free: 6.031 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.727e-05/2.179, allocations: 28 kB / 1.447 GB, free: 6.004 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00279/2.182, allocations: 0.5962 MB / 1.447 GB, free: 5.438 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.956e-05/2.182, allocations: 31.92 kB / 1.447 GB, free: 5.406 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005013/2.187, allocations: 0.5926 MB / 1.448 GB, free: 4.848 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003918/2.188, allocations: 92.52 kB / 1.448 GB, free: 4.77 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (227): * Single equations (assignments): 223 * Array equations: 3 * Algorithm blocks: 1 * 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.002801/2.19, allocations: 1.122 MB / 1.449 GB, free: 4.035 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009501/2.191, allocations: 371.4 kB / 1.449 GB, free: 3.668 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006429/2.198, allocations: 2.757 MB / 1.452 GB, free: 1.633 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.528e-05/2.198, allocations: 12 kB / 1.452 GB, free: 1.621 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.106e-05/2.198, allocations: 0 / 1.452 GB, free: 1.621 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004929/2.203, allocations: 2.338 MB / 1.454 GB, free: 15.7 MB / 1.045 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.01586/2.219, allocations: 7.234 MB / 1.461 GB, free: 10.25 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.414e-05/2.219, allocations: 8 kB / 1.461 GB, free: 10.24 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002063/2.221, allocations: 400 kB / 1.462 GB, free: 9.859 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002362/2.221, allocations: 54.89 kB / 1.462 GB, free: 9.812 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001308/2.221, allocations: 46.66 kB / 1.462 GB, free: 9.785 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001207/2.223, allocations: 1.444 MB / 1.463 GB, free: 8.324 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.652e-05/2.223, allocations: 12 kB / 1.463 GB, free: 8.312 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008842/2.231, allocations: 4.023 MB / 1.467 GB, free: 5.094 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002366/2.234, allocations: 0.7011 MB / 1.468 GB, free: 4.535 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000681/2.234, allocations: 39.91 kB / 1.468 GB, free: 4.516 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003402/2.238, allocations: 433.2 kB / 1.468 GB, free: 4.109 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002341/2.238, allocations: 125.7 kB / 1.469 GB, free: 4.004 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001693/2.238, allocations: 65.7 kB / 1.469 GB, free: 3.949 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.00518/2.244, allocations: 2.539 MB / 1.471 GB, free: 2.129 MB / 1.045 GB Notification: Performance of sort global known variables: time 4.21e-07/2.244, allocations: 0 / 1.471 GB, free: 2.129 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.007117/2.251, allocations: 2.027 MB / 1.473 GB, free: 192 kB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * Number of states: 4 (conPI.I.y,vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01103/2.262, allocations: 4.972 MB / 1.478 GB, free: 12.08 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0108/2.273, allocations: 4.23 MB / 1.482 GB, free: 8.789 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.757e-05/2.273, allocations: 4 kB / 1.482 GB, free: 8.785 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.003128/2.276, allocations: 1.283 MB / 1.483 GB, free: 7.773 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01046/2.286, allocations: 1.926 MB / 1.485 GB, free: 6.184 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06371/2.35, allocations: 28.98 MB / 1.513 GB, free: 11.17 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0026/2.353, allocations: 2.66 MB / 1.516 GB, free: 8.68 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.005489/2.358, allocations: 1.018 MB / 1.517 GB, free: 7.66 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002593/2.361, allocations: 1.752 MB / 1.519 GB, free: 6.945 MB / 1.092 GB Notification: Performance of SimCode: time 1.252e-06/2.361, allocations: 4 kB / 1.519 GB, free: 6.941 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2078/2.569, allocations: 103 MB / 1.619 GB, free: 0.9492 MB / 1.186 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000235/2.569, allocations: 263 kB / 1.62 GB, free: 0.5898 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.936/7.505, allocations: 2.531 kB / 1.62 GB, free: 0.5898 MB / 1.186 GB (rm -f Buildings_9_Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust.pipe ; mkfifo Buildings_9_Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust.pipe >> ../files/Buildings_9_Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_FMI_Adaptors_Examples_ThermalZoneHVACWithExhaust_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_FMI_Adaptors_Examples_ThermalZoneHVACWithExhaust.fmu > Buildings_9_Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.FMI.Adaptors.Examples.ThermalZoneHVACWithExhaust_res.mat does not exist to compare? outputFormat=mat