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.256/2.256, allocations: 390.3 MB / 405.3 MB, free: 13.45 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.001098/0.001098, allocations: 174.2 kB / 498.1 MB, free: 5.711 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.519/1.519, allocations: 223.2 MB / 0.7948 GB, free: 17.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.001008/0.001008, allocations: 92.2 kB / 0.9346 GB, free: 6.211 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000374/0.0003741, allocations: 10.09 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2625/0.2629, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.008/1.271, allocations: 418.5 MB / 1.632 GB, free: 8.766 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002246/1.271, allocations: 92.45 kB / 1.632 GB, free: 8.719 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 4.884/6.155, allocations: 1.514 GB / 3.145 GB, free: 76.82 MB / 1.182 GB Notification: Performance of FrontEnd: time 1.943e-06/6.155, allocations: 4 kB / 3.145 GB, free: 76.82 MB / 1.182 GB Notification: Performance of Transformations before backend: time 0.0009366/6.156, allocations: 155.2 kB / 3.146 GB, free: 76.67 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.02228/6.178, allocations: 5.9 MB / 3.151 GB, free: 70.7 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/6.178, allocations: 12.03 kB / 3.151 GB, free: 70.69 MB / 1.182 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001974/6.18, allocations: 471.3 kB / 3.152 GB, free: 70.21 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005607/6.186, allocations: 0.8983 MB / 3.153 GB, free: 69.31 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01937/6.205, allocations: 6.961 MB / 3.159 GB, free: 62.27 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003103/6.205, allocations: 258.5 kB / 3.16 GB, free: 62.02 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001372/6.207, allocations: 348 kB / 3.16 GB, free: 61.68 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01127/6.218, allocations: 5.374 MB / 3.165 GB, free: 56.07 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.717e-05/6.218, allocations: 7.938 kB / 3.165 GB, free: 56.06 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006881/6.219, allocations: 143.9 kB / 3.165 GB, free: 55.92 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.958e-05/6.219, allocations: 114 kB / 3.166 GB, free: 55.8 MB / 1.182 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007198/6.226, allocations: 5.113 MB / 3.171 GB, free: 50.68 MB / 1.182 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.03132/6.258, allocations: 22.87 MB / 3.193 GB, free: 26.91 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003552/6.261, allocations: 2.627 MB / 3.195 GB, free: 24.28 MB / 1.182 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01358/6.275, allocations: 7.167 MB / 3.202 GB, free: 16.8 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002708/6.278, allocations: 1.859 MB / 3.204 GB, free: 14.92 MB / 1.182 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006588/6.284, allocations: 2.054 MB / 3.206 GB, free: 12.86 MB / 1.182 GB Notification: Performance of pre-optimization done (n=158): time 1.559e-05/6.284, allocations: 0 / 3.206 GB, free: 12.86 MB / 1.182 GB Notification: Performance of matching and sorting (n=158): time 0.01882/6.303, allocations: 7.204 MB / 3.213 GB, free: 5.582 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.948e-05/6.303, allocations: 72.72 kB / 3.213 GB, free: 5.5 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008858/6.312, allocations: 4.6 MB / 3.218 GB, free: 0.918 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.0006852/6.313, allocations: 69.7 kB / 3.218 GB, free: 0.8438 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.6494/6.962, allocations: 2.449 MB / 3.22 GB, free: 190.4 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.001079/6.963, allocations: 0.5556 MB / 3.221 GB, free: 190.3 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000222/6.963, allocations: 54.06 kB / 3.221 GB, free: 190.3 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 0.0001721/6.964, allocations: 415.6 kB / 3.221 GB, free: 190 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003117/6.967, allocations: 1.533 MB / 3.223 GB, free: 190 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003301/6.97, allocations: 2.814 MB / 3.226 GB, free: 188.4 MB / 1.182 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003349/6.973, allocations: 1.991 MB / 3.228 GB, free: 188.4 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.089e-05/6.973, allocations: 9.781 kB / 3.228 GB, free: 188.4 MB / 1.182 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.01206/6.986, allocations: 5.57 MB / 3.233 GB, free: 188 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.003716/6.989, allocations: 15.3 MB / 3.248 GB, free: 171.7 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-05/6.989, allocations: 32.5 kB / 3.248 GB, free: 171.7 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07365/7.063, allocations: 11.46 MB / 3.259 GB, free: 171.6 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003147/7.066, allocations: 0.6553 MB / 3.26 GB, free: 171.6 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007002/7.073, allocations: 4.729 MB / 3.264 GB, free: 170.1 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006093/7.079, allocations: 373.5 kB / 3.265 GB, free: 170 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007006/7.08, allocations: 152.1 kB / 3.265 GB, free: 170 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/7.08, allocations: 6.844 kB / 3.265 GB, free: 170 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007777/7.088, allocations: 5.041 MB / 3.27 GB, free: 169.9 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.152e-05/7.088, allocations: 37.36 kB / 3.27 GB, free: 169.9 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0678/7.156, allocations: 11.38 MB / 3.281 GB, free: 169.9 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003194/7.159, allocations: 0.659 MB / 3.282 GB, free: 169.9 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01108/7.17, allocations: 7.785 MB / 3.289 GB, free: 166.6 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005942/7.176, allocations: 356 kB / 3.29 GB, free: 166.6 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007796/7.177, allocations: 152.1 kB / 3.29 GB, free: 166.6 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 () * 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.00415/7.181, allocations: 1.556 MB / 3.291 GB, free: 166.4 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001704/7.183, allocations: 470.3 kB / 3.292 GB, free: 166.1 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007785/7.191, allocations: 4.651 MB / 3.296 GB, free: 165.9 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.141e-05/7.191, allocations: 18.66 kB / 3.296 GB, free: 165.9 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/7.191, allocations: 2.281 kB / 3.296 GB, free: 165.9 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01035/7.201, allocations: 6.258 MB / 3.302 GB, free: 164.6 MB / 1.182 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04362/7.245, allocations: 12.71 MB / 3.315 GB, free: 163.4 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.288e-05/7.245, allocations: 0 / 3.315 GB, free: 163.4 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002515/7.247, allocations: 387.1 kB / 3.315 GB, free: 163.4 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0699/7.317, allocations: 11.64 MB / 3.326 GB, free: 163.2 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007399/7.318, allocations: 51.11 kB / 3.327 GB, free: 163.2 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006402/7.325, allocations: 4.118 MB / 3.331 GB, free: 161.6 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/7.325, allocations: 0 / 3.331 GB, free: 161.6 MB / 1.182 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0219/7.347, allocations: 9.404 MB / 3.34 GB, free: 161 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004858/7.351, allocations: 1.112 MB / 3.341 GB, free: 160.6 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001981/7.353, allocations: 35.73 kB / 3.341 GB, free: 160.6 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005058/7.359, allocations: 309.4 kB / 3.341 GB, free: 160.6 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004481/7.359, allocations: 108.2 kB / 3.341 GB, free: 160.6 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004565/7.359, allocations: 84.27 kB / 3.341 GB, free: 160.6 MB / 1.182 GB Notification: Performance of sorting global known variables: time 0.007822/7.367, allocations: 3.556 MB / 3.345 GB, free: 160.4 MB / 1.182 GB Notification: Performance of sort global known variables: time 2.51e-07/7.367, allocations: 0 / 3.345 GB, free: 160.4 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.01435/7.382, allocations: 2.771 MB / 3.348 GB, free: 160.3 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) * Number of clocked states: 0 () * 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.02474/7.406, allocations: 11.04 MB / 3.358 GB, free: 158.9 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.01692/7.423, allocations: 7.351 MB / 3.365 GB, free: 158.4 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 8.937e-06/7.423, allocations: 0 / 3.365 GB, free: 158.4 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.005711/7.429, allocations: 2.5 MB / 3.368 GB, free: 158.3 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01367/7.443, allocations: 2.688 MB / 3.371 GB, free: 158.2 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0357/7.479, allocations: 40.89 MB / 3.41 GB, free: 124.1 MB / 1.182 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004093/7.483, allocations: 3.323 MB / 3.414 GB, free: 123.3 MB / 1.182 GB Notification: Performance of simCode: alias equations: time 0.007414/7.49, allocations: 1.684 MB / 3.415 GB, free: 123.1 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003904/7.494, allocations: 2.02 MB / 3.417 GB, free: 123.1 MB / 1.182 GB Notification: Performance of SimCode: time 9.22e-07/7.494, allocations: 3.844 kB / 3.417 GB, free: 123.1 MB / 1.182 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.217/7.711, allocations: 157.4 MB / 3.571 GB, free: 56.01 MB / 1.182 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000166/7.711, allocations: 253 kB / 3.571 GB, free: 55.68 MB / 1.182 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.6/14.31, allocations: 0 / 3.571 GB, free: 55.68 MB / 1.182 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