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.001105/0.001105, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001102/0.001102, allocations: 195.4 kB / 16.14 MB, free: 6.707 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.106/1.106, allocations: 205.1 MB / 222 MB, free: 4.758 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.04837/0.04837, allocations: 11.83 MB / 281.2 MB, free: 9.656 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.001288/0.001288, allocations: 63.34 kB / 341.2 MB, free: 22.32 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06254/0.06383, allocations: 49.23 MB / 390.5 MB, free: 5.039 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.GenericRestrictionTest): time 0.00365/0.06752, allocations: 3.347 MB / 393.8 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002335/0.06986, allocations: 2.119 MB / 395.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.853e-05/0.06998, allocations: 4 kB / 395.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001894/0.07018, allocations: 47.73 kB / 396 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002614/0.07044, allocations: 131.1 kB / 396.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005123/0.07097, allocations: 302.6 kB / 396.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003019/0.07128, allocations: 378.2 kB / 396.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001268/0.07141, allocations: 69.11 kB / 396.8 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001278/0.07155, allocations: 119.6 kB / 397 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001575/0.07171, allocations: 143.3 kB / 397.1 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.007e-05/0.07175, allocations: 16 kB / 397.1 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003496/0.0721, allocations: 239.8 kB / 397.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.692e-05/0.07217, allocations: 59.7 kB / 397.4 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001227/0.0723, allocations: 139.3 kB / 397.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004246/0.07273, allocations: 438.8 kB / 398 MB, free: 13.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.07274, allocations: 0 / 398 MB, free: 13.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.71e-07/0.07275, allocations: 0 / 398 MB, free: 13.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.07275, allocations: 0 / 398 MB, free: 13.5 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.0006922/0.07345, allocations: 0.5847 MB / 398.6 MB, free: 12.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.828e-05/0.07349, allocations: 12.03 kB / 398.6 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.535e-05/0.07355, allocations: 66.66 kB / 398.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.352e-05/0.07365, allocations: 32.66 kB / 398.7 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002376/0.07389, allocations: 267.7 kB / 398.9 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.586e-05/0.07391, allocations: 20.92 kB / 399 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.285e-05/0.07396, allocations: 27.94 kB / 399 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004082/0.07437, allocations: 267.7 kB / 399.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.07439, allocations: 3.938 kB / 399.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.113e-05/0.07442, allocations: 15.98 kB / 399.3 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.07443, allocations: 8 kB / 399.3 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000359/0.07479, allocations: 214.1 kB / 399.5 MB, free: 11.89 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.001602/0.07641, allocations: 1.452 MB / 400.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002411/0.07666, allocations: 150.7 kB / 401.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001324/0.0768, allocations: 72.83 kB / 401.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001621/0.07697, allocations: 178.2 kB / 401.3 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.966e-05/0.077, allocations: 30.56 kB / 401.4 MB, free: 9.773 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.202e-06/0.077, allocations: 0 / 401.4 MB, free: 9.773 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001596/0.0786, allocations: 0.7296 MB / 402.1 MB, free: 8.992 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.55e-05/0.07864, allocations: 59.41 kB / 402.1 MB, free: 8.922 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002352/0.07888, allocations: 270.7 kB / 402.4 MB, free: 8.645 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.143e-05/0.07891, allocations: 29.7 kB / 402.4 MB, free: 8.609 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.735e-05/0.079, allocations: 156.2 kB / 402.6 MB, free: 8.449 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.806e-05/0.07906, allocations: 78.84 kB / 402.7 MB, free: 8.371 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.333e-05/0.07914, allocations: 49.92 kB / 402.7 MB, free: 8.316 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.738e-05/0.07924, allocations: 334.8 kB / 403 MB, free: 7.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001675/0.07941, allocations: 81.52 kB / 403.1 MB, free: 7.898 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001878/0.07961, allocations: 138.8 kB / 403.3 MB, free: 7.742 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003297/0.07994, allocations: 201.9 kB / 403.5 MB, free: 7.523 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.07996, allocations: 7.938 kB / 403.5 MB, free: 7.516 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000441/0.08041, allocations: 257.1 kB / 403.7 MB, free: 7.258 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/0.08043, allocations: 8 kB / 403.7 MB, free: 7.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.08044, allocations: 4.141 kB / 403.7 MB, free: 7.246 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.608e-06/0.08045, allocations: 8 kB / 403.7 MB, free: 7.238 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002634/0.08072, allocations: 67.89 kB / 403.8 MB, free: 7.172 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.08074, allocations: 4 kB / 403.8 MB, free: 7.168 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001372/0.08088, allocations: 8 kB / 403.8 MB, free: 7.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.3e-05/0.08091, allocations: 15.98 kB / 403.8 MB, free: 7.145 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001551/0.08107, allocations: 145.7 kB / 404 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.059e-05/0.08113, allocations: 27.72 kB / 404 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004552/0.08159, allocations: 239.5 kB / 404.2 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-06/0.0816, allocations: 4 kB / 404.2 MB, free: 6.723 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.08161, allocations: 0 / 404.2 MB, free: 6.723 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.08162, allocations: 0 / 404.2 MB, free: 6.723 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008117/0.08243, allocations: 0.6321 MB / 404.9 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.08245, allocations: 4 kB / 404.9 MB, free: 6.027 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002588/0.08271, allocations: 59.91 kB / 404.9 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.08272, allocations: 4 kB / 404.9 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.568e-05/0.08274, allocations: 3.984 kB / 404.9 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.08275, allocations: 0 / 404.9 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.08275, allocations: 4 kB / 404.9 MB, free: 5.957 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005603/0.08332, allocations: 407.9 kB / 405.3 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.836e-05/0.08343, allocations: 124.7 kB / 405.5 MB, free: 5.398 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.917e-05/0.08347, allocations: 7.938 kB / 405.5 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001609/0.08364, allocations: 15.98 kB / 405.5 MB, free: 5.375 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.885e-05/0.08368, allocations: 19.98 kB / 405.5 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.456e-05/0.0837, allocations: 7.984 kB / 405.5 MB, free: 5.348 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001649/0.08387, allocations: 198 kB / 405.7 MB, free: 5.156 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.08388, allocations: 3.938 kB / 405.7 MB, free: 5.152 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003548/0.08424, allocations: 112 kB / 405.8 MB, free: 5.043 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 (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.000922/0.08517, allocations: 1.006 MB / 406.8 MB, free: 4.008 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003637/0.08554, allocations: 187.4 kB / 407 MB, free: 3.828 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.08555, allocations: 8.062 kB / 407 MB, free: 3.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001632/0.08572, allocations: 88.45 kB / 407.1 MB, free: 3.734 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000403/0.08613, allocations: 68.59 kB / 407.2 MB, free: 3.668 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003124/0.08927, allocations: 2.964 MB / 410.1 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002762/0.08955, allocations: 0.7636 MB / 410.9 MB, free: 15.78 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001421/0.0897, allocations: 46.89 kB / 410.9 MB, free: 15.74 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001205/0.08983, allocations: 87.39 kB / 411 MB, free: 15.65 MB / 318.1 MB Notification: Performance of SimCode: time 2.11e-07/0.08984, allocations: 0 / 411 MB, free: 15.65 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.325/1.415, allocations: 7.371 MB / 418.4 MB, free: 8.324 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002028/1.416, allocations: 211.3 kB / 418.6 MB, free: 8.066 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.668/3.084, allocations: 0 / 418.6 MB, free: 8.066 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/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)