Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.RestrictionTestSimple.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.RestrictionTestSimple,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_RestrictionTestSimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.RestrictionTestSimple,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_RestrictionTestSimple",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.0008243/0.0008244, allocations: 97.33 kB / 15.36 MB, free: 0.7344 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.004898/0.004898, allocations: 169.8 kB / 16.27 MB, free: 6.652 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.131/1.131, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.04838/0.04838, allocations: 11.86 MB / 282.6 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.0004912/0.0004912, allocations: 24.2 kB / 343.6 MB, free: 22.02 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06614/0.06664, allocations: 50.21 MB / 393.9 MB, free: 3.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.RestrictionTestSimple): time 0.00206/0.06873, allocations: 2.054 MB / 395.9 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008429/0.06959, allocations: 0.6553 MB / 396.6 MB, free: 1.027 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.366e-05/0.06967, allocations: 0 / 396.6 MB, free: 1.027 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.767e-05/0.06971, allocations: 11.92 kB / 396.6 MB, free: 1.016 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002336/0.06995, allocations: 75.52 kB / 396.6 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.268e-05/0.07004, allocations: 19.98 kB / 396.7 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001634/0.07021, allocations: 147.2 kB / 396.8 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.318e-05/0.07031, allocations: 21.11 kB / 396.8 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.524e-05/0.07041, allocations: 51.78 kB / 396.9 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.291e-05/0.07051, allocations: 47.78 kB / 396.9 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.602e-05/0.07053, allocations: 4 kB / 396.9 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.705e-05/0.07059, allocations: 27.92 kB / 397 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.973e-05/0.07062, allocations: 11.92 kB / 397 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.112e-05/0.07069, allocations: 85.38 kB / 397.1 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001326/0.07083, allocations: 107.8 kB / 397.2 MB, free: 432 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.07084, allocations: 3.938 kB / 397.2 MB, free: 428 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.07085, allocations: 0 / 397.2 MB, free: 428 kB / 286.1 MB Notification: Performance of Transformations before backend: time 3.466e-06/0.07086, allocations: 0 / 397.2 MB, free: 428 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0004601/0.07132, allocations: 436.8 kB / 397.6 MB, free: 15.94 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.161e-05/0.07136, allocations: 8.031 kB / 397.6 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.626e-05/0.0714, allocations: 42.75 kB / 397.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.615e-05/0.07144, allocations: 16.73 kB / 397.7 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001619/0.07161, allocations: 196.2 kB / 397.8 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.07163, allocations: 8.312 kB / 397.9 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.81e-05/0.07165, allocations: 15.92 kB / 397.9 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002227/0.07188, allocations: 101.6 kB / 398 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.442e-06/0.0719, allocations: 4 kB / 398 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.07192, allocations: 8 kB / 398 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.07193, allocations: 0 / 398 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002275/0.07216, allocations: 91.89 kB / 398.1 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000614/0.07278, allocations: 0.5823 MB / 398.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001941/0.07299, allocations: 90.55 kB / 398.7 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001219/0.07312, allocations: 56.95 kB / 398.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.617e-05/0.07314, allocations: 4 kB / 398.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.264e-05/0.07317, allocations: 42.55 kB / 398.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.123e-06/0.07318, allocations: 3.938 kB / 398.8 MB, free: 14.51 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001357/0.07454, allocations: 484.2 kB / 399.3 MB, free: 14.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.407e-05/0.07459, allocations: 81.11 kB / 399.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.371e-05/0.07469, allocations: 137.8 kB / 399.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.217e-05/0.07472, allocations: 34.36 kB / 399.6 MB, free: 13.74 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.19e-05/0.07477, allocations: 100 kB / 399.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.05e-05/0.07481, allocations: 35.45 kB / 399.7 MB, free: 13.6 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.525e-05/0.07484, allocations: 13.72 kB / 399.7 MB, free: 13.58 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.831e-05/0.07494, allocations: 322.8 kB / 400 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001728/0.07512, allocations: 59.95 kB / 400.1 MB, free: 13.2 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001755/0.0753, allocations: 73.61 kB / 400.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003649/0.07568, allocations: 193 kB / 400.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.31e-07/0.07569, allocations: 0 / 400.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004162/0.07611, allocations: 203.1 kB / 400.5 MB, free: 12.7 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.591e-05/0.07614, allocations: 33.7 kB / 400.6 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.07615, allocations: 4.031 kB / 400.6 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.786e-06/0.07617, allocations: 0 / 400.6 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001641/0.07633, allocations: 31.97 kB / 400.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.827e-06/0.07635, allocations: 0 / 400.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001147/0.07647, allocations: 15.98 kB / 400.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.466e-06/0.07648, allocations: 4 kB / 400.6 MB, free: 12.61 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * 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.0001026/0.07659, allocations: 159.5 kB / 400.8 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.365e-05/0.07663, allocations: 11.84 kB / 400.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004993/0.07714, allocations: 236.2 kB / 401 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.07715, allocations: 0 / 401 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.07716, allocations: 0 / 401 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.07717, allocations: 3.984 kB / 401 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001942/0.07737, allocations: 221.5 kB / 401.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.07738, allocations: 7.922 kB / 401.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001489/0.07753, allocations: 39.92 kB / 401.3 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.07754, allocations: 4 kB / 401.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.887e-06/0.07756, allocations: 0 / 401.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.07756, allocations: 0 / 401.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.07757, allocations: 0 / 401.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004425/0.07801, allocations: 305.1 kB / 401.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.457e-05/0.0781, allocations: 104.9 kB / 401.7 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.978e-05/0.07813, allocations: 3.938 kB / 401.7 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001439/0.07828, allocations: 27.95 kB / 401.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.012e-05/0.07832, allocations: 7.984 kB / 401.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.995e-06/0.07834, allocations: 4 kB / 401.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.598e-05/0.07841, allocations: 111.3 kB / 401.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.07841, allocations: 0 / 401.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002362/0.07866, allocations: 39.98 kB / 401.9 MB, free: 11.23 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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 1 * 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.0006754/0.07934, allocations: 0.8505 MB / 402.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004213/0.07977, allocations: 202.6 kB / 402.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.07978, allocations: 0 / 402.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00022/0.08001, allocations: 135.4 kB / 403.1 MB, free: 9.996 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003155/0.08033, allocations: 36.09 kB / 403.1 MB, free: 9.961 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002092/0.08243, allocations: 1.924 MB / 405 MB, free: 7.941 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002279/0.08267, allocations: 0.7048 MB / 405.7 MB, free: 7.211 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.247e-05/0.08275, allocations: 21.2 kB / 405.8 MB, free: 7.191 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.027e-05/0.08282, allocations: 39.42 kB / 405.8 MB, free: 7.152 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.08283, allocations: 0 / 405.8 MB, free: 7.152 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01131/0.09414, allocations: 3.176 MB / 409 MB, free: 4.031 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000196/0.09436, allocations: 214.2 kB / 409.2 MB, free: 3.766 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.496/1.59, allocations: 0 / 409.2 MB, free: 3.766 MB / 302.1 MB (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.RestrictionTestSimple.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.RestrictionTestSimple.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.RestrictionTestSimple.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.RestrictionTestSimple.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenHydraulics_OpenHydraulics_DevelopmentTests_RestrictionTestSimple_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 OpenHydraulics_OpenHydraulics_DevelopmentTests_RestrictionTestSimple.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.RestrictionTestSimple.pipe 2>&1)