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.002458/0.002459, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8611/0.8611, allocations: 133.6 MB / 141.6 MB, free: 2.859 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 221.5 MB / 395.4 MB, free: 10.79 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008993/0.0008993, allocations: 100.2 kB / 478.2 MB, free: 1.316 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.494e-05/2.497e-05, allocations: 4 kB / 0.5535 GB, free: 8.969 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5071/0.5072, allocations: 82.31 MB / 0.6339 GB, free: 40.75 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.894/1.401, allocations: 379.6 MB / 1.005 GB, free: 4.383 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002283/1.402, allocations: 86.64 kB / 1.005 GB, free: 4.344 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 6.411/7.812, allocations: 1.47 GB / 2.474 GB, free: 90.48 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.645e-06/7.812, allocations: 0 / 2.474 GB, free: 90.48 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.00128/7.814, allocations: 156.9 kB / 2.474 GB, free: 90.45 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.01843/7.832, allocations: 4.57 MB / 2.479 GB, free: 88.63 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.613e-05/7.832, allocations: 11.19 kB / 2.479 GB, free: 88.63 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006551/7.839, allocations: 0.8037 MB / 2.48 GB, free: 88.32 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02293/7.862, allocations: 6.868 MB / 2.486 GB, free: 87.47 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003953/7.862, allocations: 103.6 kB / 2.486 GB, free: 87.47 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00234/7.865, allocations: 208.7 kB / 2.487 GB, free: 87.47 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01407/7.879, allocations: 4.737 MB / 2.491 GB, free: 87.45 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01171/7.89, allocations: 4.781 MB / 2.496 GB, free: 86.79 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.489e-05/7.891, allocations: 13.56 kB / 2.496 GB, free: 86.79 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005083/7.891, allocations: 13.02 kB / 2.496 GB, free: 86.78 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001065/7.891, allocations: 114.9 kB / 2.496 GB, free: 86.77 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.03571/7.927, allocations: 22.15 MB / 2.518 GB, free: 76.94 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003616/7.931, allocations: 2.504 MB / 2.52 GB, free: 76.89 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00216/7.933, allocations: 1.759 MB / 2.522 GB, free: 76.88 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0135/7.946, allocations: 7.026 MB / 2.529 GB, free: 74.6 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002127/7.949, allocations: 1.733 MB / 2.53 GB, free: 74.54 MB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007146/7.956, allocations: 1.976 MB / 2.532 GB, free: 74.44 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=158): time 1.64e-05/7.956, allocations: 1.25 kB / 2.532 GB, free: 74.44 MB / 0.7136 GB Notification: Performance of matching and sorting (n=158): time 0.01256/7.968, allocations: 4.696 MB / 2.537 GB, free: 74.11 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.908e-05/7.968, allocations: 69.59 kB / 2.537 GB, free: 74.05 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008704/7.977, allocations: 3.999 MB / 2.541 GB, free: 73.72 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 0.0007202/7.978, allocations: 32.08 kB / 2.541 GB, free: 73.69 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.002469/7.98, allocations: 2.442 MB / 2.543 GB, free: 72.84 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008953/7.981, allocations: 0.5391 MB / 2.544 GB, free: 72.49 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001568/7.981, allocations: 4.406 kB / 2.544 GB, free: 72.49 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001609/7.982, allocations: 411.7 kB / 2.544 GB, free: 72.19 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001917/7.984, allocations: 1.441 MB / 2.546 GB, free: 72.18 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002738/7.986, allocations: 2.693 MB / 2.548 GB, free: 70.64 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006842/7.993, allocations: 2.494 MB / 2.551 GB, free: 70.61 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.663e-05/7.993, allocations: 9.281 kB / 2.551 GB, free: 70.61 MB / 0.7136 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.03914/8.032, allocations: 8.882 MB / 2.559 GB, free: 70.15 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.003622/8.036, allocations: 15.05 MB / 2.574 GB, free: 54.27 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.859e-05/8.036, allocations: 33.69 kB / 2.574 GB, free: 54.27 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03274/8.069, allocations: 6.217 MB / 2.58 GB, free: 54.18 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003246/8.072, allocations: 0.6526 MB / 2.581 GB, free: 54.17 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01077/8.083, allocations: 5.519 MB / 2.586 GB, free: 52.55 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006512/8.09, allocations: 302.6 kB / 2.587 GB, free: 52.49 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007945/8.09, allocations: 161.3 kB / 2.587 GB, free: 52.49 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/8.09, allocations: 4.938 kB / 2.587 GB, free: 52.49 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03601/8.126, allocations: 8.171 MB / 2.595 GB, free: 51.92 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001142/8.127, allocations: 35.12 kB / 2.595 GB, free: 51.92 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0336/8.16, allocations: 6.159 MB / 2.601 GB, free: 51.14 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002927/8.163, allocations: 0.6468 MB / 2.601 GB, free: 51.08 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01351/8.177, allocations: 8.228 MB / 2.609 GB, free: 43.82 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006284/8.183, allocations: 289.3 kB / 2.61 GB, free: 43.54 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008672/8.184, allocations: 147.9 kB / 2.61 GB, free: 43.4 MB / 0.7136 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.001204/8.185, allocations: 215.1 kB / 2.61 GB, free: 43.19 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01171/8.197, allocations: 4.512 MB / 2.614 GB, free: 38.69 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002463/8.199, allocations: 434.6 kB / 2.615 GB, free: 38.26 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02789/8.227, allocations: 7.215 MB / 2.622 GB, free: 31.08 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.906e-05/8.227, allocations: 16 kB / 2.622 GB, free: 31.06 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/8.227, allocations: 0 / 2.622 GB, free: 31.06 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0138/8.241, allocations: 6.585 MB / 2.628 GB, free: 24.25 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0294/8.271, allocations: 12.6 MB / 2.641 GB, free: 11.61 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.761e-05/8.271, allocations: 0 / 2.641 GB, free: 11.61 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002235/8.273, allocations: 371.6 kB / 2.641 GB, free: 11.24 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00427/8.277, allocations: 2.434 MB / 2.643 GB, free: 8.82 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003208/8.278, allocations: 31.91 kB / 2.643 GB, free: 8.793 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008883/8.287, allocations: 4.811 MB / 2.648 GB, free: 3.91 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.075e-06/8.287, allocations: 7.922 kB / 2.648 GB, free: 3.902 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02512/8.312, allocations: 9.581 MB / 2.657 GB, free: 10.29 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004288/8.316, allocations: 1.077 MB / 2.659 GB, free: 9.184 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001658/8.318, allocations: 3.984 kB / 2.659 GB, free: 9.18 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004584/8.322, allocations: 267.1 kB / 2.659 GB, free: 8.918 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003192/8.323, allocations: 121 kB / 2.659 GB, free: 8.797 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002851/8.323, allocations: 75.94 kB / 2.659 GB, free: 8.723 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.005578/8.329, allocations: 3.018 MB / 2.662 GB, free: 5.715 MB / 0.7292 GB Notification: Performance of sort global known variables: time 2.81e-07/8.329, allocations: 0 / 2.662 GB, free: 5.715 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.01278/8.341, allocations: 2.699 MB / 2.665 GB, free: 3.012 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.6493/8.991, allocations: 11.16 MB / 2.675 GB, free: 112.2 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0162/9.007, allocations: 7.022 MB / 2.682 GB, free: 111.8 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.326e-05/9.007, allocations: 3.812 kB / 2.682 GB, free: 111.8 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.005318/9.012, allocations: 2.384 MB / 2.685 GB, free: 111.8 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01457/9.027, allocations: 2.378 MB / 2.687 GB, free: 111.7 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02319/9.05, allocations: 8.853 MB / 2.696 GB, free: 110.1 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002841/9.053, allocations: 3.334 MB / 2.699 GB, free: 109.3 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.009984/9.063, allocations: 2.824 MB / 2.702 GB, free: 109.3 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00318/9.066, allocations: 1.909 MB / 2.703 GB, free: 109.3 MB / 0.7292 GB Notification: Performance of SimCode: time 1.202e-06/9.066, allocations: 1.906 kB / 2.703 GB, free: 109.3 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3538/9.42, allocations: 144.8 MB / 2.845 GB, free: 69 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001728/9.42, allocations: 160.4 kB / 2.845 GB, free: 68.81 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.176/16.6, allocations: 0 / 2.845 GB, free: 68.81 MB / 0.7292 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)