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.0007003/0.0007003, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.000757/0.0007571, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.442/1.442, allocations: 205.4 MB / 222.1 MB, free: 5.469 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05098/0.05098, allocations: 11.87 MB / 282.2 MB, free: 9.344 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.0005579/0.000558, allocations: 16 kB / 343 MB, free: 22.35 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1022, allocations: 50.21 MB / 393.2 MB, free: 4.094 MB / 286.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.RestrictionTestSimple): time 0.002392/0.1047, allocations: 1.997 MB / 395.2 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009438/0.1056, allocations: 0.6245 MB / 395.9 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.233e-05/0.1057, allocations: 0 / 395.9 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.721e-05/0.1058, allocations: 15.84 kB / 395.9 MB, free: 1.438 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00033/0.1061, allocations: 95.36 kB / 396 MB, free: 1.344 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00012/0.1063, allocations: 19.98 kB / 396 MB, free: 1.324 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001888/0.1064, allocations: 139.2 kB / 396.1 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001232/0.1066, allocations: 25.11 kB / 396.1 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001108/0.1067, allocations: 43.8 kB / 396.2 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.926e-05/0.1068, allocations: 51.77 kB / 396.2 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.741e-05/0.1068, allocations: 12 kB / 396.3 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.725e-05/0.1069, allocations: 16 kB / 396.3 MB, free: 1.043 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.327e-05/0.1069, allocations: 15.92 kB / 396.3 MB, free: 1.027 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.627e-05/0.107, allocations: 45.64 kB / 396.3 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001358/0.1071, allocations: 84.02 kB / 396.4 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.1071, allocations: 3.938 kB / 396.4 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1072, allocations: 0 / 396.4 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.1072, allocations: 0 / 396.4 MB, free: 0.8906 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.0005742/0.1077, allocations: 432.6 kB / 396.8 MB, free: 424 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.1078, allocations: 8.031 kB / 396.8 MB, free: 416 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.441e-05/0.1078, allocations: 46.55 kB / 396.9 MB, free: 360 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.915e-05/0.1079, allocations: 15.81 kB / 396.9 MB, free: 344 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002326/0.1081, allocations: 206.8 kB / 397.1 MB, free: 96 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.571e-05/0.1082, allocations: 8 kB / 397.1 MB, free: 88 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.409e-05/0.1082, allocations: 12 kB / 397.1 MB, free: 76 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003083/0.1085, allocations: 105.6 kB / 397.2 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.1085, allocations: 0 / 397.2 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.014e-05/0.1086, allocations: 11.95 kB / 397.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.1086, allocations: 0 / 397.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002449/0.1088, allocations: 91.94 kB / 397.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007288/0.1096, allocations: 0.5706 MB / 397.9 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002131/0.1098, allocations: 102.5 kB / 398 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001169/0.1099, allocations: 52.83 kB / 398.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.69e-05/0.1099, allocations: 0 / 398.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.605e-05/0.11, allocations: 38.56 kB / 398.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.112e-06/0.11, allocations: 0 / 398.1 MB, free: 14.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001392/0.1114, allocations: 484.6 kB / 398.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.498e-05/0.1114, allocations: 81.06 kB / 398.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000114/0.1115, allocations: 142.4 kB / 398.8 MB, free: 14.25 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.899e-05/0.1116, allocations: 29.7 kB / 398.8 MB, free: 14.21 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.355e-05/0.1116, allocations: 96.08 kB / 398.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.431e-05/0.1117, allocations: 35.45 kB / 398.9 MB, free: 14.08 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.823e-06/0.1117, allocations: 4 kB / 398.9 MB, free: 14.08 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.1118, allocations: 322.8 kB / 399.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001643/0.112, allocations: 55.95 kB / 399.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001655/0.1121, allocations: 73.67 kB / 399.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001755/0.1123, allocations: 93.59 kB / 399.5 MB, free: 13.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.61e-07/0.1123, allocations: 0 / 399.5 MB, free: 13.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003949/0.1127, allocations: 200 kB / 399.7 MB, free: 13.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.711e-05/0.1128, allocations: 33.64 kB / 399.7 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.1128, allocations: 0 / 399.7 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.1128, allocations: 0 / 399.7 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001843/0.113, allocations: 31.97 kB / 399.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.528e-06/0.113, allocations: 8.078 kB / 399.7 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001138/0.1132, allocations: 27.92 kB / 399.8 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.245e-05/0.1132, allocations: 3.984 kB / 399.8 MB, free: 13.21 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001105/0.1133, allocations: 151.5 kB / 399.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.322e-05/0.1133, allocations: 7.906 kB / 399.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005405/0.1139, allocations: 235.8 kB / 400.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.1139, allocations: 4 kB / 400.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.1139, allocations: 0 / 400.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.1139, allocations: 3.953 kB / 400.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002594/0.1142, allocations: 221.6 kB / 400.4 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.1142, allocations: 0 / 400.4 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001553/0.1144, allocations: 31.97 kB / 400.4 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.021e-06/0.1144, allocations: 4 kB / 400.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.244e-05/0.1144, allocations: 3.938 kB / 400.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.1144, allocations: 4 kB / 400.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.1144, allocations: 0 / 400.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004811/0.1149, allocations: 312.5 kB / 400.7 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001067/0.115, allocations: 104.9 kB / 400.8 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.514e-05/0.1151, allocations: 4 kB / 400.8 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001377/0.1152, allocations: 19.98 kB / 400.9 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.661e-05/0.1153, allocations: 19.97 kB / 400.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.498e-06/0.1153, allocations: 7.938 kB / 400.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.027e-05/0.1154, allocations: 111.2 kB / 401 MB, free: 11.87 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1154, allocations: 0 / 401 MB, free: 11.87 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002641/0.1157, allocations: 32 kB / 401 MB, free: 11.84 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007656/0.1164, allocations: 0.8428 MB / 401.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004155/0.1169, allocations: 203.2 kB / 402.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.1169, allocations: 4 kB / 402.1 MB, free: 10.75 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002027/0.1171, allocations: 135.3 kB / 402.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003685/0.1175, allocations: 32.05 kB / 402.2 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001405/0.1189, allocations: 0.8771 MB / 403.1 MB, free: 9.645 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002452/0.1191, allocations: 0.7009 MB / 403.8 MB, free: 8.918 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.766e-05/0.1192, allocations: 21.2 kB / 403.8 MB, free: 8.898 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.813e-05/0.1193, allocations: 35.42 kB / 403.9 MB, free: 8.863 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1193, allocations: 0 / 403.9 MB, free: 8.863 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01334/0.1326, allocations: 3.109 MB / 407 MB, free: 5.82 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001598/0.1328, allocations: 190.9 kB / 407.2 MB, free: 5.582 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.818/1.951, allocations: 4 kB / 407.2 MB, free: 5.578 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/linux/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) Environment - environmentSimulation: