Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.ThrottleValveTest.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo", uses=false) Using package OpenHydraulics with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(OpenHydraulics.DevelopmentTests.ThrottleValveTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_ThrottleValveTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.ThrottleValveTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_ThrottleValveTest",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.004876/0.004876, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001176/0.001176, allocations: 196.3 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.293/1.293, allocations: 205.1 MB / 222.6 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05426/0.05426, allocations: 11.84 MB / 281.8 MB, free: 9.355 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenHydraulics requested package Modelica of version 3.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 71.89 kB / 391.8 MB, free: 4 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2627, allocations: 49.23 MB / 441.1 MB, free: 4.035 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.ThrottleValveTest): time 0.002565/0.2653, allocations: 1.934 MB / 443 MB, free: 2.672 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002082/0.2674, allocations: 1.871 MB / 444.9 MB, free: 1.336 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.84e-05/0.2675, allocations: 2.781 kB / 444.9 MB, free: 1.336 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002074/0.2677, allocations: 46.17 kB / 444.9 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002493/0.268, allocations: 88.97 kB / 445 MB, free: 1.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006553/0.2687, allocations: 338.6 kB / 445.3 MB, free: 1.098 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001777/0.2689, allocations: 177.5 kB / 445.5 MB, free: 1.004 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.269, allocations: 34.66 kB / 445.5 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.876e-05/0.269, allocations: 56.39 kB / 445.6 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.228e-05/0.2691, allocations: 70.05 kB / 445.7 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.158e-05/0.2692, allocations: 9.344 kB / 445.7 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004137/0.2696, allocations: 235.7 kB / 445.9 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.608e-05/0.2696, allocations: 31.7 kB / 445.9 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.613e-05/0.2697, allocations: 69.84 kB / 446 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004061/0.2701, allocations: 288.2 kB / 446.3 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.2701, allocations: 0 / 446.3 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2701, allocations: 1.281 kB / 446.3 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.2701, allocations: 0 / 446.3 MB, free: 0.6953 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0004528/0.2706, allocations: 478 kB / 446.8 MB, free: 252 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.2706, allocations: 13.42 kB / 446.8 MB, free: 248 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.363e-05/0.2707, allocations: 40.72 kB / 446.8 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.22e-05/0.2707, allocations: 20.66 kB / 446.8 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000251/0.271, allocations: 219.1 kB / 447 MB, free: 15.96 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.485e-05/0.271, allocations: 10.12 kB / 447.1 MB, free: 15.96 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.036e-05/0.271, allocations: 13.38 kB / 447.1 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002281/0.2713, allocations: 117.6 kB / 447.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.2713, allocations: 3.938 kB / 447.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.477e-05/0.2713, allocations: 5.156 kB / 447.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.2713, allocations: 2.469 kB / 447.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002129/0.2715, allocations: 120.9 kB / 447.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001073/0.2726, allocations: 0.9256 MB / 448.2 MB, free: 14.92 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000128/0.2728, allocations: 57.05 kB / 448.3 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.299e-05/0.2728, allocations: 26.17 kB / 448.3 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001103/0.2729, allocations: 89.45 kB / 448.4 MB, free: 14.77 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.197e-05/0.273, allocations: 32.38 kB / 448.4 MB, free: 14.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.162e-06/0.273, allocations: 0 / 448.4 MB, free: 14.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002689/0.2732, allocations: 103.2 kB / 448.5 MB, free: 14.66 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.98e-05/0.2733, allocations: 52.2 kB / 448.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001973/0.2735, allocations: 205.9 kB / 448.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.457e-05/0.2735, allocations: 25.7 kB / 448.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.083e-05/0.2736, allocations: 127.5 kB / 448.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.934e-05/0.2736, allocations: 19.8 kB / 449 MB, free: 14.3 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.258e-05/0.2737, allocations: 31.2 kB / 449 MB, free: 14.28 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.569e-05/0.2738, allocations: 325.8 kB / 449.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.465e-05/0.2738, allocations: 28.97 kB / 449.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.01e-05/0.2739, allocations: 25.95 kB / 449.4 MB, free: 13.94 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001138/0.274, allocations: 63.3 kB / 449.4 MB, free: 13.9 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.274, allocations: 0 / 449.4 MB, free: 13.9 MB / 334.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001935/0.2742, allocations: 112.1 kB / 449.5 MB, free: 13.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.2743, allocations: 13.05 kB / 449.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.2743, allocations: 5.156 kB / 449.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.083e-05/0.2743, allocations: 3.938 kB / 449.6 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.581e-05/0.2744, allocations: 20.55 kB / 449.6 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.2744, allocations: 0.7031 kB / 449.6 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.986e-05/0.2745, allocations: 13.92 kB / 449.6 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.116e-05/0.2745, allocations: 4.391 kB / 449.6 MB, free: 13.81 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (10): * Single equations (assignments): 10 * 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 8.249e-05/0.2746, allocations: 125.9 kB / 449.7 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.734e-05/0.2746, allocations: 15.03 kB / 449.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000212/0.2748, allocations: 100.9 kB / 449.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.2749, allocations: 0.5781 kB / 449.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.2749, allocations: 7.5 kB / 449.8 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.2749, allocations: 0.5625 kB / 449.8 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004211/0.2753, allocations: 398.5 kB / 450.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/0.2753, allocations: 5.125 kB / 450.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.933e-05/0.2754, allocations: 11.52 kB / 450.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.2754, allocations: 5.219 kB / 450.2 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.707e-06/0.2754, allocations: 5.25 kB / 450.3 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.2754, allocations: 5.328 kB / 450.3 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.2754, allocations: 5.25 kB / 450.3 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001722/0.2756, allocations: 185.9 kB / 450.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.414e-05/0.2757, allocations: 94.52 kB / 450.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.762e-05/0.2757, allocations: 1.781 kB / 450.5 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.989e-05/0.2758, allocations: 4 kB / 450.5 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.526e-05/0.2758, allocations: 7.031 kB / 450.5 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.131e-06/0.2758, allocations: 1.125 kB / 450.6 MB, free: 12.94 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001265/0.2759, allocations: 159.2 kB / 450.7 MB, free: 12.82 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.276, allocations: 1.188 kB / 450.7 MB, free: 12.82 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003657/0.2763, allocations: 86.72 kB / 450.8 MB, free: 12.79 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (5): * Single equations (assignments): 5 * 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 Backend phase and start with SimCode phase: time 0.0005983/0.2769, allocations: 0.7923 MB / 451.6 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001834/0.2771, allocations: 65.66 kB / 451.6 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2771, allocations: 0 / 451.6 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.895e-05/0.2772, allocations: 21.09 kB / 451.7 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003586/0.2776, allocations: 46.34 kB / 451.7 MB, free: 11.99 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001865/0.2794, allocations: 1.831 MB / 453.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002308/0.2797, allocations: 0.711 MB / 454.3 MB, free: 9.734 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.465e-05/0.2798, allocations: 18.8 kB / 454.3 MB, free: 9.73 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.797e-05/0.2799, allocations: 45.16 kB / 454.3 MB, free: 9.695 MB / 334.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2799, allocations: 4 kB / 454.3 MB, free: 9.691 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02263/0.3025, allocations: 5.059 MB / 459.4 MB, free: 7.02 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.579/7.881, allocations: 6.812 kB / 459.4 MB, free: 7.016 MB / 334.1 MB (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.ThrottleValveTest.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.ThrottleValveTest.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.ThrottleValveTest.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.ThrottleValveTest.sim & python3 -m fmpy simulate --output-file OpenHydraulics_OpenHydraulics.DevelopmentTests.ThrottleValveTest_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 OpenHydraulics_OpenHydraulics_DevelopmentTests_ThrottleValveTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.ThrottleValveTest.pipe 2>&1)