Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.TankTest.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.TankTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_TankTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.TankTest,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_TankTest",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.001103/0.001103, 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.001083/0.001083, allocations: 196.7 kB / 16.14 MB, free: 6.715 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.095/1.095, allocations: 205.1 MB / 222 MB, free: 4.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.04889/0.04889, allocations: 11.83 MB / 281.2 MB, free: 9.543 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.001336/0.001336, allocations: 71.91 kB / 341.2 MB, free: 22.31 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06097/0.06231, allocations: 49.22 MB / 390.5 MB, free: 5.031 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.TankTest): time 0.002587/0.06491, allocations: 2.254 MB / 392.7 MB, free: 2.762 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008824/0.06581, allocations: 0.6436 MB / 393.4 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.455e-05/0.06589, allocations: 4 kB / 393.4 MB, free: 2.109 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.664e-05/0.06595, allocations: 7.922 kB / 393.4 MB, free: 2.102 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002255/0.06618, allocations: 71.53 kB / 393.4 MB, free: 2.031 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.651e-05/0.06627, allocations: 19.97 kB / 393.5 MB, free: 2.012 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001361/0.06641, allocations: 123.2 kB / 393.6 MB, free: 1.891 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.983e-05/0.06651, allocations: 31.98 kB / 393.6 MB, free: 1.859 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.008e-05/0.06659, allocations: 47.78 kB / 393.7 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.015e-05/0.06668, allocations: 51.72 kB / 393.7 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.576e-05/0.0667, allocations: 4 kB / 393.7 MB, free: 1.758 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.8e-05/0.06676, allocations: 12 kB / 393.7 MB, free: 1.746 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.118e-05/0.06679, allocations: 19.91 kB / 393.7 MB, free: 1.727 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.593e-05/0.06685, allocations: 47.8 kB / 393.8 MB, free: 1.68 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001228/0.06698, allocations: 95.94 kB / 393.9 MB, free: 1.586 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.06699, allocations: 4 kB / 393.9 MB, free: 1.582 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.81e-07/0.06699, allocations: 0 / 393.9 MB, free: 1.582 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.755e-06/0.067, allocations: 4 kB / 393.9 MB, free: 1.578 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0003653/0.06737, allocations: 416.8 kB / 394.3 MB, free: 1.117 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.973e-05/0.06741, allocations: 8.031 kB / 394.3 MB, free: 1.109 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.266e-05/0.06745, allocations: 46.67 kB / 394.4 MB, free: 1.055 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.163e-05/0.06748, allocations: 12.75 kB / 394.4 MB, free: 1.043 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001542/0.06764, allocations: 192.2 kB / 394.6 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.004e-05/0.06766, allocations: 8.375 kB / 394.6 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.48e-05/0.06768, allocations: 7.938 kB / 394.6 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001444/0.06783, allocations: 97.64 kB / 394.7 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.101e-06/0.06784, allocations: 0 / 394.7 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.06785, allocations: 0 / 394.7 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.06786, allocations: 0 / 394.7 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.186e-05/0.06796, allocations: 55.91 kB / 394.7 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005279/0.06849, allocations: 0.501 MB / 395.2 MB, free: 64 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.504e-05/0.06857, allocations: 46.44 kB / 395.3 MB, free: 8 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.912e-05/0.06861, allocations: 24.97 kB / 395.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.063e-05/0.06863, allocations: 0 / 395.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.006e-05/0.06866, allocations: 38.5 kB / 395.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 9.32e-07/0.06866, allocations: 0 / 395.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0001933/0.06886, allocations: 99.3 kB / 395.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.386e-05/0.0689, allocations: 85.05 kB / 395.5 MB, free: 15.72 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001221/0.06903, allocations: 158.2 kB / 395.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.221e-05/0.06905, allocations: 25.7 kB / 395.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.932e-05/0.0691, allocations: 111.9 kB / 395.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.269e-05/0.06912, allocations: 15.81 kB / 395.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.789e-05/0.06916, allocations: 21.7 kB / 395.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.607e-05/0.06925, allocations: 322.8 kB / 396.2 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.376e-05/0.06929, allocations: 15.98 kB / 396.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.021e-05/0.06933, allocations: 16 kB / 396.2 MB, free: 15.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.467e-05/0.06942, allocations: 96.23 kB / 396.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.06943, allocations: 0 / 396.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001352/0.06957, allocations: 115.2 kB / 396.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.56e-05/0.0696, allocations: 40.44 kB / 396.4 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.06961, allocations: 7.938 kB / 396.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.885e-06/0.06962, allocations: 0 / 396.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.222e-05/0.06972, allocations: 12 kB / 396.5 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.391e-06/0.06973, allocations: 3.984 kB / 396.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.277e-05/0.0698, allocations: 11.84 kB / 396.5 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.843e-06/0.06981, allocations: 0 / 396.5 MB, free: 14.7 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 1 * 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 7.646e-05/0.06989, allocations: 144.4 kB / 396.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.216e-05/0.06993, allocations: 15.84 kB / 396.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001563/0.07009, allocations: 120.1 kB / 396.7 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.0701, allocations: 0 / 396.7 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.07011, allocations: 4 kB / 396.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.07012, allocations: 3.984 kB / 396.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003103/0.07044, allocations: 380.9 kB / 397.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.07045, allocations: 0 / 397.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.184e-05/0.0705, allocations: 8 kB / 397.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.07051, allocations: 4.031 kB / 397.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.07053, allocations: 8 kB / 397.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.07053, allocations: 3.938 kB / 397.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.07054, allocations: 3.984 kB / 397.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001424/0.07069, allocations: 202 kB / 397.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.517e-05/0.07075, allocations: 96.94 kB / 397.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.256e-05/0.07078, allocations: 4 kB / 397.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.964e-05/0.07086, allocations: 4 kB / 397.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.446e-05/0.07088, allocations: 3.938 kB / 397.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.178e-06/0.07089, allocations: 4 kB / 397.5 MB, free: 13.57 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.406e-05/0.07098, allocations: 131.8 kB / 397.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.07099, allocations: 4 kB / 397.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002278/0.07122, allocations: 31.91 kB / 397.6 MB, free: 13.41 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * 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.0003458/0.07157, allocations: 0.7422 MB / 398.4 MB, free: 12.63 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001274/0.07171, allocations: 99.31 kB / 398.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.07171, allocations: 0 / 398.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.22e-05/0.07177, allocations: 79.59 kB / 398.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003085/0.07209, allocations: 35.95 kB / 398.6 MB, free: 12.4 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001308/0.0734, allocations: 1.649 MB / 400.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001958/0.07361, allocations: 0.7009 MB / 400.9 MB, free: 9.934 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.787e-05/0.07367, allocations: 9.078 kB / 400.9 MB, free: 9.926 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.416e-05/0.07373, allocations: 35.42 kB / 401 MB, free: 9.891 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.07374, allocations: 0 / 401 MB, free: 9.891 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.057/1.13, allocations: 2.857 MB / 403.8 MB, free: 7.074 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002088/1.131, allocations: 198.4 kB / 404 MB, free: 6.809 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.593/2.723, allocations: 3.938 kB / 404 MB, free: 6.805 MB / 302.1 MB (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.TankTest.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.TankTest.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.TankTest.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.TankTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenHydraulics_OpenHydraulics_DevelopmentTests_TankTest_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 OpenHydraulics_OpenHydraulics_DevelopmentTests_TankTest.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.TankTest.pipe 2>&1)