Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.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.Actuators.Valves.Examples.TwoWayValvesTable,fileNamePrefix="IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvesTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,fileNamePrefix="IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValvesTable",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.007722/0.007722, allocations: 100.5 kB / 15.73 MB, free: 5.953 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.001734/0.001735, allocations: 192.8 kB / 16.67 MB, free: 5.875 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.273/1.273, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7663/0.7663, allocations: 132.2 MB / 422.7 MB, free: 6.543 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 67.05 kB / 0.5809 GB, free: 24.07 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1572/0.1584, allocations: 80.2 MB / 0.6592 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.01731/0.1758, allocations: 15.55 MB / 0.6744 GB, free: 11.14 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.006157/0.1819, allocations: 4.331 MB / 0.6786 GB, free: 6.793 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000713/0.1827, allocations: 15.88 kB / 0.6786 GB, free: 6.777 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001068/0.1838, allocations: 266.3 kB / 0.6789 GB, free: 6.516 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.001728/0.1856, allocations: 0.6335 MB / 0.6795 GB, free: 5.879 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.001841/0.1874, allocations: 0.707 MB / 0.6802 GB, free: 5.184 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001458/0.1889, allocations: 1.033 MB / 0.6812 GB, free: 4.145 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005884/0.1895, allocations: 339.8 kB / 0.6815 GB, free: 3.812 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008052/0.1903, allocations: 434.3 kB / 0.6819 GB, free: 3.387 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005307/0.1908, allocations: 330.5 kB / 0.6822 GB, free: 3.062 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 8.627e-05/0.1909, allocations: 28 kB / 0.6823 GB, free: 3.035 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001071/0.192, allocations: 0.62 MB / 0.6829 GB, free: 2.414 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001381/0.1922, allocations: 107.5 kB / 0.683 GB, free: 2.309 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.000274/0.1924, allocations: 222.8 kB / 0.6832 GB, free: 2.09 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.001149/0.1936, allocations: 0.7744 MB / 0.6839 GB, free: 1.312 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1936, allocations: 0 / 0.6839 GB, free: 1.312 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.363e-06/0.1936, allocations: 0 / 0.6839 GB, free: 1.312 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.67e-05/0.1936, allocations: 4 kB / 0.684 GB, free: 1.309 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001353/0.195, allocations: 0.8438 MB / 0.6848 GB, free: 424 kB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.1951, allocations: 11.97 kB / 0.6848 GB, free: 412 kB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.964e-05/0.1951, allocations: 54.73 kB / 0.6848 GB, free: 348 kB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001302/0.1953, allocations: 60.55 kB / 0.6849 GB, free: 288 kB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007315/0.196, allocations: 440.8 kB / 0.6853 GB, free: 15.81 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.188e-05/0.196, allocations: 20.44 kB / 0.6853 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.019e-05/0.1961, allocations: 28 kB / 0.6854 GB, free: 15.76 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004228/0.1965, allocations: 215.2 kB / 0.6856 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.1965, allocations: 3.938 kB / 0.6856 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.148e-05/0.1966, allocations: 8 kB / 0.6856 GB, free: 15.53 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.1966, allocations: 4 kB / 0.6856 GB, free: 15.53 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003736/0.1969, allocations: 169.6 kB / 0.6857 GB, free: 15.36 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.001559/0.1985, allocations: 0.9499 MB / 0.6867 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000277/0.1988, allocations: 134.6 kB / 0.6868 GB, free: 14.19 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001481/0.199, allocations: 68.81 kB / 0.6869 GB, free: 14.12 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000264/0.1992, allocations: 336.4 kB / 0.6872 GB, free: 13.72 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.424e-05/0.1993, allocations: 34.56 kB / 0.6872 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=14): time 1.393e-06/0.1993, allocations: 0 / 0.6872 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of matching and sorting (n=14): time 0.0006259/0.1999, allocations: 244.3 kB / 0.6875 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.407e-05/0.1999, allocations: 55.41 kB / 0.6875 GB, free: 13.37 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004882/0.2004, allocations: 477.9 kB / 0.688 GB, free: 12.89 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.152e-05/0.2005, allocations: 29.7 kB / 0.688 GB, free: 12.86 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001616/0.2006, allocations: 224.8 kB / 0.6882 GB, free: 12.63 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 4.228e-05/0.2007, allocations: 55.53 kB / 0.6883 GB, free: 12.58 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.739e-05/0.2008, allocations: 61.69 kB / 0.6883 GB, free: 12.51 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001198/0.2009, allocations: 346.8 kB / 0.6886 GB, free: 12.16 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001813/0.2011, allocations: 80.75 kB / 0.6887 GB, free: 12.08 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002507/0.2014, allocations: 151.7 kB / 0.6889 GB, free: 11.91 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003307/0.2017, allocations: 168 kB / 0.689 GB, free: 11.73 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.165e-06/0.2017, allocations: 0 / 0.689 GB, free: 11.73 MB / 0.5294 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005122/0.2022, allocations: 255.3 kB / 0.6893 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.2023, allocations: 7.984 kB / 0.6893 GB, free: 11.47 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.2023, allocations: 0 / 0.6893 GB, free: 11.47 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.2023, allocations: 11.94 kB / 0.6893 GB, free: 11.46 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002236/0.2025, allocations: 47.97 kB / 0.6893 GB, free: 11.41 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.2025, allocations: 3.938 kB / 0.6893 GB, free: 11.41 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003052/0.2028, allocations: 35.77 kB / 0.6894 GB, free: 11.38 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.898e-05/0.2029, allocations: 11.98 kB / 0.6894 GB, free: 11.36 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002685/0.2032, allocations: 188.1 kB / 0.6896 GB, free: 11.18 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002525/0.2034, allocations: 172.9 kB / 0.6897 GB, free: 10.98 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003236/0.2038, allocations: 168.5 kB / 0.6899 GB, free: 10.8 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.593e-06/0.2038, allocations: 0 / 0.6899 GB, free: 10.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0005002/0.2043, allocations: 265.1 kB / 0.6901 GB, free: 10.53 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.656e-06/0.2043, allocations: 4 kB / 0.6901 GB, free: 10.53 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.604e-06/0.2043, allocations: 0 / 0.6901 GB, free: 10.53 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.398e-06/0.2043, allocations: 4 kB / 0.6902 GB, free: 10.52 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001941/0.2045, allocations: 51.97 kB / 0.6902 GB, free: 10.47 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.487e-06/0.2045, allocations: 0 / 0.6902 GB, free: 10.47 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003267/0.2048, allocations: 39.84 kB / 0.6902 GB, free: 10.43 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.249e-05/0.2049, allocations: 15.94 kB / 0.6903 GB, free: 10.42 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 (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001068/0.205, allocations: 188.2 kB / 0.6904 GB, free: 10.23 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.41e-05/0.2051, allocations: 43.72 kB / 0.6905 GB, free: 10.18 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000512/0.2056, allocations: 253.1 kB / 0.6907 GB, free: 9.926 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/0.2056, allocations: 7.984 kB / 0.6907 GB, free: 9.918 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.2056, allocations: 0 / 0.6907 GB, free: 9.918 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.2056, allocations: 3.938 kB / 0.6907 GB, free: 9.914 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008956/0.2065, allocations: 0.6968 MB / 0.6914 GB, free: 9.148 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.2065, allocations: 7.938 kB / 0.6914 GB, free: 9.141 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001187/0.2067, allocations: 31.86 kB / 0.6914 GB, free: 9.109 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.2067, allocations: 4 kB / 0.6915 GB, free: 9.105 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/0.2067, allocations: 4 kB / 0.6915 GB, free: 9.102 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/0.2067, allocations: 7.984 kB / 0.6915 GB, free: 9.094 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2067, allocations: 0 / 0.6915 GB, free: 9.094 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004401/0.2072, allocations: 347.5 kB / 0.6918 GB, free: 8.73 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001324/0.2073, allocations: 140.7 kB / 0.6919 GB, free: 8.574 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.006e-05/0.2074, allocations: 4 kB / 0.6919 GB, free: 8.57 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002054/0.2076, allocations: 27.92 kB / 0.692 GB, free: 8.543 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.319e-05/0.2076, allocations: 7.984 kB / 0.692 GB, free: 8.535 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.62e-05/0.2076, allocations: 12 kB / 0.692 GB, free: 8.523 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003194/0.208, allocations: 330.9 kB / 0.6923 GB, free: 8.203 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/0.208, allocations: 0 / 0.6923 GB, free: 8.203 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0005918/0.2086, allocations: 207.5 kB / 0.6925 GB, free: 8 MB / 0.5294 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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001597/0.2102, allocations: 1.243 MB / 0.6937 GB, free: 6.887 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0006/0.2108, allocations: 277.5 kB / 0.694 GB, free: 6.617 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2108, allocations: 0 / 0.694 GB, free: 6.617 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0001768/0.211, allocations: 83.89 kB / 0.6941 GB, free: 6.535 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009604/0.2119, allocations: 201.9 kB / 0.6942 GB, free: 6.344 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00385/0.2158, allocations: 3.354 MB / 0.6975 GB, free: 2.883 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003344/0.2162, allocations: 0.823 MB / 0.6983 GB, free: 2.031 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0002447/0.2164, allocations: 98.52 kB / 0.6984 GB, free: 1.938 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001747/0.2166, allocations: 139.4 kB / 0.6985 GB, free: 1.801 MB / 0.5294 GB Notification: Performance of SimCode: time 2.4e-07/0.2166, allocations: 0 / 0.6985 GB, free: 1.801 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03306/0.2497, allocations: 12.8 MB / 0.7111 GB, free: 5.191 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.904/8.154, allocations: 6.188 kB / 0.7111 GB, free: 5.188 MB / 0.545 GB (rm -f IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesTable_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_Actuators_Valves_Examples_TwoWayValvesTable.fmu > IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1)