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/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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008804/0.0008804, allocations: 86.33 kB / 15.06 MB, free: 1.09 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.001098/0.001098, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.765/0.765, allocations: 132.3 MB / 423.4 MB, free: 2.074 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003301/0.0003301, allocations: 12 kB / 0.5035 GB, free: 4.137 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.455/0.4553, allocations: 81.57 MB / 0.5831 GB, free: 3.973 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Examples.ResistanceVolumeFlowReversal): time 0.06965/0.525, allocations: 74.15 MB / 0.6556 GB, free: 6.191 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.02639/0.5515, allocations: 18 MB / 0.6731 GB, free: 4.164 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004516/0.556, allocations: 91.38 kB / 0.6732 GB, free: 4.074 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.003294/0.5593, allocations: 0.7802 MB / 0.674 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.007224/0.5666, allocations: 2.284 MB / 0.6762 GB, free: 0.9961 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005641/0.5722, allocations: 1.8 MB / 0.678 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.02001/0.5923, allocations: 17.48 MB / 0.695 GB, free: 13.7 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00901/0.6013, allocations: 5.267 MB / 0.7002 GB, free: 8.367 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01009/0.6114, allocations: 4.634 MB / 0.7047 GB, free: 3.715 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009133/0.6206, allocations: 4.587 MB / 0.7092 GB, free: 15.11 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.002359/0.623, allocations: 260 kB / 0.7094 GB, free: 14.85 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00628/0.6293, allocations: 1.217 MB / 0.7106 GB, free: 13.63 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.00335/0.6327, allocations: 1.214 MB / 0.7118 GB, free: 12.41 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.004109/0.6368, allocations: 1.112 MB / 0.7129 GB, free: 11.29 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.01067/0.6475, allocations: 6.827 MB / 0.7196 GB, free: 4.449 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 8.997e-06/0.6476, allocations: 0 / 0.7196 GB, free: 4.449 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.654e-06/0.6476, allocations: 0 / 0.7196 GB, free: 4.449 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0003828/0.648, allocations: 0 / 0.7196 GB, free: 4.449 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.01489/0.6629, allocations: 5.427 MB / 0.7249 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.663, allocations: 11.97 kB / 0.7249 GB, free: 14.92 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001981/0.6649, allocations: 467.3 kB / 0.7253 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004651/0.6696, allocations: 0.844 MB / 0.7261 GB, free: 13.6 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0126/0.6822, allocations: 5.086 MB / 0.7311 GB, free: 8.438 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003043/0.6826, allocations: 263.1 kB / 0.7314 GB, free: 8.18 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001429/0.684, allocations: 336 kB / 0.7317 GB, free: 7.852 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01727/0.7013, allocations: 5.709 MB / 0.7372 GB, free: 1.902 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001815/0.7016, allocations: 11.88 kB / 0.7373 GB, free: 1.891 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001607/0.7032, allocations: 144 kB / 0.7374 GB, free: 1.75 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001552/0.7034, allocations: 125.9 kB / 0.7375 GB, free: 1.625 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01235/0.7157, allocations: 5.561 MB / 0.7429 GB, free: 12.05 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.04122/0.757, allocations: 24.03 MB / 0.7664 GB, free: 2.887 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005423/0.7624, allocations: 2.818 MB / 0.7692 GB, free: 76 kB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003222/0.7657, allocations: 1.932 MB / 0.7711 GB, free: 14.14 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01607/0.7818, allocations: 7.147 MB / 0.778 GB, free: 6.676 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004232/0.7861, allocations: 1.945 MB / 0.7799 GB, free: 4.719 MB / 0.6075 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00563/0.7918, allocations: 1.247 MB / 0.7811 GB, free: 3.469 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=156): time 2.143e-05/0.7918, allocations: 3.938 kB / 0.7812 GB, free: 3.465 MB / 0.6075 GB Notification: Performance of matching and sorting (n=156): time 0.02242/0.8143, allocations: 7.62 MB / 0.7886 GB, free: 11.76 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.965e-05/0.8144, allocations: 72.72 kB / 0.7887 GB, free: 11.68 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01006/0.8245, allocations: 4.894 MB / 0.7934 GB, free: 6.797 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0006849/0.8252, allocations: 61.7 kB / 0.7935 GB, free: 6.73 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.002828/0.828, allocations: 2.459 MB / 0.7959 GB, free: 4.246 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.001144/0.8292, allocations: 0.5547 MB / 0.7964 GB, free: 3.684 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004904/0.8297, allocations: 56 kB / 0.7965 GB, free: 3.629 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0002747/0.83, allocations: 415.3 kB / 0.7969 GB, free: 3.219 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003099/0.8331, allocations: 1.648 MB / 0.7985 GB, free: 1.566 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003811/0.8369, allocations: 2.859 MB / 0.8013 GB, free: 14.15 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003602/0.8406, allocations: 2.08 MB / 0.8033 GB, free: 12.06 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.049e-05/0.8406, allocations: 8 kB / 0.8033 GB, free: 12.05 MB / 0.6387 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.01236/0.853, allocations: 5.998 MB / 0.8092 GB, free: 6.027 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008966/0.8539, allocations: 1.092 MB / 0.8103 GB, free: 4.469 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.661e-05/0.854, allocations: 39.98 kB / 0.8103 GB, free: 4.43 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3512/1.205, allocations: 11.87 MB / 0.8219 GB, free: 201.8 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002923/1.208, allocations: 0.6696 MB / 0.8225 GB, free: 201.8 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007051/1.215, allocations: 5.049 MB / 0.8275 GB, free: 200.2 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004481/1.22, allocations: 345.6 kB / 0.8278 GB, free: 200.2 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006137/1.22, allocations: 163.1 kB / 0.828 GB, free: 200.2 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/1.22, allocations: 10 kB / 0.828 GB, free: 200.2 MB / 0.6387 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009019/1.229, allocations: 5.337 MB / 0.8332 GB, free: 198.5 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.489e-05/1.23, allocations: 32.41 kB / 0.8332 GB, free: 198.5 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05778/1.287, allocations: 11.69 MB / 0.8446 GB, free: 194.6 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00282/1.29, allocations: 0.6574 MB / 0.8453 GB, free: 194.4 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008909/1.299, allocations: 8.078 MB / 0.8532 GB, free: 186.4 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00414/1.303, allocations: 332.2 kB / 0.8535 GB, free: 186.1 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005039/1.304, allocations: 151.9 kB / 0.8536 GB, free: 186 MB / 0.6387 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 () * 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.00276/1.307, allocations: 1.555 MB / 0.8551 GB, free: 184.5 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001248/1.308, allocations: 466.9 kB / 0.8556 GB, free: 184.2 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007072/1.315, allocations: 4.866 MB / 0.8603 GB, free: 179.4 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.952e-05/1.315, allocations: 20 kB / 0.8603 GB, free: 179.4 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/1.315, allocations: 7.938 kB / 0.8604 GB, free: 179.4 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01574/1.331, allocations: 7.07 MB / 0.8673 GB, free: 172.1 MB / 0.6387 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.02491/1.356, allocations: 13.25 MB / 0.8802 GB, free: 158.8 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.454e-05/1.356, allocations: 0 / 0.8802 GB, free: 158.8 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002052/1.358, allocations: 375.6 kB / 0.8806 GB, free: 158.4 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.05553/1.413, allocations: 11.9 MB / 0.8922 GB, free: 146.6 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004488/1.414, allocations: 47.45 kB / 0.8922 GB, free: 146.5 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005028/1.419, allocations: 4.368 MB / 0.8965 GB, free: 142.1 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/1.419, allocations: 4 kB / 0.8965 GB, free: 142.1 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02007/1.439, allocations: 9.748 MB / 0.906 GB, free: 132.4 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002914/1.442, allocations: 1.077 MB / 0.9071 GB, free: 131.3 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008982/1.443, allocations: 31.98 kB / 0.9071 GB, free: 131.2 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002717/1.446, allocations: 284 kB / 0.9074 GB, free: 131 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002524/1.446, allocations: 105.1 kB / 0.9075 GB, free: 130.9 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002173/1.446, allocations: 83.92 kB / 0.9075 GB, free: 130.8 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.003928/1.45, allocations: 3.342 MB / 0.9108 GB, free: 127.5 MB / 0.6387 GB Notification: Performance of sort global known variables: time 2.4e-07/1.45, allocations: 0 / 0.9108 GB, free: 127.5 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.006639/1.457, allocations: 2.676 MB / 0.9134 GB, free: 124.9 MB / 0.6387 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 (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.0209/1.478, allocations: 10.58 MB / 0.9238 GB, free: 114.4 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.01358/1.491, allocations: 7.465 MB / 0.9311 GB, free: 106.9 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 9.507e-06/1.491, allocations: 4 kB / 0.9311 GB, free: 106.9 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.004741/1.496, allocations: 2.522 MB / 0.9335 GB, free: 104.4 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01237/1.508, allocations: 2.76 MB / 0.9362 GB, free: 101.7 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08661/1.595, allocations: 40.78 MB / 0.976 GB, free: 58.16 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003985/1.599, allocations: 3.221 MB / 0.9792 GB, free: 54.91 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.006353/1.605, allocations: 1.665 MB / 0.9808 GB, free: 53.26 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003236/1.609, allocations: 1.999 MB / 0.9828 GB, free: 51.26 MB / 0.6387 GB Notification: Performance of SimCode: time 1.222e-06/1.609, allocations: 0 / 0.9828 GB, free: 51.26 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5164/2.125, allocations: 150.4 MB / 1.13 GB, free: 175.6 MB / 0.67 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001453/2.125, allocations: 250.6 kB / 1.13 GB, free: 175.3 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.121/7.247, allocations: 0 / 1.13 GB, free: 175.3 MB / 0.67 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) Environment - environmentSimulation: