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.00115/0.00115, allocations: 112.5 kB / 15.73 MB, free: 76 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.001148/0.001149, allocations: 188.3 kB / 16.66 MB, free: 6.582 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.272/1.272, allocations: 205.1 MB / 222.5 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05491/0.05491, allocations: 11.84 MB / 281.7 MB, free: 9.367 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.001564/0.001564, allocations: 67.91 kB / 391.8 MB, free: 4.004 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2237/0.2253, allocations: 49.24 MB / 441.1 MB, free: 4.184 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.GenericRestrictionTest): time 0.003444/0.2288, allocations: 2.901 MB / 444 MB, free: 2.152 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00237/0.2312, allocations: 2.012 MB / 446 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001701/0.2314, allocations: 3.562 kB / 446 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002534/0.2316, allocations: 65.39 kB / 446 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004111/0.2321, allocations: 155.4 kB / 446.2 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009239/0.233, allocations: 374.6 kB / 446.6 MB, free: 408 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003764/0.2334, allocations: 378.8 kB / 446.9 MB, free: 208 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001637/0.2336, allocations: 93.11 kB / 447 MB, free: 160 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001627/0.2337, allocations: 129.9 kB / 447.1 MB, free: 100 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001849/0.2339, allocations: 152.6 kB / 447.3 MB, free: 24 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.815e-05/0.234, allocations: 23.94 kB / 447.3 MB, free: 24 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000481/0.2345, allocations: 247.7 kB / 447.6 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.038e-05/0.2345, allocations: 63.06 kB / 447.6 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001586/0.2347, allocations: 156.6 kB / 447.8 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006283/0.2353, allocations: 448.8 kB / 448.2 MB, free: 15.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.2353, allocations: 1.312 kB / 448.2 MB, free: 15.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2354, allocations: 0 / 448.2 MB, free: 15.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.2354, allocations: 0 / 448.2 MB, free: 15.66 MB / 334.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.0009134/0.2363, allocations: 0.5942 MB / 448.8 MB, free: 15.12 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.2363, allocations: 14.11 kB / 448.8 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.15e-05/0.2364, allocations: 70.59 kB / 448.9 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000121/0.2365, allocations: 41.08 kB / 448.9 MB, free: 15.03 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002996/0.2368, allocations: 270 kB / 449.2 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.926e-05/0.2369, allocations: 14.22 kB / 449.2 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.815e-05/0.2369, allocations: 27.56 kB / 449.2 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004604/0.2374, allocations: 274.4 kB / 449.5 MB, free: 14.56 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.2374, allocations: 0 / 449.5 MB, free: 14.56 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.567e-05/0.2374, allocations: 14.53 kB / 449.5 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.2375, allocations: 6.938 kB / 449.5 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003769/0.2378, allocations: 217.9 kB / 449.7 MB, free: 14.44 MB / 334.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.001801/0.2396, allocations: 1.447 MB / 451.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002724/0.2399, allocations: 145.1 kB / 451.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001385/0.2401, allocations: 72.61 kB / 451.4 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001678/0.2403, allocations: 171.7 kB / 451.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.276e-05/0.2403, allocations: 40 kB / 451.6 MB, free: 12.65 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.293e-06/0.2403, allocations: 1.406 kB / 451.6 MB, free: 12.65 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001781/0.2421, allocations: 0.7319 MB / 452.3 MB, free: 12.14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.86e-05/0.2421, allocations: 52.78 kB / 452.4 MB, free: 12.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002502/0.2424, allocations: 262.7 kB / 452.6 MB, free: 11.89 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.346e-05/0.2424, allocations: 31.08 kB / 452.7 MB, free: 11.86 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.533e-05/0.2425, allocations: 160.7 kB / 452.8 MB, free: 11.71 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.378e-05/0.2426, allocations: 77 kB / 452.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.092e-05/0.2427, allocations: 55.75 kB / 453 MB, free: 11.6 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.936e-05/0.2428, allocations: 336.3 kB / 453.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001773/0.243, allocations: 80.22 kB / 453.4 MB, free: 11.23 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001877/0.2432, allocations: 128.2 kB / 453.5 MB, free: 11.12 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003445/0.2435, allocations: 201.8 kB / 453.7 MB, free: 10.99 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.2435, allocations: 5.312 kB / 453.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004909/0.244, allocations: 263.4 kB / 454 MB, free: 10.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.244, allocations: 5.75 kB / 454 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.2441, allocations: 5.125 kB / 454 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.2441, allocations: 7.266 kB / 454 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002808/0.2444, allocations: 71.86 kB / 454 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.2444, allocations: 3.75 kB / 454 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001592/0.2446, allocations: 16.75 kB / 454.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.667e-05/0.2446, allocations: 12.8 kB / 454.1 MB, free: 10.8 MB / 334.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001856/0.2448, allocations: 142.8 kB / 454.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.176e-05/0.2449, allocations: 28.31 kB / 454.2 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005169/0.2454, allocations: 246.1 kB / 454.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.2454, allocations: 6.344 kB / 454.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.2454, allocations: 1.062 kB / 454.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.2454, allocations: 0 / 454.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009497/0.2464, allocations: 0.6369 MB / 455.1 MB, free: 9.938 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.2464, allocations: 1.375 kB / 455.1 MB, free: 9.938 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002812/0.2467, allocations: 57.91 kB / 455.2 MB, free: 9.926 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.38e-06/0.2467, allocations: 5.188 kB / 455.2 MB, free: 9.922 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.181e-05/0.2467, allocations: 10.45 kB / 455.2 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.2467, allocations: 1.031 kB / 455.2 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.2467, allocations: 1.094 kB / 455.2 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006606/0.2474, allocations: 412.5 kB / 455.6 MB, free: 9.633 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001208/0.2475, allocations: 118 kB / 455.7 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.008e-05/0.2476, allocations: 2.062 kB / 455.7 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001744/0.2478, allocations: 13.48 kB / 455.7 MB, free: 9.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.81e-05/0.2478, allocations: 14.3 kB / 455.7 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.623e-05/0.2478, allocations: 9.203 kB / 455.8 MB, free: 9.488 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001913/0.248, allocations: 198.8 kB / 456 MB, free: 9.355 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.248, allocations: 0 / 456 MB, free: 9.355 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004647/0.2485, allocations: 116 kB / 456.1 MB, free: 9.328 MB / 334.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 (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.001091/0.2496, allocations: 1.019 MB / 457.1 MB, free: 8.48 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004634/0.2501, allocations: 187.5 kB / 457.3 MB, free: 8.402 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.2501, allocations: 0 / 457.3 MB, free: 8.402 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002015/0.2503, allocations: 89.3 kB / 457.4 MB, free: 8.367 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005317/0.2509, allocations: 75.78 kB / 457.4 MB, free: 8.324 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003925/0.2548, allocations: 2.879 MB / 460.3 MB, free: 6.148 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000294/0.2551, allocations: 0.7575 MB / 461.1 MB, free: 5.418 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000179/0.2553, allocations: 48.72 kB / 461.1 MB, free: 5.391 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001481/0.2555, allocations: 94.23 kB / 461.2 MB, free: 5.316 MB / 334.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2555, allocations: 0 / 461.2 MB, free: 5.316 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02683/0.2823, allocations: 7.787 MB / 469 MB, free: 14.74 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.744/8.026, allocations: 3.781 kB / 469 MB, free: 14.74 MB / 350.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 & python3 -m fmpy simulate --output-file OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTest_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 OpenHydraulics_OpenHydraulics_DevelopmentTests_GenericRestrictionTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.GenericRestrictionTest.pipe 2>&1)