Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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(IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="IDEAS_dev_IDEAS_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.00108/0.00108, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.008086/0.008086, allocations: 169.2 kB / 16.26 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7958/0.7958, allocations: 135.3 MB / 426.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000262/0.000262, allocations: 12 kB / 0.5077 GB, free: 4.664 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1209, allocations: 82.31 MB / 0.5881 GB, free: 2.531 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.2554/0.3763, allocations: 78.51 MB / 0.6647 GB, free: 3.555 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02207/0.3984, allocations: 19.08 MB / 0.6834 GB, free: 5.91 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002643/0.4011, allocations: 92.62 kB / 0.6835 GB, free: 5.871 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.002403/0.4035, allocations: 0.9751 MB / 0.6844 GB, free: 5.344 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.005898/0.4094, allocations: 2.591 MB / 0.6869 GB, free: 3.855 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.004656/0.4141, allocations: 2.167 MB / 0.6891 GB, free: 2.652 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.01829/0.4324, allocations: 20.75 MB / 0.7093 GB, free: 11.28 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006729/0.4392, allocations: 6.011 MB / 0.7152 GB, free: 7.832 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006746/0.4459, allocations: 4.677 MB / 0.7198 GB, free: 5.23 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005315/0.4513, allocations: 4.831 MB / 0.7245 GB, free: 384 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0004721/0.4517, allocations: 260 kB / 0.7247 GB, free: 124 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003192/0.4549, allocations: 1.498 MB / 0.7262 GB, free: 14.62 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.001066/0.456, allocations: 1.264 MB / 0.7274 GB, free: 13.35 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.002734/0.4588, allocations: 2.897 MB / 0.7303 GB, free: 10.43 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.006979/0.4657, allocations: 8.562 MB / 0.7386 GB, free: 1.844 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.4658, allocations: 0 / 0.7386 GB, free: 1.844 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.533e-06/0.4658, allocations: 0 / 0.7386 GB, free: 1.844 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.46e-05/0.4658, allocations: 0 / 0.7386 GB, free: 1.844 MB / 0.545 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.007956/0.4738, allocations: 5.358 MB / 0.7439 GB, free: 12.4 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.47e-05/0.4738, allocations: 8.031 kB / 0.7439 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005554/0.4744, allocations: 467.9 kB / 0.7443 GB, free: 11.92 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002599/0.477, allocations: 0.8479 MB / 0.7451 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007226/0.4842, allocations: 5.27 MB / 0.7503 GB, free: 5.715 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001638/0.4844, allocations: 255.1 kB / 0.7505 GB, free: 5.465 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000528/0.485, allocations: 344 kB / 0.7509 GB, free: 5.129 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007541/0.4925, allocations: 5.705 MB / 0.7564 GB, free: 15.19 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.946e-05/0.4926, allocations: 11.88 kB / 0.7564 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003788/0.493, allocations: 147.9 kB / 0.7566 GB, free: 15.03 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.289e-05/0.4931, allocations: 122 kB / 0.7567 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007636/0.5007, allocations: 5.546 MB / 0.7621 GB, free: 9.352 MB / 0.5762 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.0248/0.5255, allocations: 23.95 MB / 0.7855 GB, free: 280 kB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004058/0.5296, allocations: 2.779 MB / 0.7882 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002477/0.5321, allocations: 1.909 MB / 0.7901 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008783/0.5409, allocations: 7.089 MB / 0.797 GB, free: 4.188 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002543/0.5434, allocations: 1.937 MB / 0.7989 GB, free: 2.234 MB / 0.6075 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003169/0.5466, allocations: 1.247 MB / 0.8001 GB, free: 0.9844 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=156): time 3.036e-06/0.5466, allocations: 0 / 0.8001 GB, free: 0.9844 MB / 0.6075 GB Notification: Performance of matching and sorting (n=156): time 0.01843/0.565, allocations: 7.613 MB / 0.8075 GB, free: 9.293 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.87e-05/0.5651, allocations: 72.66 kB / 0.8076 GB, free: 9.211 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005475/0.5706, allocations: 4.894 MB / 0.8124 GB, free: 4.332 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001958/0.5708, allocations: 61.7 kB / 0.8124 GB, free: 4.266 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.001956/0.5728, allocations: 2.447 MB / 0.8148 GB, free: 1.793 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.000538/0.5733, allocations: 0.5548 MB / 0.8154 GB, free: 1.23 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003164/0.5736, allocations: 223 kB / 0.8156 GB, free: 1.008 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 8.512e-05/0.5737, allocations: 301.1 kB / 0.8159 GB, free: 0.7109 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002525/0.5762, allocations: 1.683 MB / 0.8175 GB, free: 15.02 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003208/0.5795, allocations: 2.878 MB / 0.8203 GB, free: 11.59 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0055/0.585, allocations: 4.589 MB / 0.8248 GB, free: 6.535 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.39e-05/0.585, allocations: 8 kB / 0.8248 GB, free: 6.527 MB / 0.6387 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.009203/0.5942, allocations: 6.087 MB / 0.8308 GB, free: 420 kB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006397/0.5949, allocations: 1.101 MB / 0.8318 GB, free: 14.84 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.011e-05/0.5949, allocations: 32 kB / 0.8319 GB, free: 14.81 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07091/0.6658, allocations: 11.9 MB / 0.8435 GB, free: 2.891 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002506/0.6683, allocations: 0.663 MB / 0.8441 GB, free: 2.227 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007158/0.6755, allocations: 5.037 MB / 0.8491 GB, free: 13.11 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003664/0.6792, allocations: 335.7 kB / 0.8494 GB, free: 12.78 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002463/0.6795, allocations: 159.9 kB / 0.8495 GB, free: 12.62 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 9.007e-06/0.6795, allocations: 4 kB / 0.8495 GB, free: 12.62 MB / 0.67 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007332/0.6868, allocations: 5.341 MB / 0.8548 GB, free: 7.262 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.749e-05/0.6868, allocations: 32 kB / 0.8548 GB, free: 7.23 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2851/0.972, allocations: 11.67 MB / 0.8662 GB, free: 202.4 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00235/0.9744, allocations: 0.6552 MB / 0.8668 GB, free: 202.4 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008365/0.9828, allocations: 8.036 MB / 0.8747 GB, free: 199.2 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003492/0.9863, allocations: 324.8 kB / 0.875 GB, free: 199.2 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002058/0.9865, allocations: 158.1 kB / 0.8751 GB, free: 199.2 MB / 0.67 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 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(11,13), (10,11), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.00215/0.9886, allocations: 1.549 MB / 0.8766 GB, free: 199 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004913/0.9891, allocations: 464.6 kB / 0.8771 GB, free: 199 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006009/0.9952, allocations: 4.847 MB / 0.8818 GB, free: 198.3 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.388e-05/0.9952, allocations: 18.28 kB / 0.8818 GB, free: 198.3 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.9952, allocations: 1.641 kB / 0.8818 GB, free: 198.3 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01705/1.012, allocations: 7.053 MB / 0.8887 GB, free: 195.2 MB / 0.67 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.02475/1.037, allocations: 13.18 MB / 0.9016 GB, free: 190.2 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/1.037, allocations: 1 kB / 0.9016 GB, free: 190.2 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001863/1.039, allocations: 369.7 kB / 0.9019 GB, free: 190.2 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.06567/1.105, allocations: 11.89 MB / 0.9136 GB, free: 189 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003128/1.105, allocations: 49.39 kB / 0.9136 GB, free: 189 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005565/1.11, allocations: 4.365 MB / 0.9179 GB, free: 186.8 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/1.111, allocations: 9.047 kB / 0.9179 GB, free: 186.8 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02132/1.132, allocations: 9.695 MB / 0.9273 GB, free: 182.7 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001619/1.133, allocations: 1.073 MB / 0.9284 GB, free: 182 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004477/1.134, allocations: 31.69 kB / 0.9284 GB, free: 182 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002476/1.136, allocations: 275.4 kB / 0.9287 GB, free: 181.8 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002701/1.137, allocations: 99.61 kB / 0.9288 GB, free: 181.8 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001666/1.137, allocations: 86.98 kB / 0.9289 GB, free: 181.8 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.003231/1.14, allocations: 3.349 MB / 0.9321 GB, free: 180.1 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.4e-07/1.14, allocations: 0 / 0.9321 GB, free: 180.1 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.004669/1.145, allocations: 2.656 MB / 0.9347 GB, free: 179.8 MB / 0.67 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(10,3), (2,5), (10,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02001/1.165, allocations: 10.56 MB / 0.945 GB, free: 169.9 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.01186/1.177, allocations: 7.493 MB / 0.9524 GB, free: 162.3 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/1.177, allocations: 4 kB / 0.9524 GB, free: 162.3 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.004357/1.181, allocations: 2.511 MB / 0.9548 GB, free: 159.8 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009764/1.191, allocations: 2.723 MB / 0.9575 GB, free: 157.2 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0699/1.261, allocations: 51.38 MB / 1.008 GB, free: 102.1 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001642/1.262, allocations: 3.225 MB / 1.011 GB, free: 98.87 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.004379/1.267, allocations: 1.712 MB / 1.012 GB, free: 97.15 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001877/1.269, allocations: 1.995 MB / 1.014 GB, free: 95.16 MB / 0.67 GB Notification: Performance of SimCode: time 4.21e-07/1.269, allocations: 0 / 1.014 GB, free: 95.16 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.084/2.353, allocations: 142.6 MB / 1.154 GB, free: 205.3 MB / 0.6856 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001468/2.353, allocations: 272.3 kB / 1.154 GB, free: 204.9 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.807/7.16, allocations: 0 / 1.154 GB, free: 204.9 MB / 0.6856 GB (rm -f IDEAS_dev_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > IDEAS_dev_IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)