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.005665/0.005665, allocations: 97.62 kB / 15.73 MB, free: 6.059 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.001415/0.001415, allocations: 197.5 kB / 16.68 MB, free: 5.977 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.358/1.358, allocations: 205.1 MB / 222.6 MB, free: 4.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05671/0.05671, allocations: 11.85 MB / 281.8 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.002111/0.002112, allocations: 75.83 kB / 391.8 MB, free: 3.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2385/0.2406, allocations: 49.23 MB / 441.1 MB, free: 4.141 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.GenericRestrictionTest): time 0.003618/0.2443, allocations: 2.894 MB / 444 MB, free: 2.113 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002501/0.2468, allocations: 2.009 MB / 446 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000185/0.247, allocations: 7.25 kB / 446 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002674/0.2473, allocations: 52.94 kB / 446 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004057/0.2477, allocations: 151 kB / 446.2 MB, free: 0.543 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008985/0.2486, allocations: 381.2 kB / 446.6 MB, free: 376 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004037/0.249, allocations: 379.3 kB / 446.9 MB, free: 176 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001876/0.2492, allocations: 101 kB / 447 MB, free: 120 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001809/0.2494, allocations: 130 kB / 447.2 MB, free: 60 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002549/0.2497, allocations: 152.8 kB / 447.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.194e-05/0.2497, allocations: 24.09 kB / 447.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005082/0.2502, allocations: 246.2 kB / 447.6 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.395e-05/0.2503, allocations: 60.8 kB / 447.6 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000184/0.2505, allocations: 155.7 kB / 447.8 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007011/0.2512, allocations: 452.6 kB / 448.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2512, allocations: 1.062 kB / 448.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2513, allocations: 0 / 448.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.2513, allocations: 0 / 448.2 MB, free: 15.62 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.0009982/0.2523, allocations: 0.5966 MB / 448.8 MB, free: 15.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.2523, allocations: 13.17 kB / 448.8 MB, free: 15.09 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.843e-05/0.2524, allocations: 53.77 kB / 448.9 MB, free: 15.03 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001207/0.2525, allocations: 46.64 kB / 448.9 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000348/0.2529, allocations: 272.8 kB / 449.2 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.359e-05/0.2529, allocations: 18.88 kB / 449.2 MB, free: 14.72 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.911e-05/0.253, allocations: 28.03 kB / 449.2 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004953/0.2535, allocations: 270.2 kB / 449.5 MB, free: 14.53 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.2535, allocations: 0 / 449.5 MB, free: 14.53 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.595e-05/0.2535, allocations: 14.12 kB / 449.5 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.167e-06/0.2535, allocations: 9.938 kB / 449.5 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004098/0.254, allocations: 221.6 kB / 449.7 MB, free: 14.41 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.002025/0.256, allocations: 1.44 MB / 451.2 MB, free: 12.99 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002848/0.2563, allocations: 149.5 kB / 451.3 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000144/0.2564, allocations: 72.58 kB / 451.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002036/0.2567, allocations: 167.8 kB / 451.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.237e-05/0.2567, allocations: 45.3 kB / 451.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 1.372e-06/0.2567, allocations: 0 / 451.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001904/0.2586, allocations: 0.7323 MB / 452.3 MB, free: 12.11 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.67e-05/0.2587, allocations: 58.2 kB / 452.4 MB, free: 12.04 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002991/0.259, allocations: 262 kB / 452.7 MB, free: 11.86 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.841e-05/0.259, allocations: 31.17 kB / 452.7 MB, free: 11.82 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001264/0.2592, allocations: 161.2 kB / 452.8 MB, free: 11.68 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.532e-05/0.2592, allocations: 75.58 kB / 452.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001027/0.2593, allocations: 56.3 kB / 453 MB, free: 11.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.2595, allocations: 336.3 kB / 453.3 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001871/0.2597, allocations: 81.59 kB / 453.4 MB, free: 11.19 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002172/0.2599, allocations: 126.9 kB / 453.5 MB, free: 11.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003836/0.2603, allocations: 205.8 kB / 453.7 MB, free: 10.95 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.2603, allocations: 9.312 kB / 453.7 MB, free: 10.94 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000501/0.2608, allocations: 259.7 kB / 454 MB, free: 10.8 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.2609, allocations: 5.5 kB / 454 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.2609, allocations: 1.375 kB / 454 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.2609, allocations: 3.625 kB / 454 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002774/0.2612, allocations: 71.83 kB / 454 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.2612, allocations: 3.594 kB / 454 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001442/0.2613, allocations: 16.67 kB / 454.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.467e-05/0.2614, allocations: 12.28 kB / 454.1 MB, free: 10.77 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.0002033/0.2616, allocations: 147.3 kB / 454.2 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.928e-05/0.2617, allocations: 28.53 kB / 454.2 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005387/0.2622, allocations: 249.9 kB / 454.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.2622, allocations: 6.031 kB / 454.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.2622, allocations: 1.312 kB / 454.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.369e-06/0.2622, allocations: 0 / 454.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009908/0.2632, allocations: 0.629 MB / 455.1 MB, free: 9.906 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.2632, allocations: 1.469 kB / 455.1 MB, free: 9.906 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002592/0.2635, allocations: 57.42 kB / 455.2 MB, free: 9.895 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.105e-06/0.2635, allocations: 9.094 kB / 455.2 MB, free: 9.887 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.992e-05/0.2636, allocations: 7.375 kB / 455.2 MB, free: 9.883 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.2636, allocations: 1.5 kB / 455.2 MB, free: 9.883 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.2636, allocations: 3.938 kB / 455.2 MB, free: 9.879 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000686/0.2643, allocations: 405 kB / 455.6 MB, free: 9.605 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001353/0.2644, allocations: 121.3 kB / 455.7 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.207e-05/0.2645, allocations: 2.25 kB / 455.7 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001593/0.2646, allocations: 13.92 kB / 455.7 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.601e-05/0.2647, allocations: 15.02 kB / 455.8 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.529e-05/0.2647, allocations: 5.094 kB / 455.8 MB, free: 9.461 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000203/0.2649, allocations: 197.8 kB / 456 MB, free: 9.328 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2649, allocations: 0 / 456 MB, free: 9.328 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004722/0.2654, allocations: 119.7 kB / 456.1 MB, free: 9.297 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.001215/0.2666, allocations: 1.011 MB / 457.1 MB, free: 8.457 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004527/0.2671, allocations: 195.5 kB / 457.3 MB, free: 8.371 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2671, allocations: 1.156 kB / 457.3 MB, free: 8.371 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001834/0.2673, allocations: 88.09 kB / 457.4 MB, free: 8.336 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004724/0.2678, allocations: 83.33 kB / 457.4 MB, free: 8.285 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003892/0.2717, allocations: 2.872 MB / 460.3 MB, free: 6.117 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000422/0.2721, allocations: 0.7621 MB / 461.1 MB, free: 5.383 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000174/0.2723, allocations: 40.97 kB / 461.1 MB, free: 5.363 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001501/0.2724, allocations: 89.16 kB / 461.2 MB, free: 5.293 MB / 334.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2725, allocations: 0 / 461.2 MB, free: 5.293 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03187/0.3043, allocations: 7.797 MB / 469 MB, free: 14.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.069/8.374, allocations: 7.781 kB / 469 MB, free: 14.7 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 & /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)