Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTest.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.GenericRestrictionTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_GenericRestrictionTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.GenericRestrictionTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_GenericRestrictionTest",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.001064/0.001064, allocations: 102.9 kB / 15.06 MB, free: 1.098 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.001253/0.001252, allocations: 173.3 kB / 15.95 MB, free: 212 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.275/1.275, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.051/0.051, allocations: 11.85 MB / 282.2 MB, free: 9.477 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.0005959/0.0005961, allocations: 12.22 kB / 343 MB, free: 22.4 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08372/0.08433, allocations: 50.22 MB / 393.2 MB, free: 4.129 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.GenericRestrictionTest): time 0.003056/0.08743, allocations: 2.66 MB / 395.9 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00243/0.08989, allocations: 1.852 MB / 397.7 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001444/0.09006, allocations: 7.938 kB / 397.7 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002236/0.09029, allocations: 47.72 kB / 397.8 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003607/0.09066, allocations: 191.3 kB / 398 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006228/0.09129, allocations: 279 kB / 398.2 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003025/0.0916, allocations: 259.4 kB / 398.5 MB, free: 14.83 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000149/0.09176, allocations: 73.14 kB / 398.6 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001346/0.0919, allocations: 103.6 kB / 398.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001752/0.09209, allocations: 131.5 kB / 398.8 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.791e-05/0.09212, allocations: 12 kB / 398.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003485/0.09248, allocations: 219.7 kB / 399 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.881e-05/0.09254, allocations: 47.83 kB / 399.1 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.348e-05/0.09262, allocations: 77.58 kB / 399.1 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003565/0.09298, allocations: 323.2 kB / 399.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.09299, allocations: 0 / 399.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.093, allocations: 0 / 399.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.09301, allocations: 4 kB / 399.5 MB, free: 13.85 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.0007504/0.09377, allocations: 0.5378 MB / 400 MB, free: 13.26 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.09381, allocations: 8.031 kB / 400 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.36e-05/0.09388, allocations: 66.47 kB / 400.1 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.943e-05/0.09399, allocations: 35.58 kB / 400.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002841/0.09428, allocations: 258.5 kB / 400.3 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.897e-05/0.09431, allocations: 24.5 kB / 400.4 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.014e-05/0.09436, allocations: 24 kB / 400.4 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004408/0.0948, allocations: 271.6 kB / 400.7 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.09483, allocations: 0 / 400.7 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.75e-05/0.09486, allocations: 12 kB / 400.7 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.09488, allocations: 4 kB / 400.7 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003844/0.09527, allocations: 226.1 kB / 400.9 MB, free: 12.3 MB / 302.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001856/0.09713, allocations: 1.452 MB / 402.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000315/0.09746, allocations: 158.8 kB / 402.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001764/0.09765, allocations: 178.2 kB / 402.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.655e-05/0.09769, allocations: 30.56 kB / 402.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.313e-06/0.0977, allocations: 0 / 402.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001801/0.09951, allocations: 0.7682 MB / 403.5 MB, free: 9.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.383e-05/0.09956, allocations: 55.39 kB / 403.5 MB, free: 9.363 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002499/0.09981, allocations: 278.5 kB / 403.8 MB, free: 9.078 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.03e-05/0.09985, allocations: 29.7 kB / 403.8 MB, free: 9.043 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.393e-05/0.09995, allocations: 156.2 kB / 404 MB, free: 8.883 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.21e-05/0.1, allocations: 74.94 kB / 404.1 MB, free: 8.809 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.403e-05/0.1, allocations: 8 kB / 404.1 MB, free: 8.801 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.1002, allocations: 330.8 kB / 404.4 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001726/0.1004, allocations: 85.28 kB / 404.5 MB, free: 8.383 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000201/0.1006, allocations: 134.8 kB / 404.6 MB, free: 8.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001855/0.1008, allocations: 88 kB / 404.7 MB, free: 8.145 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1008, allocations: 4 kB / 404.7 MB, free: 8.141 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004662/0.1012, allocations: 265.1 kB / 405 MB, free: 7.875 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.1013, allocations: 8.156 kB / 405 MB, free: 7.867 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.1013, allocations: 8 kB / 405 MB, free: 7.859 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.1013, allocations: 0 / 405 MB, free: 7.859 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002659/0.1016, allocations: 71.89 kB / 405 MB, free: 7.789 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.1016, allocations: 7.938 kB / 405 MB, free: 7.781 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001616/0.1018, allocations: 19.94 kB / 405.1 MB, free: 7.762 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.309e-05/0.1018, allocations: 12 kB / 405.1 MB, free: 7.75 MB / 302.1 MB Warning: Assuming fixed start value for the following 1 variables: idealPump.phi:VARIABLE(unit = "rad" fixed = true ) "Angle of rotation of pump" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001687/0.102, allocations: 145.8 kB / 405.2 MB, free: 7.598 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.659e-05/0.102, allocations: 23.72 kB / 405.2 MB, free: 7.574 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000483/0.1025, allocations: 243.6 kB / 405.5 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.1025, allocations: 4 kB / 405.5 MB, free: 7.328 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.1025, allocations: 0 / 405.5 MB, free: 7.328 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.1025, allocations: 3.984 kB / 405.5 MB, free: 7.324 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000871/0.1034, allocations: 0.636 MB / 406.1 MB, free: 6.629 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.1034, allocations: 0 / 406.1 MB, free: 6.629 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002626/0.1037, allocations: 67.89 kB / 406.2 MB, free: 6.562 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.1037, allocations: 4 kB / 406.2 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.737e-05/0.1037, allocations: 4 kB / 406.2 MB, free: 6.555 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.89e-06/0.1038, allocations: 7.953 kB / 406.2 MB, free: 6.547 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1038, allocations: 0 / 406.2 MB, free: 6.547 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006035/0.1044, allocations: 425.8 kB / 406.6 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001165/0.1045, allocations: 120.7 kB / 406.7 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.321e-05/0.1045, allocations: 20 kB / 406.8 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001647/0.1047, allocations: 8 kB / 406.8 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.811e-05/0.1048, allocations: 23.91 kB / 406.8 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.377e-05/0.1048, allocations: 4 kB / 406.8 MB, free: 5.914 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001877/0.105, allocations: 198 kB / 407 MB, free: 5.723 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.105, allocations: 0 / 407 MB, free: 5.723 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004081/0.1054, allocations: 115.9 kB / 407.1 MB, free: 5.609 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (idealPump.phi,circuitTank.volumeOpen.m) * 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 (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001083/0.1065, allocations: 1.096 MB / 408.2 MB, free: 4.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000409/0.1069, allocations: 195.6 kB / 408.4 MB, free: 4.293 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1069, allocations: 0 / 408.4 MB, free: 4.293 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001795/0.1071, allocations: 95.83 kB / 408.5 MB, free: 4.199 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003563/0.1075, allocations: 60.72 kB / 408.5 MB, free: 4.141 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002796/0.1103, allocations: 2.667 MB / 411.2 MB, free: 1.391 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003083/0.1106, allocations: 0.7674 MB / 412 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001544/0.1108, allocations: 46.88 kB / 412 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000129/0.1109, allocations: 91.41 kB / 412.1 MB, free: 472 kB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1109, allocations: 0 / 412.1 MB, free: 472 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01902/0.1299, allocations: 7.146 MB / 419.3 MB, free: 9.395 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001641/0.1301, allocations: 191.7 kB / 419.4 MB, free: 9.148 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.802/1.933, allocations: 0 / 419.4 MB, free: 9.148 MB / 318.1 MB (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTest.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTest.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTest.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenHydraulics_OpenHydraulics_DevelopmentTests_GenericRestrictionTest_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 OpenHydraulics_OpenHydraulics_DevelopmentTests_GenericRestrictionTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTest.pipe 2>&1) Environment - environmentSimulation: