Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.FixedResistances.Examples.CheckValve.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.FixedResistances.Examples.CheckValve,fileNamePrefix="IDEAS_IDEAS_Fluid_FixedResistances_Examples_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.FixedResistances.Examples.CheckValve,fileNamePrefix="IDEAS_IDEAS_Fluid_FixedResistances_Examples_CheckValve",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.007381/0.007381, allocations: 100.3 kB / 15.73 MB, free: 5.602 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.001627/0.001627, allocations: 190.4 kB / 16.68 MB, free: 5.523 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.264/1.264, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7401/0.7401, allocations: 132.2 MB / 422.7 MB, free: 6.539 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001125/0.001125, allocations: 67.22 kB / 0.5808 GB, free: 24.02 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1381, allocations: 80.21 MB / 0.6592 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.FixedResistances.Examples.CheckValve): time 0.02044/0.1585, allocations: 20.75 MB / 0.6794 GB, free: 5.969 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.00621/0.1648, allocations: 4.939 MB / 0.6843 GB, free: 1.016 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006375/0.1654, allocations: 15.88 kB / 0.6843 GB, free: 1 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0008068/0.1663, allocations: 278.1 kB / 0.6845 GB, free: 0.7266 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.001996/0.1683, allocations: 0.859 MB / 0.6854 GB, free: 15.86 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.001641/0.17, allocations: 0.7134 MB / 0.6861 GB, free: 15.16 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0014/0.1714, allocations: 1.395 MB / 0.6874 GB, free: 13.76 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004911/0.1719, allocations: 432.7 kB / 0.6879 GB, free: 13.33 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007686/0.1727, allocations: 0.5915 MB / 0.6884 GB, free: 12.74 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004773/0.1731, allocations: 442.1 kB / 0.6889 GB, free: 12.3 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 6.02e-05/0.1732, allocations: 36 kB / 0.6889 GB, free: 12.27 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009457/0.1742, allocations: 0.6394 MB / 0.6895 GB, free: 11.63 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0001181/0.1743, allocations: 131.4 kB / 0.6896 GB, free: 11.5 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0002329/0.1745, allocations: 286.5 kB / 0.6899 GB, free: 11.22 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0009417/0.1755, allocations: 0.8522 MB / 0.6907 GB, free: 10.36 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.1755, allocations: 4 kB / 0.6907 GB, free: 10.36 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.212e-06/0.1755, allocations: 0 / 0.6907 GB, free: 10.36 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 9.168e-06/0.1755, allocations: 0 / 0.6907 GB, free: 10.36 MB / 0.5294 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.001376/0.1769, allocations: 0.9413 MB / 0.6917 GB, free: 9.367 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.1769, allocations: 8.031 kB / 0.6917 GB, free: 9.359 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.217e-05/0.177, allocations: 66.72 kB / 0.6917 GB, free: 9.285 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001042/0.1771, allocations: 68.52 kB / 0.6918 GB, free: 9.219 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006501/0.1778, allocations: 486.8 kB / 0.6923 GB, free: 8.703 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.224e-05/0.1778, allocations: 20.66 kB / 0.6923 GB, free: 8.684 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.677e-05/0.1779, allocations: 36 kB / 0.6923 GB, free: 8.648 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005813/0.1785, allocations: 313.9 kB / 0.6926 GB, free: 8.336 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.1785, allocations: 4 kB / 0.6926 GB, free: 8.332 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.929e-05/0.1785, allocations: 8 kB / 0.6926 GB, free: 8.324 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.1785, allocations: 8 kB / 0.6926 GB, free: 8.316 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005783/0.1791, allocations: 262.4 kB / 0.6929 GB, free: 8.059 MB / 0.5294 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.001941/0.1811, allocations: 1.345 MB / 0.6942 GB, free: 6.594 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004657/0.1815, allocations: 255.4 kB / 0.6944 GB, free: 6.336 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002777/0.1818, allocations: 148.7 kB / 0.6946 GB, free: 6.188 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003572/0.1822, allocations: 0.4908 MB / 0.6951 GB, free: 5.586 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.336e-05/0.1822, allocations: 38.5 kB / 0.6951 GB, free: 5.539 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=25): time 1.373e-06/0.1822, allocations: 0 / 0.6951 GB, free: 5.539 MB / 0.5294 GB Notification: Performance of matching and sorting (n=25): time 0.001636/0.1839, allocations: 0.5614 MB / 0.6957 GB, free: 4.949 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.016e-05/0.1839, allocations: 51.41 kB / 0.6957 GB, free: 4.887 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004374/0.1843, allocations: 470.1 kB / 0.6961 GB, free: 4.418 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.496e-05/0.1844, allocations: 33.7 kB / 0.6962 GB, free: 4.379 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.1845, allocations: 248.6 kB / 0.6964 GB, free: 4.133 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 6.879e-05/0.1846, allocations: 91.2 kB / 0.6965 GB, free: 4.043 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001065/0.1847, allocations: 73.69 kB / 0.6966 GB, free: 3.965 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000119/0.1849, allocations: 358.8 kB / 0.6969 GB, free: 3.605 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00029/0.1852, allocations: 124.8 kB / 0.697 GB, free: 3.48 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003355/0.1855, allocations: 181 kB / 0.6972 GB, free: 3.285 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005706/0.1861, allocations: 269.1 kB / 0.6975 GB, free: 3.016 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1861, allocations: 0 / 0.6975 GB, free: 3.016 MB / 0.5294 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001457/0.1875, allocations: 494 kB / 0.6979 GB, free: 2.523 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.1876, allocations: 8 kB / 0.6979 GB, free: 2.516 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.1876, allocations: 4 kB / 0.6979 GB, free: 2.512 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003448/0.1879, allocations: 52.81 kB / 0.698 GB, free: 2.457 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003401/0.1883, allocations: 67.89 kB / 0.6981 GB, free: 2.391 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003863/0.1887, allocations: 0.5718 MB / 0.6986 GB, free: 1.793 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003879/0.1891, allocations: 55.88 kB / 0.6987 GB, free: 1.738 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.606e-05/0.1891, allocations: 16 kB / 0.6987 GB, free: 1.723 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003829/0.1895, allocations: 243.8 kB / 0.6989 GB, free: 1.48 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003189/0.1898, allocations: 178.6 kB / 0.6991 GB, free: 1.289 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005362/0.1904, allocations: 255.7 kB / 0.6993 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.322e-06/0.1904, allocations: 0 / 0.6993 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of matching and sorting (n=37) (initialization_lambda0): time 0.0007176/0.1911, allocations: 377 kB / 0.6997 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.035e-06/0.1911, allocations: 7.938 kB / 0.6997 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.844e-06/0.1911, allocations: 0 / 0.6997 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.737e-06/0.1912, allocations: 4 kB / 0.6997 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003726/0.1915, allocations: 79.88 kB / 0.6998 GB, free: 0.5703 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.976e-06/0.1915, allocations: 4 kB / 0.6998 GB, free: 0.5664 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003861/0.1919, allocations: 47.84 kB / 0.6998 GB, free: 0.5195 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.711e-05/0.192, allocations: 12 kB / 0.6998 GB, free: 0.5078 MB / 0.5294 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001186/0.1921, allocations: 196.2 kB / 0.7 GB, free: 316 kB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.069e-05/0.1922, allocations: 55.59 kB / 0.7001 GB, free: 260 kB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008771/0.1931, allocations: 433.3 kB / 0.7005 GB, free: 15.81 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.727e-06/0.1931, allocations: 4 kB / 0.7005 GB, free: 15.81 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.1931, allocations: 0 / 0.7005 GB, free: 15.81 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.1931, allocations: 4 kB / 0.7005 GB, free: 15.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001348/0.1945, allocations: 0.9515 MB / 0.7014 GB, free: 14.78 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.1945, allocations: 4.125 kB / 0.7014 GB, free: 14.78 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002197/0.1947, allocations: 43.97 kB / 0.7015 GB, free: 14.73 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001464/0.1948, allocations: 36.83 kB / 0.7015 GB, free: 14.7 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.105e-05/0.1949, allocations: 11.94 kB / 0.7015 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003111/0.1952, allocations: 0.5679 MB / 0.7021 GB, free: 14.09 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1952, allocations: 64 / 0.7021 GB, free: 14.09 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007554/0.196, allocations: 0.4953 MB / 0.7026 GB, free: 13.56 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001513/0.1961, allocations: 156.7 kB / 0.7027 GB, free: 13.39 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.979e-05/0.1962, allocations: 7.938 kB / 0.7027 GB, free: 13.38 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003179/0.1965, allocations: 27.95 kB / 0.7028 GB, free: 13.36 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.751e-05/0.1966, allocations: 19.98 kB / 0.7028 GB, free: 13.34 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.48e-05/0.1966, allocations: 15.98 kB / 0.7028 GB, free: 13.32 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0002993/0.1969, allocations: 322.9 kB / 0.7031 GB, free: 13.01 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1969, allocations: 0 / 0.7031 GB, free: 13.01 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0006277/0.1976, allocations: 251.5 kB / 0.7033 GB, free: 12.76 MB / 0.545 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001326/0.1989, allocations: 1.191 MB / 0.7045 GB, free: 11.54 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001064/0.2, allocations: 456.8 kB / 0.7049 GB, free: 11.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.2, allocations: 0 / 0.7049 GB, free: 11.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.000374/0.2004, allocations: 167.8 kB / 0.7051 GB, free: 10.93 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009874/0.2014, allocations: 226.3 kB / 0.7053 GB, free: 10.72 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005581/0.207, allocations: 4.006 MB / 0.7092 GB, free: 6.59 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003386/0.2073, allocations: 0.8549 MB / 0.7101 GB, free: 5.707 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0003432/0.2077, allocations: 117.3 kB / 0.7102 GB, free: 5.594 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002063/0.2079, allocations: 187.3 kB / 0.7103 GB, free: 5.41 MB / 0.545 GB Notification: Performance of SimCode: time 3.5e-07/0.2079, allocations: 0 / 0.7103 GB, free: 5.41 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03531/0.2432, allocations: 15.03 MB / 0.725 GB, free: 6.676 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.65, allocations: 0 / 0.725 GB, free: 6.676 MB / 0.5606 GB (rm -f IDEAS_IDEAS.Fluid.FixedResistances.Examples.CheckValve.pipe ; mkfifo IDEAS_IDEAS.Fluid.FixedResistances.Examples.CheckValve.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.FixedResistances.Examples.CheckValve.pipe >> ../files/IDEAS_IDEAS.Fluid.FixedResistances.Examples.CheckValve.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Fluid.FixedResistances.Examples.CheckValve_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_IDEAS_Fluid_FixedResistances_Examples_CheckValve.fmu > IDEAS_IDEAS.Fluid.FixedResistances.Examples.CheckValve.pipe 2>&1)