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.007265/0.007265, allocations: 99.3 kB / 15.73 MB, free: 5.602 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.001794/0.001795, allocations: 190.4 kB / 16.68 MB, free: 5.523 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.373/1.373, allocations: 205.1 MB / 222.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05255/0.05255, allocations: 11.83 MB / 281.8 MB, free: 208 kB / 222.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.001435/0.001435, allocations: 72.52 kB / 391.8 MB, free: 45.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07355/0.07499, allocations: 49.24 MB / 441.1 MB, free: 2.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.RestrictionTestSimple): time 0.002619/0.07764, allocations: 2.085 MB / 443.2 MB, free: 476 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009724/0.07864, allocations: 0.6281 MB / 443.8 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/0.07877, allocations: 0 / 443.8 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.39e-05/0.07886, allocations: 11.86 kB / 443.8 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003492/0.07922, allocations: 79.45 kB / 443.9 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001117/0.07934, allocations: 19.97 kB / 443.9 MB, free: 15.72 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002199/0.07956, allocations: 159.1 kB / 444 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001243/0.07969, allocations: 41.31 kB / 444.1 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/0.07983, allocations: 55.78 kB / 444.1 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001068/0.07995, allocations: 59.7 kB / 444.2 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.215e-05/0.07998, allocations: 8 kB / 444.2 MB, free: 15.4 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.213e-05/0.08006, allocations: 23.98 kB / 444.2 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.819e-05/0.08009, allocations: 15.94 kB / 444.2 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.708e-05/0.08016, allocations: 55.73 kB / 444.3 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002071/0.08038, allocations: 115.6 kB / 444.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.08039, allocations: 0 / 444.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.0804, allocations: 0 / 444.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.08041, allocations: 4 kB / 444.4 MB, free: 15.19 MB / 334.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.0005509/0.08096, allocations: 448.5 kB / 444.9 MB, free: 14.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.08101, allocations: 11.89 kB / 444.9 MB, free: 14.69 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.148e-05/0.08106, allocations: 42.69 kB / 444.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.458e-05/0.08111, allocations: 16.84 kB / 444.9 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002612/0.08138, allocations: 207.1 kB / 445.1 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.286e-05/0.0814, allocations: 12.33 kB / 445.1 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.759e-05/0.08142, allocations: 11.94 kB / 445.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002456/0.08168, allocations: 104.9 kB / 445.3 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.0817, allocations: 3.938 kB / 445.3 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.465e-05/0.08172, allocations: 8 kB / 445.3 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.08173, allocations: 0 / 445.3 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002327/0.08196, allocations: 83.92 kB / 445.3 MB, free: 14.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007068/0.08268, allocations: 0.5824 MB / 445.9 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002099/0.0829, allocations: 82.53 kB / 446 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000121/0.08303, allocations: 48.83 kB / 446.1 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.418e-05/0.08306, allocations: 0 / 446.1 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.484e-05/0.08309, allocations: 34.56 kB / 446.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.112e-06/0.08309, allocations: 4.188 kB / 446.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.001417/0.08451, allocations: 416.4 kB / 446.5 MB, free: 12.87 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.446e-05/0.08457, allocations: 77.11 kB / 446.6 MB, free: 12.78 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001269/0.08471, allocations: 151.4 kB / 446.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.625e-05/0.08473, allocations: 25.7 kB / 446.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.552e-05/0.08479, allocations: 100.1 kB / 446.8 MB, free: 12.49 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.818e-05/0.08484, allocations: 31.73 kB / 446.9 MB, free: 12.46 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.391e-05/0.0849, allocations: 37.66 kB / 446.9 MB, free: 12.41 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.08501, allocations: 318.8 kB / 447.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001741/0.08519, allocations: 43.95 kB / 447.3 MB, free: 12.05 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000183/0.08538, allocations: 69.59 kB / 447.3 MB, free: 11.98 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003578/0.08575, allocations: 161 kB / 447.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.08576, allocations: 4.844 kB / 447.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004453/0.08621, allocations: 183.1 kB / 447.7 MB, free: 11.61 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.153e-05/0.08627, allocations: 33.7 kB / 447.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.08628, allocations: 4.078 kB / 447.7 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.0863, allocations: 3.938 kB / 447.7 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001874/0.08649, allocations: 23.98 kB / 447.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.08651, allocations: 3.984 kB / 447.7 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001172/0.08663, allocations: 11.98 kB / 447.8 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.36e-05/0.08665, allocations: 8 kB / 447.8 MB, free: 11.51 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.0001011/0.08676, allocations: 143.5 kB / 447.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.088e-05/0.08681, allocations: 11.89 kB / 447.9 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000517/0.08733, allocations: 215.8 kB / 448.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.08735, allocations: 4 kB / 448.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.08736, allocations: 0 / 448.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.08736, allocations: 0 / 448.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002357/0.08761, allocations: 225.5 kB / 448.4 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.08762, allocations: 3.938 kB / 448.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001564/0.08778, allocations: 35.97 kB / 448.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.08779, allocations: 0 / 448.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.08781, allocations: 0 / 448.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.08781, allocations: 0 / 448.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.08782, allocations: 4 kB / 448.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004791/0.0883, allocations: 293 kB / 448.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.547e-05/0.0884, allocations: 100.9 kB / 448.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.847e-05/0.08844, allocations: 11.94 kB / 448.8 MB, free: 10.37 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001398/0.08858, allocations: 11.98 kB / 448.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.203e-05/0.08864, allocations: 11.98 kB / 448.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.343e-06/0.08865, allocations: 0 / 448.8 MB, free: 10.34 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.291e-05/0.08874, allocations: 119.2 kB / 448.9 MB, free: 10.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.08875, allocations: 0 / 448.9 MB, free: 10.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002634/0.08902, allocations: 32 kB / 449 MB, free: 10.2 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.0007826/0.08981, allocations: 0.8349 MB / 449.8 MB, free: 9.328 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004771/0.0903, allocations: 182.9 kB / 450 MB, free: 9.141 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.09031, allocations: 0 / 450 MB, free: 9.141 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002123/0.09053, allocations: 115.4 kB / 450.1 MB, free: 9.016 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003467/0.09088, allocations: 35.98 kB / 450.1 MB, free: 8.98 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002296/0.09319, allocations: 1.817 MB / 451.9 MB, free: 7.074 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002493/0.09346, allocations: 0.7122 MB / 452.7 MB, free: 6.336 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.794e-05/0.09356, allocations: 21 kB / 452.7 MB, free: 6.316 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.683e-05/0.09365, allocations: 35.42 kB / 452.7 MB, free: 6.281 MB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.09365, allocations: 0 / 452.7 MB, free: 6.281 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02057/0.1142, allocations: 3.576 MB / 456.3 MB, free: 2.766 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.34/7.454, allocations: 3.984 kB / 456.3 MB, free: 2.762 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)