Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7447/0.7447, allocations: 127.3 MB / 139.8 MB, free: 15.44 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001229/0.001229, allocations: 188.7 kB / 169.7 MB, free: 1.734 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.765/1.765, allocations: 205.1 MB / 404.5 MB, free: 1.598 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001033/0.001033, allocations: 95.67 kB / 481.8 MB, free: 4.246 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 4.918e-05/4.949e-05, allocations: 0 / 0.5533 GB, free: 54.75 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1713/0.1713, allocations: 76.76 MB / 0.6282 GB, free: 9.93 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.295/1.467, allocations: 388.9 MB / 1.008 GB, free: 125.3 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002368/1.467, allocations: 87.33 kB / 1.008 GB, free: 125.2 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 6.146/7.614, allocations: 1.46 GB / 2.468 GB, free: 72.97 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.365e-06/7.614, allocations: 0.9062 kB / 2.468 GB, free: 72.97 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.001397/7.615, allocations: 154.3 kB / 2.469 GB, free: 72.95 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 832 * Number of variables: 832 Notification: Performance of Generate backend data structure: time 0.02479/7.64, allocations: 4.569 MB / 2.473 GB, free: 71.34 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 6.39e-05/7.64, allocations: 10 kB / 2.473 GB, free: 71.34 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002679/7.643, allocations: 462.5 kB / 2.474 GB, free: 71.28 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007192/7.65, allocations: 0.8443 MB / 2.474 GB, free: 70.98 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02608/7.676, allocations: 7.826 MB / 2.482 GB, free: 70.06 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007629/7.677, allocations: 260.8 kB / 2.482 GB, free: 70.05 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002858/7.68, allocations: 349.4 kB / 2.483 GB, free: 70.05 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02125/7.701, allocations: 5.508 MB / 2.488 GB, free: 69.34 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002755/7.701, allocations: 11.47 kB / 2.488 GB, free: 69.34 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001724/7.703, allocations: 142.7 kB / 2.488 GB, free: 69.34 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001067/7.703, allocations: 88.69 kB / 2.488 GB, free: 69.34 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0127/7.716, allocations: 5.122 MB / 2.493 GB, free: 69.31 MB / 0.6823 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.04283/7.759, allocations: 22.42 MB / 2.515 GB, free: 59.4 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007767/7.767, allocations: 2.826 MB / 2.518 GB, free: 59.35 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002778/7.77, allocations: 1.675 MB / 2.519 GB, free: 59.34 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01495/7.784, allocations: 6.436 MB / 2.526 GB, free: 57.08 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005107/7.79, allocations: 2.031 MB / 2.528 GB, free: 57.02 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.008623/7.798, allocations: 2.026 MB / 2.53 GB, free: 56.89 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=155): time 3.057e-05/7.798, allocations: 0 / 2.53 GB, free: 56.89 MB / 0.6823 GB Notification: Performance of matching and sorting (n=155): time 0.01929/7.818, allocations: 5.11 MB / 2.535 GB, free: 56.55 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/7.818, allocations: 146.4 kB / 2.535 GB, free: 56.39 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01039/7.828, allocations: 4.289 MB / 2.539 GB, free: 56.05 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0007857/7.829, allocations: 75.23 kB / 2.539 GB, free: 56.02 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.003067/7.832, allocations: 2.48 MB / 2.542 GB, free: 55.23 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.001118/7.833, allocations: 0.5582 MB / 2.542 GB, free: 54.88 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005444/7.834, allocations: 54.69 kB / 2.542 GB, free: 54.88 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0002503/7.834, allocations: 415.6 kB / 2.543 GB, free: 54.58 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002645/7.837, allocations: 1.502 MB / 2.544 GB, free: 54.57 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003366/7.84, allocations: 2.779 MB / 2.547 GB, free: 52.98 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003231/7.843, allocations: 1.958 MB / 2.549 GB, free: 52.92 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.521e-05/7.844, allocations: 10.03 kB / 2.549 GB, free: 52.92 MB / 0.6823 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.03969/7.883, allocations: 9.105 MB / 2.558 GB, free: 52.52 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.005288/7.889, allocations: 15.52 MB / 2.573 GB, free: 35.94 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001662/7.889, allocations: 35.19 kB / 2.573 GB, free: 35.94 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09082/7.98, allocations: 15.5 MB / 2.588 GB, free: 35.37 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0033/7.983, allocations: 0.6995 MB / 2.589 GB, free: 35.36 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01135/7.994, allocations: 5.065 MB / 2.593 GB, free: 49.75 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006435/8.001, allocations: 321.9 kB / 2.594 GB, free: 49.71 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007687/8.002, allocations: 160.3 kB / 2.594 GB, free: 49.71 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/8.002, allocations: 4.312 kB / 2.594 GB, free: 49.71 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03069/8.032, allocations: 7.987 MB / 2.602 GB, free: 49.36 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001313/8.033, allocations: 34.53 kB / 2.602 GB, free: 49.36 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08857/8.121, allocations: 15.27 MB / 2.617 GB, free: 48.57 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003282/8.124, allocations: 0.6915 MB / 2.617 GB, free: 48.56 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01083/8.135, allocations: 7.396 MB / 2.625 GB, free: 45.25 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006321/8.142, allocations: 285.7 kB / 2.625 GB, free: 45.2 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008058/8.143, allocations: 149 kB / 2.625 GB, free: 45.2 MB / 0.698 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (287): * Single equations (assignments): 280 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * 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.001286/8.144, allocations: 302.3 kB / 2.625 GB, free: 45.07 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001824/8.146, allocations: 459.8 kB / 2.626 GB, free: 44.83 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02702/8.173, allocations: 7.005 MB / 2.633 GB, free: 44.57 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.611e-05/8.173, allocations: 16.91 kB / 2.633 GB, free: 44.57 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/8.173, allocations: 0 / 2.633 GB, free: 44.57 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01239/8.185, allocations: 5.939 MB / 2.638 GB, free: 43.2 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03811/8.223, allocations: 13.4 MB / 2.651 GB, free: 41.95 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.157e-05/8.224, allocations: 0 / 2.651 GB, free: 41.95 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002584/8.226, allocations: 425.3 kB / 2.652 GB, free: 41.94 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06337/8.289, allocations: 11.75 MB / 2.663 GB, free: 34.87 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00075/8.29, allocations: 45.75 kB / 2.663 GB, free: 34.86 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0243/8.315, allocations: 9.772 MB / 2.673 GB, free: 28.16 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/8.315, allocations: 3.172 kB / 2.673 GB, free: 28.16 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02855/8.343, allocations: 9.96 MB / 2.683 GB, free: 20.54 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004571/8.348, allocations: 1.072 MB / 2.684 GB, free: 19.61 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002033/8.35, allocations: 28 kB / 2.684 GB, free: 19.58 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005077/8.355, allocations: 287.6 kB / 2.684 GB, free: 19.38 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000539/8.356, allocations: 118.2 kB / 2.684 GB, free: 19.31 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003265/8.356, allocations: 81.56 kB / 2.684 GB, free: 19.25 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.005531/8.361, allocations: 3.331 MB / 2.687 GB, free: 16.39 MB / 0.698 GB Notification: Performance of sort global known variables: time 6.01e-07/8.361, allocations: 0 / 2.687 GB, free: 16.39 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.01876/8.38, allocations: 2.76 MB / 2.69 GB, free: 13.64 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (pump.vol.dynBal.U,hea.outCon.T,val.filter.x[1],val.filter.x[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 (125): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.03615/8.416, allocations: 11.68 MB / 2.702 GB, free: 4 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.5545/8.971, allocations: 7.566 MB / 2.709 GB, free: 90.07 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.498e-05/8.971, allocations: 3.094 kB / 2.709 GB, free: 90.07 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.01044/8.982, allocations: 3.02 MB / 2.712 GB, free: 89.81 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01371/8.995, allocations: 2.552 MB / 2.714 GB, free: 89.79 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03069/9.026, allocations: 9.567 MB / 2.724 GB, free: 88.21 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004729/9.031, allocations: 3.321 MB / 2.727 GB, free: 87.43 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.01247/9.043, allocations: 3.119 MB / 2.73 GB, free: 87.39 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00369/9.047, allocations: 1.914 MB / 2.732 GB, free: 87.39 MB / 0.698 GB Notification: Performance of SimCode: time 9.42e-07/9.047, allocations: 0 / 2.732 GB, free: 87.39 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2807/9.328, allocations: 171.1 MB / 2.899 GB, free: 33.42 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002067/9.328, allocations: 226.5 kB / 2.899 GB, free: 33.16 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.966/17.29, allocations: 0 / 2.899 GB, free: 33.16 MB / 0.698 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)