Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.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.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_9_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="Buildings_9_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal",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.323/2.323, allocations: 387.1 MB / 399.7 MB, free: 9.516 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.001507/0.001507, allocations: 183 kB / 492.3 MB, free: 0.6094 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.546/1.546, allocations: 221.3 MB / 0.7871 GB, free: 12.92 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.001061/0.001062, allocations: 90.77 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.179e-05/3.182e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3119/0.312, allocations: 142.3 MB / 1.212 GB, free: 38.43 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.306/1.618, allocations: 418.4 MB / 1.621 GB, free: 11.1 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002349/1.618, allocations: 82.41 kB / 1.621 GB, free: 11.06 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 6.81/8.428, allocations: 1.509 GB / 3.13 GB, free: 199.1 MB / 1.182 GB Notification: Performance of FrontEnd: time 3.347e-06/8.428, allocations: 3.656 kB / 3.13 GB, free: 199.1 MB / 1.182 GB Notification: Performance of Transformations before backend: time 0.001315/8.43, allocations: 148.2 kB / 3.13 GB, free: 199.1 MB / 1.182 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 834 * Number of variables: 834 Notification: Performance of Generate backend data structure: time 0.01886/8.449, allocations: 4.571 MB / 3.134 GB, free: 197.6 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 6.192e-05/8.449, allocations: 10.06 kB / 3.134 GB, free: 197.6 MB / 1.182 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002527/8.451, allocations: 463.7 kB / 3.135 GB, free: 197.5 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007335/8.459, allocations: 0.8883 MB / 3.136 GB, free: 197.2 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02347/8.482, allocations: 6.912 MB / 3.142 GB, free: 196.6 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004865/8.483, allocations: 258.8 kB / 3.143 GB, free: 196.6 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001824/8.484, allocations: 348.8 kB / 3.143 GB, free: 196.6 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01099/8.495, allocations: 5.253 MB / 3.148 GB, free: 195.9 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.579e-05/8.496, allocations: 11.44 kB / 3.148 GB, free: 195.9 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006264/8.496, allocations: 149.9 kB / 3.148 GB, free: 195.9 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.565e-05/8.496, allocations: 114.1 kB / 3.148 GB, free: 195.9 MB / 1.182 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008132/8.504, allocations: 4.94 MB / 3.153 GB, free: 195.9 MB / 1.182 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.04406/8.549, allocations: 22.85 MB / 3.175 GB, free: 186 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004555/8.553, allocations: 2.486 MB / 3.178 GB, free: 185.9 MB / 1.182 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002901/8.556, allocations: 1.778 MB / 3.18 GB, free: 185.9 MB / 1.182 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0172/8.573, allocations: 7.157 MB / 3.187 GB, free: 183.7 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003195/8.577, allocations: 1.793 MB / 3.188 GB, free: 183.6 MB / 1.182 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007747/8.584, allocations: 2.052 MB / 3.19 GB, free: 183.5 MB / 1.182 GB Notification: Performance of pre-optimization done (n=158): time 1.62e-05/8.584, allocations: 2.5 kB / 3.19 GB, free: 183.5 MB / 1.182 GB Notification: Performance of matching and sorting (n=158): time 0.008987/8.593, allocations: 4.062 MB / 3.194 GB, free: 183.1 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.448e-05/8.594, allocations: 74.02 kB / 3.194 GB, free: 183.1 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0113/8.605, allocations: 4.544 MB / 3.199 GB, free: 182.7 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.0008246/8.606, allocations: 72.36 kB / 3.199 GB, free: 182.7 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.003434/8.609, allocations: 2.468 MB / 3.201 GB, free: 181.9 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.001335/8.611, allocations: 0.5628 MB / 3.202 GB, free: 181.5 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006236/8.611, allocations: 54.41 kB / 3.202 GB, free: 181.5 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 0.0003164/8.612, allocations: 408.5 kB / 3.202 GB, free: 181.2 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002801/8.614, allocations: 1.457 MB / 3.204 GB, free: 181.2 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003822/8.618, allocations: 2.745 MB / 3.206 GB, free: 179.7 MB / 1.182 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003457/8.622, allocations: 1.934 MB / 3.208 GB, free: 179.6 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.524e-05/8.622, allocations: 7.844 kB / 3.208 GB, free: 179.6 MB / 1.182 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.03641/8.658, allocations: 8.467 MB / 3.217 GB, free: 179.2 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.00442/8.663, allocations: 15.3 MB / 3.232 GB, free: 162.9 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001404/8.663, allocations: 33.14 kB / 3.232 GB, free: 162.9 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09615/8.759, allocations: 15.4 MB / 3.247 GB, free: 162.8 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003192/8.762, allocations: 0.6644 MB / 3.247 GB, free: 162.8 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007412/8.77, allocations: 4.716 MB / 3.252 GB, free: 161.2 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006892/8.777, allocations: 367.7 kB / 3.252 GB, free: 161.2 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008024/8.777, allocations: 152.2 kB / 3.252 GB, free: 161.2 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/8.777, allocations: 3.938 kB / 3.252 GB, free: 161.2 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03204/8.81, allocations: 7.949 MB / 3.26 GB, free: 161.1 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001113/8.81, allocations: 33.16 kB / 3.26 GB, free: 161.1 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09419/8.904, allocations: 15.32 MB / 3.275 GB, free: 160.6 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003092/8.907, allocations: 0.6523 MB / 3.276 GB, free: 160.6 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01079/8.918, allocations: 7.696 MB / 3.283 GB, free: 157.2 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006792/8.925, allocations: 356 kB / 3.284 GB, free: 157.2 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009891/8.926, allocations: 155 kB / 3.284 GB, free: 157.2 MB / 1.182 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 147 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,allowFlowReversal.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (285): * Single equations (assignments): 280 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {11 13,10 11,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.001408/8.927, allocations: 291.8 kB / 3.284 GB, free: 157.1 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002506/8.93, allocations: 466.6 kB / 3.284 GB, free: 156.8 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02602/8.956, allocations: 6.799 MB / 3.291 GB, free: 156.6 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.507e-05/8.956, allocations: 19.47 kB / 3.291 GB, free: 156.6 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/8.956, allocations: 0 / 3.291 GB, free: 156.6 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01114/8.967, allocations: 6.115 MB / 3.297 GB, free: 155.2 MB / 1.182 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02802/8.995, allocations: 12.54 MB / 3.309 GB, free: 153.9 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-05/8.995, allocations: 6.172 kB / 3.309 GB, free: 153.9 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002356/8.997, allocations: 394.7 kB / 3.31 GB, free: 153.9 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0682/9.066, allocations: 11.63 MB / 3.321 GB, free: 153.1 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007379/9.067, allocations: 47.45 kB / 3.321 GB, free: 153.1 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006683/9.073, allocations: 4.113 MB / 3.325 GB, free: 151.6 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/9.073, allocations: 2.156 kB / 3.325 GB, free: 151.6 MB / 1.182 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02285/9.096, allocations: 9.189 MB / 3.334 GB, free: 150.9 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006321/9.103, allocations: 1.11 MB / 3.335 GB, free: 150.6 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002517/9.105, allocations: 34.75 kB / 3.335 GB, free: 150.6 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005452/9.111, allocations: 308.2 kB / 3.336 GB, free: 150.5 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003706/9.111, allocations: 105.2 kB / 3.336 GB, free: 150.5 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003315/9.111, allocations: 82.97 kB / 3.336 GB, free: 150.5 MB / 1.182 GB Notification: Performance of sorting global known variables: time 0.006424/9.118, allocations: 3.502 MB / 3.339 GB, free: 150.3 MB / 1.182 GB Notification: Performance of sort global known variables: time 5.01e-07/9.118, allocations: 3.719 kB / 3.339 GB, free: 150.3 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.01313/9.131, allocations: 2.771 MB / 3.342 GB, free: 150.1 MB / 1.182 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (pump.vol.dynBal.U,hea.outCon.T,val.filter.s[1],val.filter.s[2]) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {10 3,2 5,10 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.02366/9.155, allocations: 10.84 MB / 3.352 GB, free: 148.5 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.01671/9.171, allocations: 7.277 MB / 3.36 GB, free: 147.3 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 1.266e-05/9.171, allocations: 3.5 kB / 3.36 GB, free: 147.3 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.005497/9.177, allocations: 2.432 MB / 3.362 GB, free: 146.4 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.016/9.193, allocations: 2.684 MB / 3.365 GB, free: 145.3 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0254/9.218, allocations: 9.126 MB / 3.373 GB, free: 137.5 MB / 1.182 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002854/9.221, allocations: 3.327 MB / 3.377 GB, free: 135 MB / 1.182 GB Notification: Performance of simCode: alias equations: time 0.01155/9.233, allocations: 3.076 MB / 3.38 GB, free: 133.1 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003853/9.237, allocations: 1.923 MB / 3.382 GB, free: 131.3 MB / 1.182 GB Notification: Performance of SimCode: time 2.314e-06/9.237, allocations: 0 / 3.382 GB, free: 131.3 MB / 1.182 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.119/10.36, allocations: 166.7 MB / 3.544 GB, free: 198.7 MB / 1.198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001932/10.36, allocations: 225.8 kB / 3.545 GB, free: 198.5 MB / 1.198 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.366/18.72, allocations: 0 / 3.545 GB, free: 198.5 MB / 1.198 GB (rm -f Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Examples.ResistanceVolumeFlowReversal_res.mat does not exist to compare? outputFormat=mat