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.001164/0.001164, 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.001176/0.001176, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.157/1.157, allocations: 205.1 MB / 222.4 MB, free: 4.605 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05307/0.05307, allocations: 11.84 MB / 281.6 MB, free: 9.445 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.001548/0.001548, allocations: 75.28 kB / 341.9 MB, free: 21.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07083/0.07239, allocations: 49.21 MB / 391.2 MB, free: 4.609 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.VariableRestrictionTestSimple): time 0.003705/0.07613, allocations: 2.414 MB / 393.6 MB, free: 2.172 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002848/0.079, allocations: 2.123 MB / 395.7 MB, free: 44 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001738/0.07922, allocations: 4 kB / 395.7 MB, free: 40 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003569/0.07958, allocations: 79.62 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.0003474/0.07995, allocations: 123 kB / 395.9 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008648/0.08082, allocations: 414.6 kB / 396.3 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003018/0.08113, allocations: 250.8 kB / 396.5 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001211/0.08126, allocations: 44.38 kB / 396.6 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001616/0.08143, allocations: 87.64 kB / 396.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001643/0.0816, allocations: 111.5 kB / 396.8 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.143e-05/0.08164, allocations: 12 kB / 396.8 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000361/0.08201, allocations: 199.8 kB / 397 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.465e-05/0.08209, allocations: 47.77 kB / 397 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001005/0.0822, allocations: 103.4 kB / 397.1 MB, free: 14.6 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004512/0.08266, allocations: 355 kB / 397.5 MB, free: 14.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.08267, allocations: 0 / 397.5 MB, free: 14.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.08268, allocations: 0 / 397.5 MB, free: 14.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.727e-06/0.08269, 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.0007214/0.08342, allocations: 0.5451 MB / 398 MB, free: 13.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.08346, allocations: 19.88 kB / 398 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.852e-05/0.08352, allocations: 42.75 kB / 398.1 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.326e-05/0.08358, allocations: 24.66 kB / 398.1 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002682/0.08385, allocations: 258.6 kB / 398.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.276e-05/0.08387, allocations: 11.94 kB / 398.4 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.518e-05/0.0839, allocations: 12 kB / 398.4 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003226/0.08423, allocations: 157.6 kB / 398.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.08425, allocations: 0 / 398.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.603e-05/0.08427, allocations: 4 kB / 398.5 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.08428, allocations: 8 kB / 398.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003542/0.08464, allocations: 151.9 kB / 398.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001015/0.08567, allocations: 0.7939 MB / 399.5 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002451/0.08593, allocations: 118.5 kB / 399.6 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001347/0.08607, allocations: 44.84 kB / 399.7 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.334e-05/0.08616, allocations: 85.09 kB / 399.7 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.732e-05/0.0862, allocations: 42.56 kB / 399.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.393e-06/0.08621, allocations: 0 / 399.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.001502/0.08771, allocations: 400.5 kB / 400.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.231e-05/0.08777, allocations: 55.41 kB / 400.2 MB, free: 11.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002758/0.08805, allocations: 282.6 kB / 400.5 MB, free: 10.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.844e-05/0.08808, allocations: 25.7 kB / 400.5 MB, free: 10.92 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.919e-05/0.08818, allocations: 147.8 kB / 400.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.373e-05/0.08822, allocations: 35.47 kB / 400.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.163e-05/0.08829, allocations: 37.7 kB / 400.7 MB, free: 10.69 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.08841, allocations: 334.8 kB / 401.1 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002151/0.08863, allocations: 63.89 kB / 401.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002204/0.08886, allocations: 100.2 kB / 401.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004115/0.08928, allocations: 156.2 kB / 401.4 MB, free: 10.01 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.08929, 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.0005182/0.08982, allocations: 205.2 kB / 401.6 MB, free: 9.801 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.08985, allocations: 11.98 kB / 401.6 MB, free: 9.789 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.08986, allocations: 0 / 401.6 MB, free: 9.789 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.08988, allocations: 0 / 401.6 MB, free: 9.789 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002261/0.09011, allocations: 48.03 kB / 401.6 MB, free: 9.742 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.73e-06/0.09013, allocations: 0 / 401.6 MB, free: 9.742 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001497/0.09028, allocations: 19.92 kB / 401.7 MB, free: 9.723 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.611e-05/0.0903, allocations: 8 kB / 401.7 MB, free: 9.715 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.0001267/0.09044, allocations: 138.7 kB / 401.8 MB, free: 9.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.127e-05/0.09049, allocations: 31.66 kB / 401.8 MB, free: 9.539 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005495/0.09105, allocations: 195.8 kB / 402 MB, free: 9.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.09106, allocations: 0 / 402 MB, free: 9.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.09107, allocations: 4 kB / 402 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.09108, allocations: 7.875 kB / 402 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002667/0.09135, allocations: 261.5 kB / 402.3 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.09137, allocations: 3.984 kB / 402.3 MB, free: 9.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001755/0.09155, allocations: 31.98 kB / 402.3 MB, free: 8.988 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.09156, allocations: 3.984 kB / 402.3 MB, free: 8.984 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.671e-05/0.09158, allocations: 4 kB / 402.3 MB, free: 8.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.09159, allocations: 7.938 kB / 402.3 MB, free: 8.973 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.0916, allocations: 0 / 402.3 MB, free: 8.973 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004984/0.0921, allocations: 279.4 kB / 402.6 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.988e-05/0.0922, allocations: 108.8 kB / 402.7 MB, free: 8.559 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.525e-05/0.09224, allocations: 4 kB / 402.7 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001588/0.0924, allocations: 11.98 kB / 402.7 MB, free: 8.543 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.888e-05/0.09246, allocations: 15.92 kB / 402.8 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.008e-05/0.09248, allocations: 4 kB / 402.8 MB, free: 8.523 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001894/0.09267, allocations: 205.9 kB / 403 MB, free: 8.324 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.09268, allocations: 4 kB / 403 MB, free: 8.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003538/0.09304, allocations: 76 kB / 403 MB, free: 8.246 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.001514/0.09456, allocations: 1.128 MB / 404.2 MB, free: 7.199 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005023/0.09508, allocations: 155.8 kB / 404.3 MB, free: 7.047 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.09509, allocations: 0 / 404.3 MB, free: 7.047 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002077/0.0953, allocations: 67.89 kB / 404.4 MB, free: 6.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004485/0.09576, allocations: 60.66 kB / 404.4 MB, free: 6.922 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003007/0.09877, allocations: 2.374 MB / 406.8 MB, free: 4.441 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002861/0.09908, allocations: 0.7398 MB / 407.6 MB, free: 3.672 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001316/0.09922, allocations: 33.92 kB / 407.6 MB, free: 3.637 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.905e-05/0.09932, allocations: 63.42 kB / 407.7 MB, free: 3.574 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.09933, allocations: 3.938 kB / 407.7 MB, free: 3.57 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02116/0.1205, allocations: 6.247 MB / 413.9 MB, free: 13.27 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.073/7.193, allocations: 3.938 kB / 413.9 MB, free: 13.27 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenHydraulics_OpenHydraulics_DevelopmentTests_VariableRestrictionTestSimple_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 OpenHydraulics_OpenHydraulics_DevelopmentTests_VariableRestrictionTestSimple.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.VariableRestrictionTestSimple.pipe 2>&1)