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.316/2.316, allocations: 387.4 MB / 394.9 MB, free: 13.36 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.001258/0.001258, allocations: 176.9 kB / 487.4 MB, free: 5.035 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.605/1.605, allocations: 221.5 MB / 0.7824 GB, free: 0.957 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.001041/0.001041, allocations: 91.95 kB / 0.9219 GB, free: 2.191 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.892e-05/1.894e-05, allocations: 0 / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.3079, allocations: 142.4 MB / 1.206 GB, free: 43.85 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.293/1.601, allocations: 417.8 MB / 1.614 GB, free: 3.449 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002568/1.602, allocations: 87.02 kB / 1.614 GB, free: 3.41 MB / 1.026 GB Notification: Performance of FrontEnd - DAE generated: time 6.138/7.739, allocations: 1.5 GB / 3.115 GB, free: 184.9 MB / 1.167 GB Notification: Performance of FrontEnd: time 3.106e-06/7.739, allocations: 0 / 3.115 GB, free: 184.9 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0009565/7.74, allocations: 152.9 kB / 3.115 GB, free: 184.9 MB / 1.167 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.01533/7.756, allocations: 4.57 MB / 3.119 GB, free: 183.4 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.623e-05/7.756, allocations: 10.25 kB / 3.119 GB, free: 183.4 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006934/7.763, allocations: 0.8951 MB / 3.12 GB, free: 183.1 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02173/7.785, allocations: 6.902 MB / 3.127 GB, free: 182.5 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002344/7.785, allocations: 107.9 kB / 3.127 GB, free: 182.5 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00134/7.786, allocations: 207.4 kB / 3.127 GB, free: 182.5 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0104/7.797, allocations: 4.746 MB / 3.132 GB, free: 182.5 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01053/7.807, allocations: 4.796 MB / 3.136 GB, free: 181.8 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.348e-05/7.807, allocations: 10.56 kB / 3.136 GB, free: 181.8 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005267/7.808, allocations: 10.31 kB / 3.136 GB, free: 181.8 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.62e-05/7.808, allocations: 112.2 kB / 3.137 GB, free: 181.8 MB / 1.167 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.03652/7.844, allocations: 22.21 MB / 3.158 GB, free: 172 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003346/7.848, allocations: 2.514 MB / 3.161 GB, free: 172 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002089/7.85, allocations: 1.769 MB / 3.162 GB, free: 172 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01392/7.864, allocations: 7.044 MB / 3.169 GB, free: 169.7 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002184/7.866, allocations: 1.74 MB / 3.171 GB, free: 169.6 MB / 1.167 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007439/7.874, allocations: 1.985 MB / 3.173 GB, free: 169.5 MB / 1.167 GB Notification: Performance of pre-optimization done (n=158): time 1.476e-05/7.874, allocations: 3.5 kB / 3.173 GB, free: 169.5 MB / 1.167 GB Notification: Performance of matching and sorting (n=158): time 0.01218/7.886, allocations: 4.715 MB / 3.178 GB, free: 169.2 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.238e-05/7.886, allocations: 70.97 kB / 3.178 GB, free: 169.1 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007927/7.894, allocations: 3.993 MB / 3.182 GB, free: 168.8 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0007947/7.895, allocations: 32.36 kB / 3.182 GB, free: 168.8 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.002351/7.897, allocations: 2.441 MB / 3.184 GB, free: 167.9 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009888/7.898, allocations: 0.5436 MB / 3.184 GB, free: 167.6 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001679/7.898, allocations: 0 / 3.184 GB, free: 167.6 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001561/7.898, allocations: 410.3 kB / 3.185 GB, free: 167.2 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001909/7.9, allocations: 1.447 MB / 3.186 GB, free: 167.2 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002573/7.903, allocations: 2.701 MB / 3.189 GB, free: 165.7 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006853/7.91, allocations: 2.497 MB / 3.191 GB, free: 165.7 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-05/7.91, allocations: 11.62 kB / 3.191 GB, free: 165.7 MB / 1.167 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.03877/7.949, allocations: 8.891 MB / 3.2 GB, free: 165.3 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.004856/7.954, allocations: 15.05 MB / 3.215 GB, free: 149.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001047/7.954, allocations: 36.55 kB / 3.215 GB, free: 149.5 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03327/7.987, allocations: 6.21 MB / 3.221 GB, free: 149.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003212/7.99, allocations: 0.6555 MB / 3.221 GB, free: 149.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01099/8.001, allocations: 5.529 MB / 3.227 GB, free: 147.9 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006921/8.008, allocations: 309.8 kB / 3.227 GB, free: 147.9 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007972/8.009, allocations: 153.8 kB / 3.227 GB, free: 147.9 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/8.009, allocations: 3.875 kB / 3.227 GB, free: 147.9 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03648/8.046, allocations: 8.197 MB / 3.235 GB, free: 147.8 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001235/8.046, allocations: 32.41 kB / 3.235 GB, free: 147.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03337/8.079, allocations: 6.159 MB / 3.241 GB, free: 147.7 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003416/8.083, allocations: 0.6417 MB / 3.242 GB, free: 147.7 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01424/8.097, allocations: 8.221 MB / 3.25 GB, free: 144.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00606/8.103, allocations: 303.6 kB / 3.25 GB, free: 144.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007779/8.104, allocations: 145.9 kB / 3.25 GB, free: 144.5 MB / 1.167 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.0009743/8.105, allocations: 201.6 kB / 3.251 GB, free: 144.4 MB / 1.167 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01078/8.116, allocations: 4.543 MB / 3.255 GB, free: 144.1 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00188/8.117, allocations: 438 kB / 3.255 GB, free: 143.8 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02826/8.146, allocations: 7.217 MB / 3.263 GB, free: 143.6 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-05/8.146, allocations: 14.94 kB / 3.263 GB, free: 143.6 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/8.146, allocations: 3.875 kB / 3.263 GB, free: 143.6 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0141/8.16, allocations: 6.584 MB / 3.269 GB, free: 142.3 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02945/8.189, allocations: 12.64 MB / 3.281 GB, free: 141 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.574e-05/8.19, allocations: 0 / 3.281 GB, free: 141 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00239/8.192, allocations: 383 kB / 3.282 GB, free: 141 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004465/8.196, allocations: 2.438 MB / 3.284 GB, free: 141 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003852/8.197, allocations: 30.66 kB / 3.284 GB, free: 141 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009735/8.207, allocations: 4.808 MB / 3.289 GB, free: 139.4 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.835e-05/8.207, allocations: 3.938 kB / 3.289 GB, free: 139.4 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02832/8.235, allocations: 9.604 MB / 3.298 GB, free: 138.8 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004196/8.239, allocations: 1.077 MB / 3.299 GB, free: 138.5 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001999/8.241, allocations: 7.312 kB / 3.299 GB, free: 138.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00511/8.246, allocations: 278 kB / 3.3 GB, free: 138.5 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003192/8.247, allocations: 116.7 kB / 3.3 GB, free: 138.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002976/8.247, allocations: 83.7 kB / 3.3 GB, free: 138.5 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.004879/8.252, allocations: 3.016 MB / 3.303 GB, free: 138.3 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.8e-07/8.252, allocations: 0 / 3.303 GB, free: 138.3 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.01253/8.264, allocations: 2.707 MB / 3.305 GB, free: 137.9 MB / 1.167 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.02635/8.291, allocations: 11.19 MB / 3.316 GB, free: 136.6 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.0159/8.307, allocations: 7.027 MB / 3.323 GB, free: 136.1 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 9.869e-06/8.307, allocations: 1.812 kB / 3.323 GB, free: 136.1 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.005277/8.312, allocations: 2.391 MB / 3.325 GB, free: 136.1 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01405/8.326, allocations: 2.379 MB / 3.328 GB, free: 136.1 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02342/8.35, allocations: 8.857 MB / 3.336 GB, free: 134.4 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002692/8.352, allocations: 3.334 MB / 3.34 GB, free: 133.6 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.0105/8.363, allocations: 2.819 MB / 3.342 GB, free: 133.3 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003875/8.367, allocations: 1.906 MB / 3.344 GB, free: 133.3 MB / 1.167 GB Notification: Performance of SimCode: time 2.084e-06/8.367, allocations: 2.625 kB / 3.344 GB, free: 133.3 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2298/8.597, allocations: 144.9 MB / 3.486 GB, free: 19.6 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001743/8.597, allocations: 172.5 kB / 3.486 GB, free: 19.41 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.714/16.31, allocations: 4.031 kB / 3.486 GB, free: 19.41 MB / 1.167 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