Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenHydraulics_OpenHydraulics.DevelopmentTests.RestrictionTestSimple.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.RestrictionTestSimple,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_RestrictionTestSimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenHydraulics.DevelopmentTests.RestrictionTestSimple,fileNamePrefix="OpenHydraulics_OpenHydraulics_DevelopmentTests_RestrictionTestSimple",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.001142/0.001142, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001164/0.001164, allocations: 195.6 kB / 16.14 MB, free: 6.664 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.147/1.147, allocations: 205.1 MB / 222 MB, free: 4.73 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.04948/0.04948, allocations: 11.84 MB / 281.2 MB, free: 9.629 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.001384/0.001384, allocations: 59.91 kB / 341.2 MB, free: 22.32 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06271/0.0641, allocations: 49.22 MB / 390.5 MB, free: 5.043 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.RestrictionTestSimple): time 0.00277/0.0669, allocations: 2.42 MB / 392.9 MB, free: 2.605 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007829/0.06769, allocations: 0.6591 MB / 393.5 MB, free: 1.941 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.356e-05/0.06777, allocations: 4 kB / 393.5 MB, free: 1.938 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.056e-05/0.06782, allocations: 11.92 kB / 393.6 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002133/0.06804, allocations: 67.59 kB / 393.6 MB, free: 1.859 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.835e-05/0.06813, allocations: 19.97 kB / 393.6 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001356/0.06827, allocations: 143.2 kB / 393.8 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.116e-05/0.06837, allocations: 29.09 kB / 393.8 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.168e-05/0.06846, allocations: 55.77 kB / 393.9 MB, free: 1.617 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.51e-05/0.06855, allocations: 51.78 kB / 393.9 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.965e-05/0.06857, allocations: 8 kB / 393.9 MB, free: 1.559 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.903e-05/0.06864, allocations: 23.88 kB / 393.9 MB, free: 1.535 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.021e-05/0.06866, allocations: 15.91 kB / 394 MB, free: 1.52 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.896e-05/0.06872, allocations: 55.73 kB / 394 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001304/0.06886, allocations: 111.9 kB / 394.1 MB, free: 1.355 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.06887, allocations: 0 / 394.1 MB, free: 1.355 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.21e-07/0.06888, allocations: 0 / 394.1 MB, free: 1.355 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.176e-06/0.06888, allocations: 0 / 394.1 MB, free: 1.355 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0004526/0.06934, allocations: 452.7 kB / 394.6 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.013e-05/0.06938, allocations: 12.03 kB / 394.6 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.928e-05/0.06941, allocations: 34.75 kB / 394.6 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.24e-05/0.06945, allocations: 12.84 kB / 394.6 MB, free: 0.793 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001618/0.06961, allocations: 204 kB / 394.8 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.207e-06/0.06963, allocations: 4.375 kB / 394.8 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.563e-05/0.06965, allocations: 11.94 kB / 394.8 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000218/0.06987, allocations: 101.6 kB / 394.9 MB, free: 444 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.525e-06/0.06989, allocations: 8 kB / 395 MB, free: 436 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.779e-06/0.0699, allocations: 0 / 395 MB, free: 436 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.06991, allocations: 0 / 395 MB, free: 436 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002195/0.07014, allocations: 87.83 kB / 395 MB, free: 348 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005945/0.07074, allocations: 0.5784 MB / 395.6 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001882/0.07094, allocations: 86.53 kB / 395.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001122/0.07106, allocations: 44.83 kB / 395.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.526e-05/0.07108, allocations: 4 kB / 395.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.903e-05/0.0711, allocations: 30.56 kB / 395.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.152e-06/0.07111, allocations: 11.88 kB / 395.8 MB, free: 15.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001254/0.07237, allocations: 408.4 kB / 396.2 MB, free: 15.05 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.175e-05/0.07241, allocations: 81.09 kB / 396.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.468e-05/0.07251, allocations: 141.8 kB / 396.4 MB, free: 14.81 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.408e-05/0.07253, allocations: 25.7 kB / 396.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.912e-05/0.07257, allocations: 100 kB / 396.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.121e-05/0.07261, allocations: 31.55 kB / 396.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.619e-05/0.07266, allocations: 33.7 kB / 396.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.057e-05/0.07275, allocations: 322.8 kB / 396.9 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001622/0.07291, allocations: 43.95 kB / 396.9 MB, free: 14.24 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001637/0.07308, allocations: 65.61 kB / 397 MB, free: 14.17 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003234/0.07342, allocations: 169.9 kB / 397.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.07342, allocations: 0 / 397.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003929/0.07382, allocations: 190.9 kB / 397.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/0.07386, allocations: 36.23 kB / 397.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.07386, allocations: 0 / 397.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.394e-06/0.07388, allocations: 0 / 397.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001682/0.07405, allocations: 31.91 kB / 397.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.887e-06/0.07406, allocations: 0 / 397.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001148/0.07418, allocations: 15.98 kB / 397.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.278e-05/0.0742, allocations: 7.984 kB / 397.5 MB, free: 13.69 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (10): * Single equations (assignments): 9 * 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.956e-05/0.07428, allocations: 143.5 kB / 397.6 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.493e-05/0.07432, allocations: 15.84 kB / 397.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004629/0.07479, allocations: 219.7 kB / 397.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.07481, allocations: 7.984 kB / 397.8 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.404e-06/0.07481, allocations: 0 / 397.8 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.07482, allocations: 0 / 397.8 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001961/0.07502, allocations: 217.6 kB / 398 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.07503, allocations: 7.938 kB / 398.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000149/0.07518, allocations: 27.97 kB / 398.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.07519, allocations: 0 / 398.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.07521, allocations: 0 / 398.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.07521, allocations: 4 kB / 398.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.07522, allocations: 96 / 398.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004163/0.07564, allocations: 292.9 kB / 398.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.082e-05/0.07571, allocations: 96.94 kB / 398.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.725e-05/0.07574, allocations: 11.92 kB / 398.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001379/0.07588, allocations: 15.98 kB / 398.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.883e-05/0.07593, allocations: 7.984 kB / 398.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/0.07594, allocations: 4 kB / 398.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.538e-05/0.07601, allocations: 119.2 kB / 398.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.07602, allocations: 0 / 398.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000236/0.07626, allocations: 36 kB / 398.7 MB, free: 12.38 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (13): * Single equations (assignments): 12 * 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.0006363/0.0769, allocations: 0.8349 MB / 399.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003894/0.0773, allocations: 167.3 kB / 399.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.07731, allocations: 0 / 399.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001929/0.07751, allocations: 123.3 kB / 399.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003051/0.07782, allocations: 32.05 kB / 399.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001982/0.07981, allocations: 1.855 MB / 401.7 MB, free: 9.227 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002018/0.08003, allocations: 0.7048 MB / 402.4 MB, free: 8.496 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.491e-05/0.08011, allocations: 21.39 kB / 402.4 MB, free: 8.473 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.319e-05/0.08018, allocations: 35.42 kB / 402.4 MB, free: 8.438 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.08018, allocations: 0 / 402.4 MB, free: 8.438 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8785/0.9587, allocations: 3.256 MB / 405.7 MB, free: 5.219 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002586/0.959, allocations: 210.8 kB / 405.9 MB, free: 4.957 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.804/2.763, allocations: 0 / 405.9 MB, free: 4.957 MB / 302.1 MB (rm -f OpenHydraulics_OpenHydraulics.DevelopmentTests.RestrictionTestSimple.pipe ; mkfifo OpenHydraulics_OpenHydraulics.DevelopmentTests.RestrictionTestSimple.pipe ; head -c 1048576 < OpenHydraulics_OpenHydraulics.DevelopmentTests.RestrictionTestSimple.pipe >> ../files/OpenHydraulics_OpenHydraulics.DevelopmentTests.RestrictionTestSimple.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenHydraulics_OpenHydraulics_DevelopmentTests_RestrictionTestSimple_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 OpenHydraulics_OpenHydraulics_DevelopmentTests_RestrictionTestSimple.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.RestrictionTestSimple.pipe 2>&1)