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.001204/0.001204, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001304/0.001304, allocations: 194.5 kB / 16.53 MB, free: 6.664 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.322/1.322, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05332/0.05332, allocations: 11.84 MB / 281.6 MB, free: 9.426 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.001706/0.001706, allocations: 75.33 kB / 341.9 MB, free: 21.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08067/0.08239, allocations: 49.21 MB / 391.2 MB, free: 4.605 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.VariableRestrictionTestSimple): time 0.00376/0.08619, allocations: 2.418 MB / 393.6 MB, free: 2.164 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002857/0.08908, allocations: 2.108 MB / 395.7 MB, free: 52 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002077/0.08934, allocations: 4 kB / 395.7 MB, free: 48 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003842/0.08974, allocations: 83.45 kB / 395.8 MB, free: 15.96 MB / 302.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.0004293/0.09019, allocations: 127.2 kB / 395.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001048/0.09125, allocations: 410.6 kB / 396.3 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003441/0.0916, allocations: 246.8 kB / 396.5 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001432/0.09176, allocations: 44.38 kB / 396.6 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001895/0.09195, allocations: 87.64 kB / 396.7 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002032/0.09217, allocations: 111.4 kB / 396.8 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.87e-05/0.09221, allocations: 12 kB / 396.8 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003762/0.0926, allocations: 203.8 kB / 397 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.327e-05/0.09269, allocations: 43.84 kB / 397 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.09281, allocations: 107.3 kB / 397.1 MB, free: 14.6 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005453/0.09336, allocations: 355 kB / 397.5 MB, free: 14.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.09337, allocations: 0 / 397.5 MB, free: 14.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.09338, allocations: 0 / 397.5 MB, free: 14.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.755e-06/0.0934, allocations: 0 / 397.5 MB, free: 14.25 MB / 302.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.0007708/0.09417, allocations: 0.5452 MB / 398 MB, free: 13.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.09422, allocations: 11.89 kB / 398 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.653e-05/0.09427, allocations: 46.73 kB / 398.1 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.036e-05/0.09434, allocations: 28.66 kB / 398.1 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002817/0.09462, allocations: 266.5 kB / 398.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/0.09465, allocations: 8 kB / 398.4 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.171e-05/0.09468, allocations: 16 kB / 398.4 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003172/0.095, allocations: 149.6 kB / 398.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.09502, allocations: 0 / 398.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.722e-05/0.09504, allocations: 4 kB / 398.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.766e-06/0.09506, allocations: 4 kB / 398.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003499/0.09541, allocations: 159.8 kB / 398.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001058/0.09648, allocations: 0.7939 MB / 399.5 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000255/0.09675, allocations: 106.6 kB / 399.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001424/0.0969, allocations: 56.91 kB / 399.7 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.23e-05/0.097, allocations: 89.08 kB / 399.7 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.562e-05/0.09704, allocations: 34.56 kB / 399.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.573e-06/0.09705, allocations: 0 / 399.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.001513/0.09857, allocations: 404.4 kB / 400.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.114e-05/0.09862, allocations: 55.41 kB / 400.2 MB, free: 11.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002927/0.09892, allocations: 282.6 kB / 400.5 MB, free: 10.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.232e-05/0.09895, allocations: 29.7 kB / 400.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.597e-05/0.09905, allocations: 147.8 kB / 400.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.833e-05/0.0991, allocations: 31.47 kB / 400.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.959e-05/0.09917, allocations: 33.7 kB / 400.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.0993, allocations: 338.8 kB / 401.1 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002053/0.09951, allocations: 63.89 kB / 401.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000221/0.09974, allocations: 100.2 kB / 401.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003937/0.1001, allocations: 156.2 kB / 401.4 MB, free: 10.01 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.1002, allocations: 3.938 kB / 401.4 MB, free: 10.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005266/0.1007, allocations: 213.2 kB / 401.6 MB, free: 9.793 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.1007, allocations: 8 kB / 401.6 MB, free: 9.785 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.1007, allocations: 0 / 401.6 MB, free: 9.785 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.1007, allocations: 3.984 kB / 401.6 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002322/0.101, allocations: 39.97 kB / 401.6 MB, free: 9.742 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.101, allocations: 4.125 kB / 401.6 MB, free: 9.738 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001555/0.1012, allocations: 15.92 kB / 401.7 MB, free: 9.723 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.714e-05/0.1012, allocations: 12 kB / 401.7 MB, free: 9.711 MB / 302.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.0001328/0.1013, allocations: 138.6 kB / 401.8 MB, free: 9.566 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.325e-05/0.1014, allocations: 23.72 kB / 401.8 MB, free: 9.543 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005491/0.1019, allocations: 195.8 kB / 402 MB, free: 9.344 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.102, allocations: 7.938 kB / 402 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.102, allocations: 0 / 402 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.102, allocations: 7.922 kB / 402 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002882/0.1023, allocations: 265.5 kB / 402.3 MB, free: 9.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.1023, allocations: 7.938 kB / 402.3 MB, free: 9.012 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001732/0.1025, allocations: 31.97 kB / 402.3 MB, free: 8.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.387e-06/0.1025, allocations: 4 kB / 402.3 MB, free: 8.977 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.547e-05/0.1025, allocations: 3.984 kB / 402.3 MB, free: 8.973 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.1025, allocations: 4 kB / 402.3 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1025, allocations: 0 / 402.3 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000517/0.103, allocations: 275.1 kB / 402.6 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/0.1032, allocations: 116.8 kB / 402.7 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.649e-05/0.1032, allocations: 0 / 402.7 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001581/0.1034, allocations: 15.98 kB / 402.7 MB, free: 8.535 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.134e-05/0.1034, allocations: 15.86 kB / 402.8 MB, free: 8.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.769e-06/0.1034, allocations: 4 kB / 402.8 MB, free: 8.516 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002079/0.1037, allocations: 206 kB / 403 MB, free: 8.316 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1037, allocations: 0 / 403 MB, free: 8.316 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003905/0.1041, allocations: 75.98 kB / 403 MB, free: 8.242 MB / 302.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.001575/0.1056, allocations: 1.118 MB / 404.2 MB, free: 7.215 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004887/0.1061, allocations: 159.8 kB / 404.3 MB, free: 7.059 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.1062, allocations: 0 / 404.3 MB, free: 7.059 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002093/0.1064, allocations: 71.89 kB / 404.4 MB, free: 6.988 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004999/0.1069, allocations: 64.58 kB / 404.4 MB, free: 6.926 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003137/0.11, allocations: 2.37 MB / 406.8 MB, free: 4.449 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003085/0.1104, allocations: 0.7398 MB / 407.6 MB, free: 3.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001473/0.1105, allocations: 37.92 kB / 407.6 MB, free: 3.641 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001071/0.1106, allocations: 59.42 kB / 407.7 MB, free: 3.582 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1106, allocations: 7.938 kB / 407.7 MB, free: 3.574 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02343/0.1341, allocations: 6.24 MB / 413.9 MB, free: 13.29 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.086/7.22, allocations: 3.938 kB / 413.9 MB, free: 13.28 MB / 318.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)