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.004627/0.004627, allocations: 101.6 kB / 15.73 MB, free: 5.996 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.001266/0.001267, allocations: 190.5 kB / 16.67 MB, free: 5.93 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.355/1.355, allocations: 205.1 MB / 222.6 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05745/0.05745, allocations: 11.86 MB / 281.8 MB, free: 9.324 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.00212/0.00212, allocations: 71.91 kB / 391.8 MB, free: 3.977 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2363/0.2385, allocations: 49.22 MB / 441.1 MB, free: 4.148 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.RestrictionTestSimple): time 0.002762/0.2413, allocations: 2.095 MB / 443.2 MB, free: 2.684 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008253/0.2421, allocations: 0.6172 MB / 443.8 MB, free: 2.246 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.137e-05/0.2422, allocations: 2.562 kB / 443.8 MB, free: 2.246 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.446e-05/0.2423, allocations: 16.52 kB / 443.8 MB, free: 2.234 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003239/0.2426, allocations: 76.59 kB / 443.9 MB, free: 2.184 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001117/0.2427, allocations: 24.3 kB / 443.9 MB, free: 2.172 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002155/0.2429, allocations: 147.8 kB / 444 MB, free: 2.098 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001255/0.2431, allocations: 38.41 kB / 444.1 MB, free: 2.074 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001245/0.2432, allocations: 63.58 kB / 444.1 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001132/0.2433, allocations: 59.75 kB / 444.2 MB, free: 2.016 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.284e-05/0.2434, allocations: 7 kB / 444.2 MB, free: 2.016 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.506e-05/0.2434, allocations: 22.75 kB / 444.2 MB, free: 2.008 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.91e-05/0.2435, allocations: 27.19 kB / 444.3 MB, free: 1.988 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.726e-05/0.2435, allocations: 57.16 kB / 444.3 MB, free: 1.957 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002114/0.2438, allocations: 114.2 kB / 444.4 MB, free: 1.918 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.2438, allocations: 1.078 kB / 444.4 MB, free: 1.918 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2438, allocations: 0 / 444.4 MB, free: 1.918 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.568e-06/0.2438, allocations: 1.281 kB / 444.4 MB, free: 1.918 MB / 318.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.000521/0.2443, allocations: 453.3 kB / 444.9 MB, free: 1.477 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/0.2444, allocations: 12.67 kB / 444.9 MB, free: 1.473 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.273e-05/0.2444, allocations: 39.2 kB / 444.9 MB, free: 1.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.597e-05/0.2445, allocations: 16.2 kB / 444.9 MB, free: 1.422 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002329/0.2447, allocations: 208.2 kB / 445.1 MB, free: 1.199 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.635e-05/0.2447, allocations: 11.58 kB / 445.1 MB, free: 1.191 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.069e-05/0.2448, allocations: 13.02 kB / 445.2 MB, free: 1.184 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002667/0.245, allocations: 100 kB / 445.3 MB, free: 1.133 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.245, allocations: 4 kB / 445.3 MB, free: 1.129 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.2451, allocations: 5.438 kB / 445.3 MB, free: 1.125 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.2451, allocations: 1.406 kB / 445.3 MB, free: 1.125 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002585/0.2453, allocations: 84.73 kB / 445.4 MB, free: 1.102 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006512/0.246, allocations: 0.5618 MB / 445.9 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002158/0.2462, allocations: 97.67 kB / 446 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001239/0.2464, allocations: 47.28 kB / 446.1 MB, free: 496 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.892e-05/0.2464, allocations: 0 / 446.1 MB, free: 496 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.753e-05/0.2464, allocations: 32.98 kB / 446.1 MB, free: 456 kB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.092e-06/0.2464, allocations: 0 / 446.1 MB, free: 456 kB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.001437/0.2479, allocations: 421 kB / 446.5 MB, free: 264 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.516e-05/0.2479, allocations: 78.55 kB / 446.6 MB, free: 168 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.845e-05/0.248, allocations: 147.9 kB / 446.7 MB, free: 48 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.929e-06/0.248, allocations: 26.83 kB / 446.7 MB, free: 16 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.758e-05/0.2481, allocations: 102.8 kB / 446.8 MB, free: 15.92 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.632e-05/0.2481, allocations: 30.47 kB / 446.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.39e-05/0.2482, allocations: 27.05 kB / 446.9 MB, free: 15.87 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.2484, allocations: 328.6 kB / 447.2 MB, free: 15.55 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001862/0.2486, allocations: 49.52 kB / 447.3 MB, free: 15.54 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001909/0.2488, allocations: 58.31 kB / 447.3 MB, free: 15.51 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003915/0.2492, allocations: 172.6 kB / 447.5 MB, free: 15.4 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.2492, allocations: 1.25 kB / 447.5 MB, free: 15.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004556/0.2496, allocations: 179.9 kB / 447.7 MB, free: 15.3 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.079e-05/0.2497, allocations: 32.5 kB / 447.7 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.2497, allocations: 1.156 kB / 447.7 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.2497, allocations: 4.031 kB / 447.7 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001855/0.2499, allocations: 30.19 kB / 447.7 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.2499, allocations: 5.062 kB / 447.7 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001106/0.25, allocations: 12.69 kB / 447.8 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.18e-05/0.2501, allocations: 3.172 kB / 447.8 MB, free: 15.26 MB / 334.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 0.0001272/0.2502, allocations: 147.1 kB / 447.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.807e-05/0.2502, allocations: 13.58 kB / 447.9 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005628/0.2508, allocations: 212.4 kB / 448.1 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.2508, allocations: 2.875 kB / 448.1 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.2508, allocations: 0.7031 kB / 448.1 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.2508, allocations: 0.5156 kB / 448.1 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002759/0.2511, allocations: 223.8 kB / 448.3 MB, free: 14.76 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.2511, allocations: 3.938 kB / 448.4 MB, free: 14.76 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001605/0.2513, allocations: 40.53 kB / 448.4 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.2513, allocations: 1.125 kB / 448.4 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.2513, allocations: 1.156 kB / 448.4 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.2513, allocations: 2.125 kB / 448.4 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2513, allocations: 0 / 448.4 MB, free: 14.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005225/0.2519, allocations: 296 kB / 448.7 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.583e-05/0.252, allocations: 102.6 kB / 448.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.418e-05/0.252, allocations: 3.141 kB / 448.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001414/0.2521, allocations: 16.12 kB / 448.8 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.966e-05/0.2522, allocations: 7.938 kB / 448.8 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.799e-06/0.2522, allocations: 3.906 kB / 448.8 MB, free: 14.42 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.443e-05/0.2523, allocations: 113.3 kB / 448.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2523, allocations: 0 / 448.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002596/0.2526, allocations: 36.17 kB / 449 MB, free: 14.33 MB / 334.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.0008425/0.2534, allocations: 0.8355 MB / 449.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004517/0.2539, allocations: 175.7 kB / 450 MB, free: 13.5 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2539, allocations: 0 / 450 MB, free: 13.5 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002266/0.2541, allocations: 124.9 kB / 450.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003369/0.2545, allocations: 43.16 kB / 450.1 MB, free: 13.39 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002408/0.2569, allocations: 1.808 MB / 451.9 MB, free: 11.86 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003293/0.2572, allocations: 0.7026 MB / 452.6 MB, free: 11.15 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.913e-05/0.2573, allocations: 22.11 kB / 452.7 MB, free: 11.14 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.684e-05/0.2574, allocations: 35.2 kB / 452.7 MB, free: 11.11 MB / 334.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2574, allocations: 0 / 452.7 MB, free: 11.11 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02457/0.282, allocations: 3.575 MB / 456.3 MB, free: 9.16 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.763/8.045, allocations: 13.92 kB / 456.3 MB, free: 9.152 MB / 334.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)