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.001362/0.001362, 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.001188/0.001188, allocations: 195.2 kB / 16.53 MB, free: 6.699 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.367/1.367, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.0538/0.0538, allocations: 11.84 MB / 281.6 MB, free: 9.438 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.00151/0.00151, allocations: 75.44 kB / 341.9 MB, free: 21.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07901/0.08053, allocations: 49.21 MB / 391.2 MB, free: 4.602 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.RestrictionTestSimple): time 0.003064/0.08364, allocations: 2.083 MB / 393.2 MB, free: 2.5 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008931/0.08454, allocations: 0.6241 MB / 393.9 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.433e-05/0.08463, allocations: 4 kB / 393.9 MB, free: 1.867 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.962e-05/0.08469, allocations: 19.78 kB / 393.9 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000289/0.08499, allocations: 83.45 kB / 394 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.564e-05/0.08509, allocations: 23.34 kB / 394 MB, free: 1.746 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001808/0.08528, allocations: 151.2 kB / 394.1 MB, free: 1.598 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001155/0.0854, allocations: 25.11 kB / 394.2 MB, free: 1.574 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001132/0.08552, allocations: 55.8 kB / 394.2 MB, free: 1.52 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.851e-05/0.08563, allocations: 59.75 kB / 394.3 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.986e-05/0.08565, allocations: 8 kB / 394.3 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.791e-05/0.08573, allocations: 24 kB / 394.3 MB, free: 1.43 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.418e-05/0.08576, allocations: 15.92 kB / 394.3 MB, free: 1.414 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.472e-05/0.08583, allocations: 63.67 kB / 394.4 MB, free: 1.352 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001628/0.08599, allocations: 119.8 kB / 394.5 MB, free: 1.234 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.086, allocations: 0 / 394.5 MB, free: 1.234 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.08601, allocations: 0 / 394.5 MB, free: 1.234 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.306e-06/0.08602, allocations: 0 / 394.5 MB, free: 1.234 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.0005446/0.08657, allocations: 448.7 kB / 394.9 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.08662, allocations: 11.89 kB / 394.9 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.837e-05/0.08666, allocations: 46.73 kB / 395 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.473e-05/0.0867, allocations: 8.844 kB / 395 MB, free: 0.668 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001937/0.0869, allocations: 200.1 kB / 395.2 MB, free: 444 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.359e-05/0.08692, allocations: 8.375 kB / 395.2 MB, free: 436 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.598e-05/0.08694, allocations: 11.88 kB / 395.2 MB, free: 424 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000239/0.08718, allocations: 105.4 kB / 395.3 MB, free: 316 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.0872, allocations: 7.922 kB / 395.3 MB, free: 308 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.08722, allocations: 8 kB / 395.3 MB, free: 300 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.08724, allocations: 4 kB / 395.3 MB, free: 296 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002292/0.08747, allocations: 87.89 kB / 395.4 MB, free: 208 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006759/0.08815, allocations: 0.5667 MB / 396 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002044/0.08837, allocations: 94.53 kB / 396.1 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001194/0.0885, allocations: 49.02 kB / 396.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.611e-05/0.08852, allocations: 3.938 kB / 396.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.181e-05/0.08855, allocations: 30.56 kB / 396.2 MB, free: 15.35 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.233e-06/0.08855, allocations: 0 / 396.2 MB, free: 15.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001322/0.08988, allocations: 404.2 kB / 396.6 MB, free: 14.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.6e-05/0.08994, allocations: 85.11 kB / 396.6 MB, free: 14.83 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.09007, allocations: 145.8 kB / 396.8 MB, free: 14.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.668e-05/0.09009, allocations: 29.64 kB / 396.8 MB, free: 14.64 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.248e-05/0.09014, allocations: 96.05 kB / 396.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.022e-05/0.09017, allocations: 31.55 kB / 396.9 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.245e-05/0.09023, allocations: 25.7 kB / 397 MB, free: 14.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.789e-05/0.09033, allocations: 322.8 kB / 397.3 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001676/0.0905, allocations: 51.95 kB / 397.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001649/0.09068, allocations: 58.33 kB / 397.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00035/0.09104, allocations: 177.1 kB / 397.6 MB, free: 13.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.09105, allocations: 0 / 397.6 MB, free: 13.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004062/0.09146, allocations: 187 kB / 397.7 MB, free: 13.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.958e-05/0.0915, allocations: 32.2 kB / 397.8 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.09151, allocations: 4 kB / 397.8 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.09153, allocations: 0 / 397.8 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000169/0.0917, allocations: 28 kB / 397.8 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.92e-06/0.09172, allocations: 4 kB / 397.8 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001058/0.09183, allocations: 11.98 kB / 397.8 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.568e-06/0.09185, allocations: 0 / 397.8 MB, free: 13.58 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.648e-05/0.09195, allocations: 155.5 kB / 398 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.543e-05/0.09199, allocations: 11.84 kB / 398 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004779/0.09247, allocations: 216 kB / 398.2 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.09248, allocations: 0 / 398.2 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.09249, allocations: 0 / 398.2 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.0925, allocations: 0 / 398.2 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000206/0.09271, allocations: 221.6 kB / 398.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.09272, allocations: 3.938 kB / 398.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000146/0.09287, allocations: 35.91 kB / 398.5 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.09288, allocations: 8 kB / 398.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.0929, allocations: 0 / 398.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.0929, allocations: 0 / 398.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.09291, allocations: 0 / 398.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004375/0.09335, allocations: 293 kB / 398.7 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.882e-05/0.09343, allocations: 104.9 kB / 398.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.344e-05/0.09346, allocations: 0 / 398.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001326/0.0936, allocations: 15.98 kB / 398.9 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.611e-05/0.09365, allocations: 7.984 kB / 398.9 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.707e-06/0.09367, allocations: 4 kB / 398.9 MB, free: 12.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.347e-05/0.09374, 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.09375, allocations: 0 / 399 MB, free: 12.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002425/0.094, 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.0007378/0.09474, allocations: 0.8387 MB / 399.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004349/0.09519, allocations: 183.1 kB / 400 MB, free: 11.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.0952, allocations: 4 kB / 400 MB, free: 11.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002072/0.09541, allocations: 127.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.0003578/0.09578, allocations: 36.14 kB / 400.2 MB, free: 11.03 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002107/0.09789, allocations: 1.806 MB / 402 MB, free: 9.129 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002425/0.09815, allocations: 0.7083 MB / 402.7 MB, free: 8.395 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.543e-05/0.09823, allocations: 17.08 kB / 402.7 MB, free: 8.375 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.215e-05/0.09831, allocations: 35.42 kB / 402.8 MB, free: 8.34 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.09832, allocations: 0 / 402.8 MB, free: 8.34 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02035/0.1187, allocations: 3.522 MB / 406.3 MB, free: 4.832 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.951/7.07, allocations: 9.047 kB / 406.3 MB, free: 4.824 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 & python3 -m fmpy simulate --output-file OpenHydraulics_OpenHydraulics.DevelopmentTests.RestrictionTestSimple_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 OpenHydraulics_OpenHydraulics_DevelopmentTests_RestrictionTestSimple.fmu > OpenHydraulics_OpenHydraulics.DevelopmentTests.RestrictionTestSimple.pipe 2>&1)