Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.FixedResistances.Examples.CheckValve,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.FixedResistances.Examples.CheckValve,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_CheckValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.6831/0.6831, allocations: 141.7 MB / 154.3 MB, free: 15.47 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009955/0.0009956, allocations: 180.5 kB / 187.3 MB, free: 11.87 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.193/1.193, allocations: 221.3 MB / 441.4 MB, free: 4.586 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.0008342/0.0008342, allocations: 97.09 kB / 0.5124 GB, free: 24.24 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001558/0.001558, allocations: 271.2 kB / 0.5939 GB, free: 7.949 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.16e-05/3.162e-05, allocations: 4 kB / 0.6835 GB, free: 12.13 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.346/0.346, allocations: 82.76 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.581/0.9271, allocations: 350 MB / 1.106 GB, free: 7.789 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002107/0.9273, allocations: 79.95 kB / 1.106 GB, free: 7.75 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.7471/1.674, allocations: 256.7 MB / 1.357 GB, free: 106 MB / 0.698 GB Notification: Performance of FrontEnd: time 8.81e-07/1.674, allocations: 0 / 1.357 GB, free: 106 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.502e-05/1.675, allocations: 16 kB / 1.357 GB, free: 105.9 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001114/1.676, allocations: 0.8411 MB / 1.358 GB, free: 105.1 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/1.676, allocations: 11.97 kB / 1.358 GB, free: 105 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.711e-05/1.676, allocations: 66.55 kB / 1.358 GB, free: 105 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.718e-05/1.676, allocations: 67.25 kB / 1.358 GB, free: 104.9 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005918/1.676, allocations: 467.5 kB / 1.358 GB, free: 104.4 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.038e-05/1.676, allocations: 28.78 kB / 1.358 GB, free: 104.4 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.695e-05/1.677, allocations: 40 kB / 1.358 GB, free: 104.3 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003795/1.677, allocations: 267.7 kB / 1.359 GB, free: 104.1 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/1.677, allocations: 0 / 1.359 GB, free: 104.1 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.663e-05/1.677, allocations: 12 kB / 1.359 GB, free: 104.1 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/1.677, allocations: 4 kB / 1.359 GB, free: 104.1 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002973/1.677, allocations: 199 kB / 1.359 GB, free: 103.9 MB / 0.698 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.001564/1.679, allocations: 1.334 MB / 1.36 GB, free: 102.4 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003982/1.679, allocations: 237.7 kB / 1.36 GB, free: 102.2 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001346/1.679, allocations: 104.8 kB / 1.36 GB, free: 102.1 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002498/1.68, allocations: 0.4986 MB / 1.361 GB, free: 101.4 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.446e-05/1.68, allocations: 38.59 kB / 1.361 GB, free: 101.4 MB / 0.698 GB Notification: Performance of pre-optimization done (n=25): time 1.362e-06/1.68, allocations: 224 / 1.361 GB, free: 101.4 MB / 0.698 GB Notification: Performance of matching and sorting (n=25): time 0.0004513/1.68, allocations: 263.3 kB / 1.361 GB, free: 101.1 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.836e-05/1.68, allocations: 55.34 kB / 1.361 GB, free: 101.1 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003137/1.681, allocations: 400 kB / 1.362 GB, free: 100.7 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.917e-05/1.681, allocations: 37.7 kB / 1.362 GB, free: 100.6 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 9.867e-05/1.681, allocations: 248.8 kB / 1.362 GB, free: 100.4 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 4.452e-05/1.681, allocations: 90.69 kB / 1.362 GB, free: 100.3 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.472e-05/1.681, allocations: 4 kB / 1.362 GB, free: 100.3 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.117e-05/1.681, allocations: 362.7 kB / 1.362 GB, free: 99.93 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001262/1.681, allocations: 79.98 kB / 1.362 GB, free: 99.85 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001755/1.681, allocations: 186.8 kB / 1.363 GB, free: 99.63 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001518/1.681, allocations: 101.6 kB / 1.363 GB, free: 99.53 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/1.681, allocations: 0 / 1.363 GB, free: 99.53 MB / 0.698 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004911/1.682, allocations: 349.5 kB / 1.363 GB, free: 99.18 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 5.144e-05/1.682, allocations: 272.1 kB / 1.363 GB, free: 98.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/1.682, allocations: 0 / 1.363 GB, free: 98.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001982/1.682, allocations: 44.83 kB / 1.363 GB, free: 98.85 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003023/1.682, allocations: 79.89 kB / 1.363 GB, free: 98.77 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003004/1.683, allocations: 0.5639 MB / 1.364 GB, free: 98.18 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004311/1.683, allocations: 71.73 kB / 1.364 GB, free: 98.11 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.604e-05/1.683, allocations: 15.98 kB / 1.364 GB, free: 98.1 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 6.332e-06/1.683, allocations: 5.094 kB / 1.364 GB, free: 98.09 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003409/1.683, allocations: 250 kB / 1.364 GB, free: 97.85 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.723e-06/1.684, allocations: 0 / 1.364 GB, free: 97.85 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.336e-06/1.684, allocations: 0 / 1.364 GB, free: 97.85 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003395/1.684, allocations: 91.81 kB / 1.364 GB, free: 97.76 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.356e-06/1.684, allocations: 4 kB / 1.364 GB, free: 97.76 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003836/1.684, allocations: 71.69 kB / 1.364 GB, free: 97.69 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.644e-05/1.684, allocations: 12 kB / 1.364 GB, free: 97.68 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 7.327e-05/1.684, allocations: 124.9 kB / 1.365 GB, free: 97.55 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.772e-05/1.684, allocations: 47.44 kB / 1.365 GB, free: 97.5 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005166/1.685, allocations: 367.6 kB / 1.365 GB, free: 97.12 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.361e-06/1.685, allocations: 144 / 1.365 GB, free: 97.12 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/1.685, allocations: 4 kB / 1.365 GB, free: 97.12 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/1.685, allocations: 3.984 kB / 1.365 GB, free: 97.12 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008775/1.686, allocations: 0.8905 MB / 1.366 GB, free: 96.16 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/1.686, allocations: 0 / 1.366 GB, free: 96.16 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002072/1.686, allocations: 47.97 kB / 1.366 GB, free: 96.11 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001316/1.686, allocations: 54.86 kB / 1.366 GB, free: 96.05 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.911e-05/1.686, allocations: 8 kB / 1.366 GB, free: 96.05 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002021/1.686, allocations: 0.5446 MB / 1.367 GB, free: 95.48 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/1.686, allocations: 4.031 kB / 1.367 GB, free: 95.47 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003843/1.687, allocations: 489.1 kB / 1.367 GB, free: 94.94 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001238/1.687, allocations: 160.3 kB / 1.367 GB, free: 94.77 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.826e-05/1.687, allocations: 12 kB / 1.367 GB, free: 94.75 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003507/1.687, allocations: 39.95 kB / 1.367 GB, free: 94.71 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.598e-05/1.687, allocations: 23.97 kB / 1.367 GB, free: 94.69 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.095e-05/1.688, allocations: 11.98 kB / 1.367 GB, free: 94.68 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002329/1.688, allocations: 313.6 kB / 1.368 GB, free: 94.38 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.3e-07/1.688, allocations: 0 / 1.368 GB, free: 94.38 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0006595/1.688, allocations: 283.6 kB / 1.368 GB, free: 94.1 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001012/1.689, allocations: 1.559 MB / 1.369 GB, free: 92.49 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.000596/1.69, allocations: 391.1 kB / 1.37 GB, free: 92.11 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/1.69, allocations: 0 / 1.37 GB, free: 92.11 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002139/1.69, allocations: 145.1 kB / 1.37 GB, free: 91.97 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001119/1.691, allocations: 245.3 kB / 1.37 GB, free: 91.73 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001048/1.692, allocations: 0.7263 MB / 1.371 GB, free: 90.96 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001958/1.693, allocations: 0.8678 MB / 1.372 GB, free: 90.06 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0004419/1.693, allocations: 136.6 kB / 1.372 GB, free: 89.93 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001565/1.693, allocations: 167.4 kB / 1.372 GB, free: 89.76 MB / 0.698 GB Notification: Performance of SimCode: time 2.4e-07/1.693, allocations: 0 / 1.372 GB, free: 89.76 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02667/1.72, allocations: 17.37 MB / 1.389 GB, free: 72.71 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001386/1.72, allocations: 235.7 kB / 1.389 GB, free: 72.41 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.288/4.008, allocations: 4 kB / 1.389 GB, free: 72.41 MB / 0.698 GB (rm -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_CheckValve_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_CheckValve.fmu > BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.pipe 2>&1)