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.004789/0.004789, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001213/0.001213, allocations: 194.8 kB / 16.67 MB, free: 5.973 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.377/1.377, allocations: 205.1 MB / 222.6 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenHydraulics 1.0.0-master/package.mo): time 0.05658/0.05658, allocations: 11.85 MB / 281.8 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.002125/0.002125, allocations: 64.38 kB / 391.8 MB, free: 11.4 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09577/0.09791, allocations: 49.23 MB / 441.1 MB, free: 10.1 MB / 382.1 MB Notification: Performance of NFInst.instantiate(OpenHydraulics.DevelopmentTests.RestrictionTestSimple): time 0.003428/0.1014, allocations: 2.096 MB / 443.2 MB, free: 7.984 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001057/0.1025, allocations: 0.6125 MB / 443.8 MB, free: 7.367 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.335e-05/0.1025, allocations: 4 kB / 443.8 MB, free: 7.363 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.792e-05/0.1026, allocations: 15.86 kB / 443.8 MB, free: 7.348 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003353/0.103, allocations: 75.45 kB / 443.9 MB, free: 7.273 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001129/0.1031, allocations: 27.97 kB / 443.9 MB, free: 7.246 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002287/0.1033, allocations: 155.1 kB / 444.1 MB, free: 7.094 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001332/0.1035, allocations: 36.84 kB / 444.1 MB, free: 7.059 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001273/0.1036, allocations: 55.83 kB / 444.1 MB, free: 7.004 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001228/0.1037, allocations: 55.72 kB / 444.2 MB, free: 6.949 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.29e-05/0.1038, allocations: 12 kB / 444.2 MB, free: 6.938 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.574e-05/0.1038, allocations: 19.98 kB / 444.2 MB, free: 6.918 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.815e-05/0.1039, allocations: 19.92 kB / 444.2 MB, free: 6.898 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.702e-05/0.1039, allocations: 55.73 kB / 444.3 MB, free: 6.844 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002175/0.1042, allocations: 127.4 kB / 444.4 MB, free: 6.719 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.1042, allocations: 4 kB / 444.4 MB, free: 6.715 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1042, allocations: 0 / 444.4 MB, free: 6.715 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.1042, allocations: 0 / 444.4 MB, free: 6.715 MB / 382.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.0006516/0.1049, allocations: 440.6 kB / 444.9 MB, free: 6.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.1049, allocations: 19.83 kB / 444.9 MB, free: 6.211 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.695e-05/0.105, allocations: 38.75 kB / 444.9 MB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.238e-05/0.105, allocations: 16.84 kB / 444.9 MB, free: 6.148 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002728/0.1053, allocations: 216.1 kB / 445.1 MB, free: 5.898 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.156e-05/0.1053, allocations: 384 / 445.1 MB, free: 5.898 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.798e-05/0.1053, allocations: 15.94 kB / 445.2 MB, free: 5.883 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002599/0.1056, allocations: 101.6 kB / 445.3 MB, free: 5.777 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.1056, allocations: 0 / 445.3 MB, free: 5.777 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/0.1056, allocations: 4 kB / 445.3 MB, free: 5.773 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.1057, allocations: 0 / 445.3 MB, free: 5.773 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002528/0.1059, allocations: 79.94 kB / 445.3 MB, free: 5.695 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007734/0.1067, allocations: 0.5786 MB / 445.9 MB, free: 5.023 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002289/0.1069, allocations: 90.47 kB / 446 MB, free: 4.926 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001284/0.1071, allocations: 44.83 kB / 446.1 MB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.19e-05/0.1071, allocations: 8 kB / 446.1 MB, free: 4.871 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.422e-05/0.1071, allocations: 34.75 kB / 446.1 MB, free: 4.828 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 3.576e-06/0.1072, allocations: 0 / 446.1 MB, free: 4.828 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.001481/0.1086, allocations: 404.4 kB / 446.5 MB, free: 4.414 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.167e-05/0.1087, allocations: 77.11 kB / 446.6 MB, free: 4.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001351/0.1089, allocations: 137.8 kB / 446.7 MB, free: 4.176 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.03e-05/0.1089, allocations: 33.7 kB / 446.7 MB, free: 4.137 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.393e-05/0.109, allocations: 108 kB / 446.8 MB, free: 4.027 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.363e-05/0.109, allocations: 35.69 kB / 446.9 MB, free: 3.992 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.031e-05/0.1091, allocations: 21.72 kB / 446.9 MB, free: 3.965 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.1092, allocations: 322.8 kB / 447.2 MB, free: 3.641 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001811/0.1094, allocations: 43.95 kB / 447.3 MB, free: 3.598 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000194/0.1096, allocations: 69.61 kB / 447.3 MB, free: 3.523 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003822/0.11, allocations: 165.9 kB / 447.5 MB, free: 3.344 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.11, allocations: 0 / 447.5 MB, free: 3.344 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004549/0.1105, allocations: 195 kB / 447.7 MB, free: 3.141 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.626e-05/0.1105, allocations: 29.7 kB / 447.7 MB, free: 3.105 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.1105, allocations: 0 / 447.7 MB, free: 3.105 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.1105, allocations: 4 kB / 447.7 MB, free: 3.102 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000184/0.1107, allocations: 31.97 kB / 447.7 MB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.1107, allocations: 3.984 kB / 447.7 MB, free: 3.066 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001157/0.1109, allocations: 20 kB / 447.8 MB, free: 3.047 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.267e-05/0.1109, allocations: 4 kB / 447.8 MB, free: 3.043 MB / 382.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.0001157/0.111, allocations: 143.5 kB / 447.9 MB, free: 2.887 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.824e-05/0.111, allocations: 15.89 kB / 447.9 MB, free: 2.871 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005342/0.1116, allocations: 207.9 kB / 448.1 MB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.1116, allocations: 8 kB / 448.1 MB, free: 2.641 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.1116, allocations: 0 / 448.1 MB, free: 2.641 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.1116, allocations: 0 / 448.1 MB, free: 2.641 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002623/0.1119, allocations: 217.7 kB / 448.3 MB, free: 2.379 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.1119, allocations: 11.88 kB / 448.4 MB, free: 2.367 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001527/0.1121, allocations: 27.97 kB / 448.4 MB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.1121, allocations: 0 / 448.4 MB, free: 2.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.45e-05/0.1121, allocations: 4 kB / 448.4 MB, free: 2.336 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.1121, allocations: 4 kB / 448.4 MB, free: 2.332 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.1121, allocations: 0 / 448.4 MB, free: 2.332 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005009/0.1126, allocations: 289.2 kB / 448.7 MB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.9e-05/0.1127, allocations: 108.9 kB / 448.8 MB, free: 1.902 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.8e-05/0.1127, allocations: 8 kB / 448.8 MB, free: 1.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001431/0.1129, allocations: 19.97 kB / 448.8 MB, free: 1.875 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.574e-05/0.113, allocations: 11.98 kB / 448.8 MB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.565e-06/0.113, allocations: 0 / 448.8 MB, free: 1.863 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.251e-05/0.1131, allocations: 123.1 kB / 448.9 MB, free: 1.742 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1131, allocations: 0 / 448.9 MB, free: 1.742 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002459/0.1133, allocations: 24 kB / 449 MB, free: 1.719 MB / 382.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.0008482/0.1142, allocations: 0.8388 MB / 449.8 MB, free: 0.8477 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004759/0.1147, allocations: 175.2 kB / 450 MB, free: 0.6641 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1147, allocations: 64 / 450 MB, free: 0.6641 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002342/0.1149, allocations: 127.3 kB / 450.1 MB, free: 0.5273 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003301/0.1153, allocations: 36.11 kB / 450.1 MB, free: 0.4922 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1798/0.2951, allocations: 1.808 MB / 451.9 MB, free: 41.29 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001172/0.2952, allocations: 0.7028 MB / 452.6 MB, free: 40.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.444e-05/0.2953, allocations: 17.05 kB / 452.7 MB, free: 40.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.709e-05/0.2954, allocations: 33.34 kB / 452.7 MB, free: 40.59 MB / 382.1 MB Notification: Performance of SimCode: time 1.132e-06/0.2954, allocations: 3.094 kB / 452.7 MB, free: 40.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02319/0.3186, allocations: 3.57 MB / 456.3 MB, free: 40.11 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.725/8.043, allocations: 4.234 kB / 456.3 MB, free: 40.11 MB / 382.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)