Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.conf.json 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/IDEAS 3.0.0-master/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="IDEAS_IDEAS_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="IDEAS_IDEAS_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 174.1 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.708/0.708, allocations: 133.4 MB / 146.7 MB, free: 10.79 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.598/1.598, allocations: 221.3 MB / 400.4 MB, free: 5.762 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009033/0.0009035, allocations: 103.9 kB / 483.3 MB, free: 5.828 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.28e-05/3.282e-05, allocations: 1.531 kB / 0.5601 GB, free: 87.84 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1603/0.1604, allocations: 82.3 MB / 0.6405 GB, free: 7.723 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.279/1.44, allocations: 380.2 MB / 1.012 GB, free: 240.7 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002119/1.44, allocations: 87.64 kB / 1.012 GB, free: 240.7 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 5.84/7.28, allocations: 1.477 GB / 2.489 GB, free: 67.46 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.252e-06/7.28, allocations: 5.062 kB / 2.489 GB, free: 67.46 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.001098/7.282, allocations: 151.5 kB / 2.49 GB, free: 67.43 MB / 0.7136 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.01569/7.297, allocations: 4.574 MB / 2.494 GB, free: 65.35 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/7.297, allocations: 10.12 kB / 2.494 GB, free: 65.35 MB / 0.7136 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001862/7.299, allocations: 462.8 kB / 2.494 GB, free: 65.29 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005458/7.305, allocations: 0.8017 MB / 2.495 GB, free: 64.98 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02227/7.327, allocations: 6.863 MB / 2.502 GB, free: 63.64 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005984/7.328, allocations: 265.3 kB / 2.502 GB, free: 63.63 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002306/7.33, allocations: 349.3 kB / 2.502 GB, free: 63.63 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01428/7.344, allocations: 5.254 MB / 2.508 GB, free: 61.38 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001868/7.344, allocations: 6.719 kB / 2.508 GB, free: 61.37 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001275/7.346, allocations: 143.9 kB / 2.508 GB, free: 61.27 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001211/7.346, allocations: 119.2 kB / 2.508 GB, free: 61.26 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008552/7.354, allocations: 4.92 MB / 2.513 GB, free: 59.02 MB / 0.7136 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.03841/7.393, allocations: 22.79 MB / 2.535 GB, free: 41.16 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003805/7.397, allocations: 2.47 MB / 2.537 GB, free: 39.89 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002422/7.399, allocations: 1.771 MB / 2.539 GB, free: 38.97 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01417/7.413, allocations: 7.156 MB / 2.546 GB, free: 32.07 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002686/7.416, allocations: 1.778 MB / 2.548 GB, free: 30.28 MB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006988/7.423, allocations: 2.059 MB / 2.55 GB, free: 28.23 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=158): time 1.536e-05/7.423, allocations: 0 / 2.55 GB, free: 28.23 MB / 0.7136 GB Notification: Performance of matching and sorting (n=158): time 0.008074/7.431, allocations: 4.059 MB / 2.554 GB, free: 24.18 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.885e-05/7.431, allocations: 68.72 kB / 2.554 GB, free: 24.1 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01005/7.441, allocations: 4.547 MB / 2.558 GB, free: 19.57 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0006581/7.442, allocations: 69.7 kB / 2.558 GB, free: 19.5 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.002953/7.445, allocations: 2.458 MB / 2.561 GB, free: 17.02 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.001016/7.446, allocations: 0.5624 MB / 2.561 GB, free: 16.46 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004289/7.447, allocations: 52 kB / 2.561 GB, free: 16.41 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0002239/7.447, allocations: 411.3 kB / 2.562 GB, free: 16 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002331/7.449, allocations: 1.454 MB / 2.563 GB, free: 14.54 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00301/7.452, allocations: 2.732 MB / 2.566 GB, free: 11.22 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002899/7.455, allocations: 1.932 MB / 2.568 GB, free: 9.281 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.463e-05/7.455, allocations: 8 kB / 2.568 GB, free: 9.273 MB / 0.7136 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.0341/7.489, allocations: 8.448 MB / 2.576 GB, free: 0.8125 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.007466/7.497, allocations: 15.3 MB / 2.591 GB, free: 8 kB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.5898/8.087, allocations: 32.64 kB / 2.591 GB, free: 93.16 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09745/8.184, allocations: 15.39 MB / 2.606 GB, free: 93.14 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003511/8.188, allocations: 0.6491 MB / 2.607 GB, free: 93.14 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008864/8.197, allocations: 4.709 MB / 2.611 GB, free: 91.59 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006556/8.203, allocations: 358.1 kB / 2.612 GB, free: 91.59 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008118/8.204, allocations: 157 kB / 2.612 GB, free: 91.59 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/8.204, allocations: 5.562 kB / 2.612 GB, free: 91.59 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0331/8.237, allocations: 7.941 MB / 2.619 GB, free: 91.47 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001588/8.237, allocations: 33.06 kB / 2.619 GB, free: 91.47 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.09348/8.331, allocations: 15.33 MB / 2.634 GB, free: 91.42 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00355/8.334, allocations: 0.6386 MB / 2.635 GB, free: 91.41 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01485/8.349, allocations: 7.702 MB / 2.643 GB, free: 88.16 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006477/8.356, allocations: 349.3 kB / 2.643 GB, free: 88.14 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008383/8.357, allocations: 149.6 kB / 2.643 GB, free: 88.14 MB / 0.7292 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.001561/8.358, allocations: 287.2 kB / 2.643 GB, free: 88.04 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002055/8.36, allocations: 466.8 kB / 2.644 GB, free: 88.04 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0255/8.386, allocations: 6.799 MB / 2.65 GB, free: 87.8 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-05/8.386, allocations: 14.83 kB / 2.65 GB, free: 87.8 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/8.386, allocations: 0 / 2.65 GB, free: 87.8 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01175/8.398, allocations: 6.094 MB / 2.656 GB, free: 86.43 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03142/8.429, allocations: 12.53 MB / 2.669 GB, free: 85.28 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.707e-05/8.429, allocations: 0 / 2.669 GB, free: 85.28 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002314/8.432, allocations: 373 kB / 2.669 GB, free: 85.27 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0639/8.496, allocations: 11.62 MB / 2.68 GB, free: 84.5 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005328/8.496, allocations: 49.44 kB / 2.68 GB, free: 84.5 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005943/8.502, allocations: 4.11 MB / 2.684 GB, free: 82.93 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/8.502, allocations: 0 / 2.684 GB, free: 82.93 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02045/8.523, allocations: 9.172 MB / 2.693 GB, free: 82.34 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004377/8.527, allocations: 1.112 MB / 2.694 GB, free: 82 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002063/8.529, allocations: 37.72 kB / 2.694 GB, free: 82 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005683/8.535, allocations: 295.7 kB / 2.695 GB, free: 81.96 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004727/8.535, allocations: 107.3 kB / 2.695 GB, free: 81.96 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004507/8.536, allocations: 83.67 kB / 2.695 GB, free: 81.96 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.007889/8.544, allocations: 3.506 MB / 2.698 GB, free: 81.76 MB / 0.7292 GB Notification: Performance of sort global known variables: time 3.3e-07/8.544, allocations: 4 kB / 2.698 GB, free: 81.75 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.01249/8.556, allocations: 2.773 MB / 2.701 GB, free: 81.64 MB / 0.7292 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.0228/8.579, allocations: 10.79 MB / 2.712 GB, free: 80.21 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.01585/8.595, allocations: 7.272 MB / 2.719 GB, free: 79.7 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.121e-05/8.595, allocations: 8 kB / 2.719 GB, free: 79.7 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.00563/8.601, allocations: 2.411 MB / 2.721 GB, free: 79.66 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0147/8.615, allocations: 2.701 MB / 2.724 GB, free: 79.53 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0241/8.639, allocations: 9.12 MB / 2.733 GB, free: 77.79 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004168/8.644, allocations: 3.331 MB / 2.736 GB, free: 76.95 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.01234/8.656, allocations: 3.035 MB / 2.739 GB, free: 76.69 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003639/8.66, allocations: 1.924 MB / 2.741 GB, free: 76.68 MB / 0.7292 GB Notification: Performance of SimCode: time 2.154e-06/8.66, allocations: 0 / 2.741 GB, free: 76.68 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8215/9.481, allocations: 166.5 MB / 2.903 GB, free: 107.6 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001739/9.481, allocations: 217.2 kB / 2.904 GB, free: 107.4 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.904/17.39, allocations: 3.938 kB / 2.904 GB, free: 107.4 MB / 0.7448 GB (rm -f IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > IDEAS_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)