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.001011/0.001011, allocations: 91.14 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.001203/0.001203, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.122/2.122, allocations: 205.4 MB / 222.1 MB, free: 5.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05337/0.05337, allocations: 11.85 MB / 282.2 MB, free: 9.348 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.0005564/0.0005565, allocations: 20 kB / 343 MB, free: 22.35 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1201, allocations: 50.22 MB / 393.2 MB, free: 4.078 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.GenericRestrictionTest): time 0.003744/0.1238, allocations: 2.866 MB / 396.1 MB, free: 1.195 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003645/0.1275, allocations: 1.887 MB / 398 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002681/0.1278, allocations: 4 kB / 398 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002632/0.1281, allocations: 55.66 kB / 398.1 MB, free: 15.24 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/Interfaces/NPort.mo:14:14-14:26:writable] Warning: 'each' used when modifying non-array element p. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/Interfaces/NPort.mo:13:65-13:72:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.0005356/0.1287, allocations: 162.8 kB / 398.2 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008984/0.1296, allocations: 279.1 kB / 398.5 MB, free: 14.81 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005023/0.1301, allocations: 362.2 kB / 398.8 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002187/0.1303, allocations: 61.16 kB / 398.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000193/0.1305, allocations: 111.6 kB / 399 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002241/0.1308, allocations: 135.5 kB / 399.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.385e-05/0.1308, allocations: 12 kB / 399.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004927/0.1313, allocations: 227.7 kB / 399.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.123e-05/0.1314, allocations: 47.77 kB / 399.4 MB, free: 13.87 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.476e-05/0.1315, allocations: 81.58 kB / 399.5 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004933/0.132, allocations: 323.2 kB / 399.8 MB, free: 13.47 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.978e-06/0.132, allocations: 0 / 399.8 MB, free: 13.47 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.132, allocations: 0 / 399.8 MB, free: 13.47 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.139e-05/0.1321, allocations: 0 / 399.8 MB, free: 13.47 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.001104/0.1332, allocations: 0.5456 MB / 400.4 MB, free: 12.87 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.637e-05/0.1332, allocations: 12.03 kB / 400.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.227e-05/0.1333, allocations: 62.52 kB / 400.4 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001891/0.1335, allocations: 39.58 kB / 400.5 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004019/0.1339, allocations: 262.5 kB / 400.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.134, allocations: 16.56 kB / 400.7 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.138e-05/0.134, allocations: 24 kB / 400.8 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005128/0.1346, allocations: 271.7 kB / 401 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.1346, allocations: 4 kB / 401 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.731e-05/0.1346, allocations: 8 kB / 401 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.438e-05/0.1346, allocations: 8 kB / 401.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000417/0.1351, allocations: 226 kB / 401.3 MB, free: 11.9 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.002108/0.1372, allocations: 1.452 MB / 402.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002922/0.1375, allocations: 150.8 kB / 402.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001356/0.1376, allocations: 72.83 kB / 402.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001856/0.1378, allocations: 170.2 kB / 403.1 MB, free: 9.832 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.1379, allocations: 38.56 kB / 403.2 MB, free: 9.785 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.653e-06/0.1379, allocations: 0 / 403.2 MB, free: 9.785 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001882/0.1398, allocations: 0.7729 MB / 403.9 MB, free: 8.961 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.269e-05/0.1398, allocations: 63.3 kB / 404 MB, free: 8.887 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002947/0.1401, allocations: 262.7 kB / 404.2 MB, free: 8.617 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.597e-05/0.1402, allocations: 29.7 kB / 404.3 MB, free: 8.582 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001435/0.1403, allocations: 156.2 kB / 404.4 MB, free: 8.422 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.582e-05/0.1404, allocations: 78.84 kB / 404.5 MB, free: 8.344 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.466e-05/0.1404, allocations: 4 kB / 404.5 MB, free: 8.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.1406, allocations: 338.8 kB / 404.8 MB, free: 8 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001808/0.1408, allocations: 81.28 kB / 404.9 MB, free: 7.918 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002086/0.141, allocations: 138.9 kB / 405.1 MB, free: 7.762 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001846/0.1412, allocations: 91.91 kB / 405.1 MB, free: 7.672 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.1412, allocations: 8.031 kB / 405.1 MB, free: 7.664 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004745/0.1417, allocations: 261.2 kB / 405.4 MB, free: 7.402 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.029e-05/0.1418, allocations: 6.188 kB / 405.4 MB, free: 7.398 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.1418, allocations: 4 kB / 405.4 MB, free: 7.395 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.283e-05/0.1418, allocations: 160 / 405.4 MB, free: 7.395 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002992/0.1421, allocations: 79.89 kB / 405.5 MB, free: 7.316 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.745e-05/0.1421, allocations: 7.953 kB / 405.5 MB, free: 7.309 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001535/0.1423, allocations: 15.98 kB / 405.5 MB, free: 7.293 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.967e-05/0.1423, allocations: 8 kB / 405.5 MB, free: 7.285 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.00029/0.1426, allocations: 145.8 kB / 405.7 MB, free: 7.133 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.945e-05/0.1427, allocations: 27.72 kB / 405.7 MB, free: 7.105 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005819/0.1433, allocations: 243.5 kB / 405.9 MB, free: 6.863 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.154e-06/0.1433, allocations: 4 kB / 405.9 MB, free: 6.859 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.1433, allocations: 4 kB / 405.9 MB, free: 6.855 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.205e-05/0.1434, allocations: 3.953 kB / 405.9 MB, free: 6.852 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001205/0.1446, allocations: 0.6244 MB / 406.6 MB, free: 6.168 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.1446, allocations: 0 / 406.6 MB, free: 6.168 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002935/0.1449, allocations: 63.98 kB / 406.6 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.767e-06/0.1449, allocations: 4 kB / 406.6 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.099e-05/0.145, allocations: 11.95 kB / 406.6 MB, free: 6.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.57e-06/0.145, allocations: 4 kB / 406.6 MB, free: 6.086 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.145, allocations: 3.938 kB / 406.7 MB, free: 6.082 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000809/0.1458, allocations: 423.9 kB / 407.1 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001593/0.146, allocations: 116.8 kB / 407.2 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.968e-05/0.146, allocations: 8 kB / 407.2 MB, free: 5.508 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001741/0.1462, allocations: 19.94 kB / 407.2 MB, free: 5.488 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.671e-05/0.1463, allocations: 19.98 kB / 407.2 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.036e-05/0.1463, allocations: 11.98 kB / 407.2 MB, free: 5.457 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002339/0.1466, allocations: 194 kB / 407.4 MB, free: 5.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1466, allocations: 0 / 407.4 MB, free: 5.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005511/0.1471, allocations: 111.9 kB / 407.5 MB, free: 5.16 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.001444/0.1486, allocations: 1.014 MB / 408.6 MB, free: 4.117 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005137/0.1491, allocations: 187.8 kB / 408.7 MB, free: 3.934 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.1491, allocations: 0 / 408.7 MB, free: 3.934 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001967/0.1493, allocations: 96.27 kB / 408.8 MB, free: 3.84 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005595/0.1499, allocations: 75.77 kB / 408.9 MB, free: 3.773 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003741/0.1537, allocations: 1.765 MB / 410.7 MB, free: 1.934 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006499/0.1543, allocations: 0.7673 MB / 411.4 MB, free: 1.137 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002298/0.1546, allocations: 42.89 kB / 411.5 MB, free: 1.098 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000193/0.1548, allocations: 87.41 kB / 411.6 MB, free: 1.012 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1548, allocations: 0 / 411.6 MB, free: 1.012 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06032/0.2151, allocations: 7.198 MB / 418.8 MB, free: 9.883 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001973/0.2154, allocations: 188.9 kB / 418.9 MB, free: 9.645 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.337/2.552, allocations: 3.375 kB / 418.9 MB, free: 9.645 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: