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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008276/0.0008277, allocations: 92.39 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.000816/0.0008164, 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.388/1.388, allocations: 223.2 MB / 240 MB, free: 5.297 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.472/2.472, allocations: 390.4 MB / 0.6655 GB, free: 2.906 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003642/0.0003645, allocations: 12 kB / 0.8149 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.683/0.6834, allocations: 142.3 MB / 0.9538 GB, free: 8.102 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.07241/0.7559, allocations: 74.18 MB / 1.026 GB, free: 5.77 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.027/0.7829, allocations: 18.03 MB / 1.044 GB, free: 3.703 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004155/0.7871, allocations: 87.44 kB / 1.044 GB, free: 3.617 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.003234/0.7903, allocations: 0.7724 MB / 1.045 GB, free: 2.84 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.006931/0.7973, allocations: 2.292 MB / 1.047 GB, free: 0.5391 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.005565/0.8029, allocations: 1.81 MB / 1.049 GB, free: 14.74 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.02061/0.8235, allocations: 17.49 MB / 1.066 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01086/0.8344, allocations: 5.263 MB / 1.071 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01091/0.8454, allocations: 4.611 MB / 1.075 GB, free: 3.258 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008361/0.8538, allocations: 4.591 MB / 1.08 GB, free: 14.65 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.001694/0.8555, allocations: 260 kB / 1.08 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005026/0.8605, allocations: 1.213 MB / 1.081 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.002315/0.8629, allocations: 1.222 MB / 1.083 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.002459/0.8653, allocations: 1.112 MB / 1.084 GB, free: 10.83 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.007922/0.8733, allocations: 6.815 MB / 1.09 GB, free: 4.004 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 1.044e-05/0.8733, allocations: 4 kB / 1.09 GB, free: 4 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.824e-06/0.8733, allocations: 3.938 kB / 1.09 GB, free: 3.996 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0002669/0.8736, allocations: 0 / 1.09 GB, free: 3.996 MB / 0.8419 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.01155/0.8851, allocations: 5.416 MB / 1.096 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.062e-05/0.8852, allocations: 8.031 kB / 1.096 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001902/0.8871, allocations: 471.3 kB / 1.096 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004788/0.8919, allocations: 0.9338 MB / 1.097 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01204/0.904, allocations: 5.16 MB / 1.102 GB, free: 7.828 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002525/0.9043, allocations: 259.1 kB / 1.102 GB, free: 7.574 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008986/0.9052, allocations: 340 kB / 1.103 GB, free: 7.242 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009385/0.9146, allocations: 5.748 MB / 1.108 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.189e-05/0.9147, allocations: 7.938 kB / 1.108 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004018/0.9151, allocations: 148 kB / 1.108 GB, free: 1.105 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.615e-05/0.9152, allocations: 114 kB / 1.108 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008771/0.924, allocations: 5.671 MB / 1.114 GB, free: 11.3 MB / 0.8731 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.03502/0.959, allocations: 24.09 MB / 1.138 GB, free: 2.082 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005318/0.9644, allocations: 2.839 MB / 1.14 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00339/0.9678, allocations: 1.96 MB / 1.142 GB, free: 13.28 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01239/0.9802, allocations: 7.183 MB / 1.149 GB, free: 5.773 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003209/0.9834, allocations: 1.978 MB / 1.151 GB, free: 3.785 MB / 0.9044 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004962/0.9884, allocations: 1.25 MB / 1.152 GB, free: 2.531 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=156): time 1.655e-05/0.9885, allocations: 3.938 kB / 1.152 GB, free: 2.527 MB / 0.9044 GB Notification: Performance of matching and sorting (n=156): time 0.0225/1.011, allocations: 7.718 MB / 1.16 GB, free: 10.73 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.119e-05/1.011, allocations: 72.7 kB / 1.16 GB, free: 10.64 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009/1.02, allocations: 4.89 MB / 1.165 GB, free: 5.77 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0006004/1.021, allocations: 69.7 kB / 1.165 GB, free: 5.695 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.002671/1.023, allocations: 2.467 MB / 1.167 GB, free: 3.203 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.001024/1.024, allocations: 0.5547 MB / 1.168 GB, free: 2.641 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004457/1.025, allocations: 52 kB / 1.168 GB, free: 2.59 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0002635/1.025, allocations: 415.3 kB / 1.168 GB, free: 2.18 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003218/1.028, allocations: 1.68 MB / 1.17 GB, free: 0.4961 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004017/1.032, allocations: 2.879 MB / 1.173 GB, free: 13.07 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003941/1.036, allocations: 2.119 MB / 1.175 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.227e-05/1.036, allocations: 12 kB / 1.175 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.01206/1.049, allocations: 6.056 MB / 1.181 GB, free: 4.84 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007799/1.049, allocations: 1.105 MB / 1.182 GB, free: 3.266 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-05/1.049, allocations: 35.98 kB / 1.182 GB, free: 3.23 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06037/1.11, allocations: 11.88 MB / 1.193 GB, free: 7.336 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003227/1.113, allocations: 0.6864 MB / 1.194 GB, free: 6.648 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007878/1.121, allocations: 5.045 MB / 1.199 GB, free: 1.523 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005148/1.126, allocations: 367.6 kB / 1.199 GB, free: 1.164 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007018/1.127, allocations: 159.9 kB / 1.199 GB, free: 1.008 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/1.127, allocations: 4 kB / 1.199 GB, free: 1.004 MB / 0.9512 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01087/1.138, allocations: 5.399 MB / 1.205 GB, free: 11.59 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.06e-05/1.138, allocations: 32 kB / 1.205 GB, free: 11.55 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06038/1.198, allocations: 11.69 MB / 1.216 GB, free: 15.85 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003145/1.202, allocations: 0.6786 MB / 1.217 GB, free: 15.17 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01167/1.213, allocations: 8.066 MB / 1.225 GB, free: 6.797 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004723/1.218, allocations: 340 kB / 1.225 GB, free: 6.461 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006108/1.219, allocations: 159.9 kB / 1.225 GB, free: 6.305 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,nRes.y,allowFlowReversal.y) * Number of discrete states: 0 () * Number of clocked 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.003367/1.222, allocations: 1.565 MB / 1.227 GB, free: 4.727 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001542/1.224, allocations: 462.3 kB / 1.227 GB, free: 4.27 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01044/1.234, allocations: 4.938 MB / 1.232 GB, free: 15.3 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.792e-05/1.234, allocations: 19.98 kB / 1.232 GB, free: 15.29 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.968e-06/1.234, allocations: 4 kB / 1.232 GB, free: 15.28 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0188/1.253, allocations: 7.145 MB / 1.239 GB, free: 7.871 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 postOpt removeSimpleEquations (simulation): time 0.03234/1.285, allocations: 13.32 MB / 1.252 GB, free: 10.43 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.187e-05/1.285, allocations: 4 kB / 1.252 GB, free: 10.42 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002454/1.288, allocations: 391.4 kB / 1.252 GB, free: 10.04 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.6616/1.95, allocations: 11.9 MB / 1.264 GB, free: 283.2 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005332/1.95, allocations: 46.66 kB / 1.264 GB, free: 283.2 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006987/1.957, allocations: 4.363 MB / 1.268 GB, free: 281.7 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/1.957, allocations: 0.75 kB / 1.268 GB, free: 281.7 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02516/1.982, allocations: 9.854 MB / 1.278 GB, free: 278.8 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003224/1.986, allocations: 1.078 MB / 1.279 GB, free: 278.4 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001364/1.987, allocations: 37.55 kB / 1.279 GB, free: 278.4 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003736/1.991, allocations: 291.5 kB / 1.279 GB, free: 278.4 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002948/1.991, allocations: 101.9 kB / 1.279 GB, free: 278.4 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002672/1.991, allocations: 87.03 kB / 1.279 GB, free: 278.3 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.006368/1.998, allocations: 3.341 MB / 1.283 GB, free: 277.3 MB / 1.014 GB Notification: Performance of sort global known variables: time 4.71e-07/1.998, allocations: 4.875 kB / 1.283 GB, free: 277.3 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.011/2.009, allocations: 2.683 MB / 1.285 GB, free: 277 MB / 1.014 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (128): * Single equations (assignments): 119 * 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.03489/2.044, allocations: 10.68 MB / 1.296 GB, free: 271.2 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.01969/2.063, allocations: 7.564 MB / 1.303 GB, free: 267.2 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.452e-05/2.063, allocations: 2.25 kB / 1.303 GB, free: 267.2 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.007419/2.071, allocations: 2.563 MB / 1.306 GB, free: 265.9 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0183/2.089, allocations: 2.758 MB / 1.308 GB, free: 263.9 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1059/2.195, allocations: 40.92 MB / 1.348 GB, free: 220.4 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003049/2.198, allocations: 3.225 MB / 1.351 GB, free: 217.2 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.006332/2.205, allocations: 1.682 MB / 1.353 GB, free: 215.5 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003118/2.208, allocations: 1.995 MB / 1.355 GB, free: 213.5 MB / 1.014 GB Notification: Performance of SimCode: time 9.22e-07/2.208, allocations: 0 / 1.355 GB, free: 213.5 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1897/2.397, allocations: 150.7 MB / 1.502 GB, free: 64.05 MB / 1.014 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001749/2.398, allocations: 260.3 kB / 1.502 GB, free: 63.69 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.058/7.456, allocations: 0 / 1.502 GB, free: 63.69 MB / 1.014 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