Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.VariableRestrictionTestSimple.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.VariableRestrictionTestSimple,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_VariableRestrictionTestSimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.VariableRestrictionTestSimple,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_VariableRestrictionTestSimple",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.00637/0.00637, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001408/0.001408, allocations: 201.8 kB / 16.68 MB, free: 5.969 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.362/1.362, allocations: 205.1 MB / 222.6 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05459/0.05459, allocations: 11.84 MB / 281.8 MB, free: 9.359 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.001654/0.001654, allocations: 67.91 kB / 391.8 MB, free: 3.984 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2572/0.2588, allocations: 49.23 MB / 441.1 MB, free: 4.16 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.VariableRestrictionTestSimple): time 0.003269/0.2621, allocations: 2.412 MB / 443.5 MB, free: 2.465 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002378/0.2645, allocations: 2.122 MB / 445.6 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001356/0.2647, allocations: 3 kB / 445.6 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003252/0.265, allocations: 77.88 kB / 445.7 MB, free: 0.9375 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003334/0.2654, allocations: 126.9 kB / 445.8 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008849/0.2663, allocations: 419.2 kB / 446.2 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002777/0.2666, allocations: 251.7 kB / 446.5 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.2667, allocations: 48.5 kB / 446.5 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001529/0.2668, allocations: 98.72 kB / 446.6 MB, free: 468 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001386/0.267, allocations: 102.2 kB / 446.7 MB, free: 420 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.7e-05/0.267, allocations: 11.94 kB / 446.7 MB, free: 420 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003429/0.2674, allocations: 207.2 kB / 446.9 MB, free: 364 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.674e-05/0.2675, allocations: 43.22 kB / 447 MB, free: 340 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.253e-05/0.2675, allocations: 98.77 kB / 447.1 MB, free: 276 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000486/0.268, allocations: 358.8 kB / 447.4 MB, free: 132 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2681, allocations: 1.094 kB / 447.4 MB, free: 132 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2681, allocations: 0 / 447.4 MB, free: 132 kB / 318.1 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.2681, allocations: 0 / 447.4 MB, free: 132 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007371/0.2688, allocations: 0.5579 MB / 448 MB, free: 15.63 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.2689, allocations: 17.94 kB / 448 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.599e-05/0.2689, allocations: 45.58 kB / 448 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.202e-05/0.269, allocations: 24.69 kB / 448 MB, free: 15.56 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003315/0.2693, allocations: 271.6 kB / 448.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.323e-05/0.2693, allocations: 10.62 kB / 448.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.087e-05/0.2694, allocations: 12.66 kB / 448.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000354/0.2697, allocations: 152.6 kB / 448.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.2697, allocations: 0 / 448.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.72e-05/0.2698, allocations: 5.25 kB / 448.5 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.2698, allocations: 4.25 kB / 448.5 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003648/0.2701, allocations: 152.8 kB / 448.6 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001004/0.2711, allocations: 0.7952 MB / 449.4 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002439/0.2714, allocations: 102.1 kB / 449.5 MB, free: 14.31 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001474/0.2716, allocations: 58.92 kB / 449.6 MB, free: 14.28 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.275e-05/0.2717, allocations: 86.62 kB / 449.7 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.986e-05/0.2717, allocations: 30.56 kB / 449.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.172e-06/0.2717, allocations: 1.188 kB / 449.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.001451/0.2731, allocations: 412.6 kB / 450.1 MB, free: 13.92 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.951e-05/0.2732, allocations: 55.41 kB / 450.2 MB, free: 13.85 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002605/0.2735, allocations: 287.7 kB / 450.4 MB, free: 13.66 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.945e-05/0.2735, allocations: 29.7 kB / 450.5 MB, free: 13.63 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.2736, allocations: 151.2 kB / 450.6 MB, free: 13.49 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.426e-05/0.2736, allocations: 36.38 kB / 450.7 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.32e-05/0.2737, allocations: 38.69 kB / 450.7 MB, free: 13.43 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.2738, allocations: 331.4 kB / 451 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002028/0.274, allocations: 63.94 kB / 451.1 MB, free: 13.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002128/0.2742, allocations: 89.31 kB / 451.2 MB, free: 13 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004029/0.2747, allocations: 164.3 kB / 451.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.2747, allocations: 1.281 kB / 451.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004982/0.2752, allocations: 213.5 kB / 451.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.2752, allocations: 5.625 kB / 451.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.2752, allocations: 2 kB / 451.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.2752, allocations: 1.844 kB / 451.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002224/0.2755, allocations: 41.72 kB / 451.6 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.2755, allocations: 1.062 kB / 451.6 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001528/0.2756, allocations: 24.67 kB / 451.6 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.621e-05/0.2757, allocations: 9.922 kB / 451.6 MB, free: 12.74 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (leakage.data.zetaLaminarKnown) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001153/0.2758, allocations: 134.1 kB / 451.8 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.08e-05/0.2758, allocations: 21.98 kB / 451.8 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005355/0.2764, allocations: 202.2 kB / 452 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.2764, allocations: 1.375 kB / 452 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.2764, allocations: 0 / 452 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.2764, allocations: 3.938 kB / 452 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002779/0.2767, allocations: 273.5 kB / 452.2 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.2767, allocations: 1.375 kB / 452.2 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001759/0.2769, allocations: 31.34 kB / 452.3 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.2769, allocations: 1.938 kB / 452.3 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.126e-05/0.2769, allocations: 1.375 kB / 452.3 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.2769, allocations: 9.312 kB / 452.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.2769, allocations: 7.984 kB / 452.3 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004794/0.2774, allocations: 283.1 kB / 452.6 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.3e-05/0.2775, allocations: 109.2 kB / 452.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.465e-05/0.2776, allocations: 5.312 kB / 452.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001766/0.2777, allocations: 22.84 kB / 452.7 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.404e-05/0.2778, allocations: 13.42 kB / 452.7 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.418e-06/0.2778, allocations: 2.75 kB / 452.7 MB, free: 11.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001764/0.278, allocations: 205.3 kB / 452.9 MB, free: 11.68 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.278, allocations: 1.375 kB / 452.9 MB, free: 11.68 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003944/0.2784, allocations: 78.98 kB / 453 MB, free: 11.66 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (12): * Single equations (assignments): 12 * 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.001515/0.2799, allocations: 1.118 MB / 454.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004856/0.2804, allocations: 145.8 kB / 454.3 MB, free: 10.69 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.2804, allocations: 4.25 kB / 454.3 MB, free: 10.69 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002092/0.2806, allocations: 72.86 kB / 454.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004619/0.2811, allocations: 66.31 kB / 454.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003123/0.2843, allocations: 2.371 MB / 456.8 MB, free: 8.785 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002944/0.2846, allocations: 0.7418 MB / 457.5 MB, free: 8.055 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001467/0.2847, allocations: 35.66 kB / 457.6 MB, free: 8.039 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001128/0.2848, allocations: 60.77 kB / 457.6 MB, free: 7.992 MB / 334.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2849, allocations: 0 / 457.6 MB, free: 7.992 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02436/0.3092, allocations: 6.35 MB / 464 MB, free: 3.941 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.619/7.929, allocations: 12.36 kB / 464 MB, free: 3.93 MB / 334.1 MB (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.VariableRestrictionTestSimple.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.VariableRestrictionTestSimple.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.VariableRestrictionTestSimple.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.VariableRestrictionTestSimple.sim & python3 -m fmpy simulate --output-file OpenHydraulics_OpenHydraulics.DevelopmentTests.VariableRestrictionTestSimple_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 OpenHydraulics_OpenHydraulics_DevelopmentTests_VariableRestrictionTestSimple.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.VariableRestrictionTestSimple.pipe 2>&1)