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.001052/0.001052, allocations: 108 kB / 15.61 MB, free: 152 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.001009/0.001009, allocations: 196.6 kB / 16.53 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.167/1.167, allocations: 205.1 MB / 222.4 MB, free: 4.609 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05018/0.05018, allocations: 11.85 MB / 281.6 MB, free: 9.422 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.001429/0.001429, allocations: 75.33 kB / 341.9 MB, free: 21.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06978/0.07122, allocations: 49.22 MB / 391.1 MB, free: 4.609 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.RestrictionTestSimple): time 0.002951/0.07422, allocations: 2.087 MB / 393.2 MB, free: 2.504 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000841/0.07507, allocations: 0.6279 MB / 393.9 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.568e-05/0.07515, allocations: 4 kB / 393.9 MB, free: 1.867 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.768e-05/0.07521, allocations: 15.84 kB / 393.9 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000258/0.07547, allocations: 79.47 kB / 394 MB, free: 1.773 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.79e-05/0.07557, allocations: 23.95 kB / 394 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001632/0.07574, allocations: 147.2 kB / 394.1 MB, free: 1.605 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001092/0.07585, allocations: 33.09 kB / 394.2 MB, free: 1.574 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.659e-05/0.07596, allocations: 59.78 kB / 394.2 MB, free: 1.516 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.533e-05/0.07606, allocations: 55.77 kB / 394.3 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.781e-05/0.07609, allocations: 8 kB / 394.3 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.453e-05/0.07616, allocations: 24 kB / 394.3 MB, free: 1.43 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.515e-05/0.07619, allocations: 23.84 kB / 394.3 MB, free: 1.406 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.575e-05/0.07626, allocations: 63.67 kB / 394.4 MB, free: 1.344 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001437/0.07641, allocations: 115.9 kB / 394.5 MB, free: 1.23 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.07642, allocations: 0 / 394.5 MB, free: 1.23 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.07642, allocations: 0 / 394.5 MB, free: 1.23 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.628e-06/0.07643, allocations: 0 / 394.5 MB, free: 1.23 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.0004806/0.07692, allocations: 448.7 kB / 394.9 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.07696, allocations: 11.89 kB / 395 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.407e-05/0.077, allocations: 46.73 kB / 395 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.283e-05/0.07704, allocations: 8.844 kB / 395 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001816/0.07722, allocations: 208 kB / 395.2 MB, free: 432 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.07724, allocations: 8.375 kB / 395.2 MB, free: 424 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.052e-05/0.07727, allocations: 7.938 kB / 395.2 MB, free: 416 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002204/0.07749, allocations: 105.2 kB / 395.3 MB, free: 308 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.07751, allocations: 0 / 395.3 MB, free: 308 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.07753, allocations: 4 kB / 395.3 MB, free: 304 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.07754, allocations: 4 kB / 395.3 MB, free: 300 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000225/0.07777, allocations: 87.89 kB / 395.4 MB, free: 212 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006584/0.07843, allocations: 0.5628 MB / 396 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002072/0.07865, allocations: 98.47 kB / 396.1 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001153/0.07878, allocations: 48.83 kB / 396.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.745e-05/0.0788, allocations: 3.984 kB / 396.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.11e-05/0.07883, allocations: 30.56 kB / 396.2 MB, free: 15.35 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.213e-06/0.07884, allocations: 0 / 396.2 MB, free: 15.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001411/0.08025, allocations: 412.3 kB / 396.6 MB, free: 14.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.477e-05/0.08031, allocations: 85.11 kB / 396.6 MB, free: 14.83 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/0.08042, allocations: 145.8 kB / 396.8 MB, free: 14.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.631e-05/0.08045, allocations: 25.7 kB / 396.8 MB, free: 14.64 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.678e-05/0.0805, allocations: 100 kB / 396.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.193e-05/0.08054, allocations: 27.56 kB / 396.9 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.709e-05/0.08059, allocations: 29.64 kB / 397 MB, free: 14.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.001e-05/0.08068, allocations: 318.8 kB / 397.3 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001724/0.08086, allocations: 51.95 kB / 397.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001747/0.08105, allocations: 57.67 kB / 397.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003509/0.08141, allocations: 173.8 kB / 397.6 MB, free: 13.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-06/0.08142, allocations: 0 / 397.6 MB, free: 13.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004169/0.08184, allocations: 187 kB / 397.7 MB, free: 13.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.873e-05/0.08188, allocations: 30.42 kB / 397.8 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.08189, allocations: 7.938 kB / 397.8 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.08191, allocations: 0 / 397.8 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001729/0.08209, allocations: 28 kB / 397.8 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.0821, allocations: 7.938 kB / 397.8 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001097/0.08222, allocations: 11.98 kB / 397.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.133e-05/0.08224, allocations: 3.984 kB / 397.8 MB, free: 13.57 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 9.278e-05/0.08234, allocations: 151.5 kB / 398 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.65e-05/0.08238, allocations: 11.84 kB / 398 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004905/0.08288, allocations: 211.6 kB / 398.2 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.08289, allocations: 0 / 398.2 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.0829, allocations: 4 kB / 398.2 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.08291, allocations: 3.984 kB / 398.2 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002169/0.08313, allocations: 221.6 kB / 398.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.08314, allocations: 3.938 kB / 398.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001503/0.0833, allocations: 31.92 kB / 398.5 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.08331, allocations: 8 kB / 398.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.838e-06/0.08333, allocations: 0 / 398.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.08333, allocations: 0 / 398.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.08334, allocations: 3.984 kB / 398.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004577/0.0838, allocations: 293 kB / 398.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.476e-05/0.08389, allocations: 100.9 kB / 398.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.372e-05/0.08392, allocations: 0 / 398.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001609/0.08408, allocations: 15.98 kB / 398.9 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.309e-05/0.08414, allocations: 11.92 kB / 398.9 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.817e-06/0.08415, allocations: 4 kB / 398.9 MB, free: 12.4 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.971e-05/0.08424, allocations: 115.2 kB / 399 MB, free: 12.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08424, allocations: 0 / 399 MB, free: 12.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002531/0.0845, allocations: 32 kB / 399 MB, free: 12.26 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.0007305/0.08524, allocations: 0.8388 MB / 399.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000441/0.08569, allocations: 179.2 kB / 400 MB, free: 11.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.08571, allocations: 4 kB / 400 MB, free: 11.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002113/0.08592, allocations: 123.3 kB / 400.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003594/0.08629, allocations: 30.53 kB / 400.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002168/0.08847, allocations: 1.802 MB / 402 MB, free: 9.145 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002304/0.08872, allocations: 0.7083 MB / 402.7 MB, free: 8.41 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.797e-05/0.08881, allocations: 21.02 kB / 402.7 MB, free: 8.387 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.574e-05/0.08888, allocations: 35.42 kB / 402.8 MB, free: 8.352 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.08888, allocations: 0 / 402.8 MB, free: 8.352 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.145/1.233, allocations: 3.525 MB / 406.3 MB, free: 4.832 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.623/9.856, allocations: 15.92 kB / 406.3 MB, free: 4.82 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)